icarus::crt::CRTCalibrationAnalysis::CRTCalibrationAnalysis |
( |
Parameters const & |
config | ) |
|
|
explicit |
Constructor: configures the module (see the Config structure above)
Definition at line 119 of file CRTCalibrationAnalysis_module.cc.
128 auto const clockData = art::ServiceHandle<detinfo::DetectorClocksService const>()->DataForJob();
131 for(
int i=1; i<232; i++){
135 for(
int ch=0; ch<32; ch++){
139 macToHistos[i]->push_back(
tfs->make<TH1F>(hname.c_str(),htitle.c_str(),4100,0,4100));
art::ServiceHandle< art::TFileService > tfs
art::InputTag fCRTDAQProducerLabel
int fTriggerOffset
(units of ticks) time of expected neutrino event
map< uint8_t, vector< TH1F * > * > macToHistos
geo::GeometryCore const * fGeometryService
pointer to Geometry provider
CRTCommonUtils * fCrtutils
std::string to_string(WindowPattern const &pattern)
int trigger_offset(DetectorClocksData const &data)
void icarus::crt::CRTCalibrationAnalysis::analyze |
( |
const art::Event & |
event | ) |
|
|
overridevirtual |
Definition at line 154 of file CRTCalibrationAnalysis_module.cc.
156 MF_LOG_DEBUG(
"CRTCalibrationAnalysis") <<
"beginning analyis" <<
'\n';
159 art::Handle<vector<icarus::crt::CRTData>> crtDAQHandle;
163 MF_LOG_DEBUG(
"CRTCalibrationAnalysis") <<
"about to loop over CRTDAQ entries" <<
'\n';
165 for (
auto const& febdat : (*crtDAQHandle) ) {
167 for(
int ch=0; ch<32; ch++) {
168 macToHistos[febdat.fMac5]->at(ch)->Fill( febdat.fAdc[ch] );
176 mf::LogError(
"CRTCalibrationAnalysis") <<
"CRTDAQ products not found!" << std::endl;
art::InputTag fCRTDAQProducerLabel
map< uint8_t, vector< TH1F * > * > macToHistos
void icarus::crt::CRTCalibrationAnalysis::beginJob |
( |
| ) |
|
|
overridevirtual |
void icarus::crt::CRTCalibrationAnalysis::beginRun |
( |
const art::Run & |
run | ) |
|
|
overridevirtual |
art::InputTag icarus::crt::CRTCalibrationAnalysis::fCRTDAQProducerLabel |
|
private |
int icarus::crt::CRTCalibrationAnalysis::fTriggerOffset |
|
private |
map<uint8_t,vector<TH1F*>*> icarus::crt::CRTCalibrationAnalysis::macToHistos |
|
private |
art::ServiceHandle<art::TFileService> icarus::crt::CRTCalibrationAnalysis::tfs |
|
private |
The documentation for this class was generated from the following file: