22 #include "art_root_io/TFileService.h" 89 fTree = tfs->make<TTree>(
"MRDT",
"MixerRawDigitTree");
145 if (!digit_handle.isValid()){
146 std::cerr<<
"Digit handle for type " << type <<
" not valid! Don't attempt to fill the tree for this product"<<
std::endl;
149 std::vector<raw::RawDigit>
const& digitVector(*digit_handle);
151 for (
unsigned int i_raw = 0; i_raw < digitVector.size(); i_raw++){
156 for (
unsigned int i_adc = 0; i_adc < raw_digit.
ADCs().size(); i_adc++){
const ADCvector_t & ADCs() const
Reference to the compressed ADC count vector.
Collection of charge vs time digitized from a single readout channel.
void analyze(art::Event const &e) override
ChannelID_t Channel() const
DAQ channel this raw data was read from.
EDAnalyzer(fhicl::ParameterSet const &pset)
short fADCs[mix::kNMaxADCs]
unsigned int Nchannels() const
Returns the number of TPC readout channels in the detector.
void FillADCVariables(art::Handle< std::vector< raw::RawDigit > > digit_handle, mix::RawDigitTypes type)
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
T get(std::string const &key) const
RawDigitOverlayDUNE35tAna(fhicl::ParameterSet const &p)
std::map< mix::RawDigitTypes, art::Handle< std::vector< raw::RawDigit > > > fRawDigitProducts
std::map< mix::RawDigitTypes, std::string > fRawDigitModuleLabels
RawDigitOverlayDUNE35tAna & operator=(RawDigitOverlayDUNE35tAna const &)=delete
raw::ChannelID_t fChannelIDs[mix::kNMaxADCs]
unsigned int ChannelID_t
Type representing the ID of a readout channel.
int fTypes[mix::kNMaxADCs]
QTextStream & endl(QTextStream &s)