24 #include "DAQDataFormats/TriggerDefines.h" 44 fprintf(
stderr,
"Unexpected lack of 'daq' product!\n");
47 if(rawtrigger->empty())
return;
49 if(((*rawtrigger)[0].fTriggerMask_TriggerType)+1 !=
trigid)
return;
51 const double tdc_per_second = 64e6;
52 const uint64_t trigger2spills_tdc = uint64_t(
trigger2spill * tdc_per_second);
56 const uint64_t triggertime = (*rawtrigger)[0].fTriggerTimingMarker_TimeStart;
58 const uint64_t
spilltime = triggertime + trigger2spills_tdc;
60 printf(
"Spilltime: %lu\n", spilltime);
DEFINE_ART_MODULE(TestTMapFile)
printf("%d Experimental points found\n", nlines)
Print the time of each NuMI spill, or another specified trigger type. This is intended for use by Eli...
EDAnalyzer(Table< Config > const &config)
void analyze(const art::Event &evt)
bool getByLabel(std::string const &label, std::string const &productInstanceName, Handle< PROD > &result) const
spilltime(fhicl::ParameterSet const &pset)