28 #include "lbne-raw-data/Overlays/PennMilliSlice.hh" 29 #include "lbne-raw-data/Overlays/PennMicroSlice.hh" 30 #include "artdaq-core/Data/Fragment.hh" 102 mf::LogDebug(
"PTBToOffline") <<
"====================================" <<
"\n" 103 <<
"Parameter Set" <<
"\n" 104 <<
"====================================" <<
"\n" 108 <<
"====================================" <<
"\n";
120 try { rawFragments->size(); }
122 mf::LogWarning(
"PTBToOffline") <<
"WARNING: Raw PTB data not found in event " << evt.
event();
123 std::vector<raw::ExternalTrigger> Triggers;
131 <<
", SubRun: " << evt.
subRun()
132 <<
", Event: " << evt.
event()
138 lbne::PennMicroSlice::Payload_Timestamp *FirstPTBTimestamp =
nullptr;
141 std::cout <<
"Returned from PennFragmentToExternalTriggers and triggers has size " << triggers.size() <<
std::endl;
EventNumber_t event() const
double fNOvAClockFrequency
std::string fOutputDataLabel
EDProducer(fhicl::ParameterSet const &pset)
void BuildPTBChannelMap(std::string MapDir, std::string MapFile, std::map< int, int > &channelMap)
void produce(art::Event &evt) override
MaybeLogger_< ELseverityLevel::ELsev_error, false > LogError
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
Collect all the RawData header files together.
T get(std::string const &key) const
std::map< int, int > fPTBMap
SubRunNumber_t subRun() const
std::string fRawDataLabel
MaybeLogger_< ELseverityLevel::ELsev_success, false > LogDebug
PTBToOffline & operator=(PTBToOffline const &)=delete
PTBToOffline(fhicl::ParameterSet const &pset)
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
std::vector< raw::ExternalTrigger > PennFragmentToExternalTrigger(artdaq::Fragments const &Fragments, std::map< int, int > &channelMap, lbne::PennMicroSlice::Payload_Timestamp *&FirstPTBTimestamp)
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
void reconfigure(fhicl::ParameterSet const &pset)
cet::coded_exception< error, detail::translate > exception
QTextStream & endl(QTextStream &s)