Definition at line 47 of file CRTEventProducer_module.cc.
icarus::crt::CRTEventProducer::CRTEventProducer |
( |
fhicl::ParameterSet const & |
p | ) |
|
|
explicit |
Definition at line 82 of file CRTEventProducer_module.cc.
88 produces< std::vector<icarus::crt::CRTData> >();
void reconfigure(fhicl::ParameterSet const &p)
void icarus::crt::CRTEventProducer::beginJob |
( |
| ) |
|
|
override |
Definition at line 110 of file CRTEventProducer_module.cc.
114 TTree* tree=(TTree*)fin.FindObjectAny(
"anaTree");
115 if(tree==
nullptr)
std::cout <<
"anaTree not found!" << std::endl;
118 std::cout <<
"running 'beginJob'" << std::endl;
135 if (ientry < fAnaTree->GetNEntries()-1)
141 std::cout <<
"found " <<
event <<
" time slices" << std::endl;
143 std::cout <<
"event map start/end size mismatch!" << std::endl;
std::map< size_t, size_t > fEventEntryStart
std::map< size_t, size_t > fEventEntryEnd
icarus::crt::CRTPreProcessTree * fAnaTree
uint64_t GetAbsTime(size_t ientry) const
size_t GetNEntries() const
BEGIN_PROLOG could also be cout
void icarus::crt::CRTEventProducer::endJob |
( |
| ) |
|
|
override |
void icarus::crt::CRTEventProducer::produce |
( |
art::Event & |
e | ) |
|
|
override |
Definition at line 150 of file CRTEventProducer_module.cc.
153 TTree* tree=(TTree*)fin.FindObjectAny(
"anaTree");
154 if(tree==
nullptr)
std::cout <<
"anaTree not found!" << std::endl;
157 std::unique_ptr< std::vector<icarus::crt::CRTData> > crtdata(
new std::vector<icarus::crt::CRTData>);
159 size_t eveId = (size_t) event.event();
168 data.fTs1 = data.fTs0;
169 for(
size_t ichan=0; ichan<32; ichan++){
174 data.fAdc[ichan] = 0;
177 crtdata->push_back(data);
185 event.put(std::move(crtdata));
std::map< size_t, size_t > fEventEntryStart
std::map< size_t, size_t > fEventEntryEnd
icarus::crt::CRTPreProcessTree * fAnaTree
void Load(size_t ientry) const
uint64_t GetAbsTime(size_t ientry) const
bool Above(uint8_t chan) const
bool Active(uint8_t chan) const
float PE(uint8_t chan) const
BEGIN_PROLOG could also be cout
void icarus::crt::CRTEventProducer::reconfigure |
( |
fhicl::ParameterSet const & |
p | ) |
|
std::map<size_t,size_t> icarus::crt::CRTEventProducer::fEventEntryEnd |
|
private |
std::map<size_t,size_t> icarus::crt::CRTEventProducer::fEventEntryStart |
|
private |
std::string icarus::crt::CRTEventProducer::fInFile |
|
private |
float icarus::crt::CRTEventProducer::fTimeWindow |
|
private |
The documentation for this class was generated from the following file: