otsdaq_mu2e  v2_04_02
RawEventQueueReader.cc
1 #include "otsdaq-demo/ArtModules/detail/RawEventQueueReader.hh"
2 #include "otsdaq-demo/Overlays/FragmentType.hh"
3 
4 #include <messagefacility/MessageLogger/MessageLogger.h>
5 
6 ots::detail::RawEventQueueReader::RawEventQueueReader(fhicl::ParameterSet const& ps,
7  art::ProductRegistryHelper& help,
8  art::SourceHelper const& pm)
9  : artdaq::detail::RawEventQueueReader(ps, help, pm)
10 {
11  mf::LogInfo("RawEventQueueReader") << "OtsInput Constructor!";
12  for(auto& name : names)
13  {
14  mf::LogInfo("RawEventQueueReader")
15  << "Adding fragment type " << name
16  << " to fragment_type_map, and registering with the "
17  "ProductRegistryHelper";
18  fragment_type_map_[toFragmentType(name)] = name;
19  help.reconstitutes<artdaq::Fragments, art::InEvent>(pretend_module_name, name);
20  }
21 }