RunSubRunProductProducerNoPut_module.cc
Go to the documentation of this file.
1 //--------------------------------------------------------------------
2 //
3 // Produces an RunSubRunProducerNoPut instance.
4 //
5 //--------------------------------------------------------------------
6 
11 
12 namespace art {
13  class Event;
14 }
15 namespace fhicl {
16  class ParameterSet;
17 }
18 
19 namespace arttest {
20 
22  public:
24  : EDProducer{ps}
25  {
26  produces<int, art::InRun>("bgnRun");
27  produces<int, art::InSubRun>("bgnSubRun");
28  }
29 
30  private:
31  // We are not putting the products on the Run or SubRun -- i.e. no
32  // overrides for beginRun and beginSubRun.
33  void
34  produce(art::Event&) override
35  {}
36  };
37 
38 } // namespace arttest
39 
static const double ps
Definition: Units.h:103
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
parameter set interface
RunSubRunProducerNoPut(fhicl::ParameterSet const &ps)