artdaq_demo  v3_06_00
DemoInput_source.cc
1 #include "art/Framework/IO/Sources/Source.h"
2 #include "artdaq/ArtModules/detail/SharedMemoryReader.hh"
3 #include "artdaq-core-demo/Overlays/FragmentType.hh"
4 #include "art/Framework/Core/InputSourceMacros.h"
5 #include "art/Framework/IO/Sources/SourceTraits.h"
6 
7 #include <string>
8 using std::string;
9 
10 namespace art
11 {
16  template <>
17  struct Source_generator<artdaq::detail::SharedMemoryReader<demo::makeFragmentTypeMap>>
18  {
19  static constexpr bool value = true;
20  };
21 }
22 
26 namespace demo
27 {
31  typedef art::Source< artdaq::detail::SharedMemoryReader<demo::makeFragmentTypeMap> > DemoInput;
32 }
33 
34 DEFINE_ART_INPUT_SOURCE(demo::DemoInput)