16 #include "art_root_io/TFileService.h" 67 __Ticks =
p.get<
unsigned >(
"Ticks");
68 __Chans =
p.get<
unsigned >(
"Chans");
75 std::vector< art::Ptr<raw::RawDigit> > Digits;
79 mf::LogInfo(
"") <<
"Total number of channels "<<Digits.size();
81 for(
auto &digit : Digits)
83 auto chan = digit->Channel();
84 auto samples = digit->Samples();
93 for(
auto &
adc : data )
107 __AdcData = tfs->make<TH2I>(
"amc_data",
"AMC Data",
void analyze(art::Event const &e) override
std::string __RawDigitLabel
Handle< PROD > getHandle(SelectorBase const &) const
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
std::vector< short > ADCvector_t
Type representing a (compressed) vector of ADC counts.
EDAnalyzer(fhicl::ParameterSet const &pset)
PDDPTPCRawDecoderTest & operator=(PDDPTPCRawDecoderTest const &)=delete
PDDPTPCRawDecoderTest(fhicl::ParameterSet const &p)
#define DEFINE_ART_MODULE(klass)
tick_as<> tick
Tick number, represented by std::ptrdiff_t.
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
void Uncompress(const std::vector< short > &adc, std::vector< short > &uncompressed, raw::Compress_t compress)
Uncompresses a raw data buffer.