Line data Source code
1 : #include "artdaq/ArtModules/ArtdaqInputHelper.hh"
2 : #include "artdaq/ArtModules/detail/ShmemWrapper.hh"
3 :
4 : #include "art/Framework/Core/InputSourceMacros.h"
5 : #include "art/Framework/IO/Sources/Source.h"
6 :
7 : /**
8 : * \brief Namespace used for classes that interact directly with art
9 : */
10 : namespace art {
11 : /**
12 : * \brief Trait definition (must precede source typedef).
13 : */
14 : template<>
15 : struct Source_generator<ArtdaqInputHelper<ShmemWrapper>>
16 : {
17 : static constexpr bool value = true; ///< dummy parameter
18 : };
19 :
20 : // Source declaration.
21 : /**
22 : * \brief ArtdaqInput is an art::Source using an ArtdaqInputHelper-wrapped ShmemWrapper
23 : */
24 : using ArtdaqInput = art::Source<ArtdaqInputHelper<ShmemWrapper>>;
25 : } // namespace art
26 :
27 0 : DEFINE_ART_INPUT_SOURCE(art::ArtdaqInput)
|