InputProducerNoEvents_module.cc
Go to the documentation of this file.
1 //--------------------------------------------------------------------
2 //
3 // Produces an InputProducer instance.
4 //
5 //--------------------------------------------------------------------
6 
12 
14 
15 namespace fhicl {
16  class ParameterSet;
17 }
18 
19 namespace arttest {
20 
22  public:
24  {
25  produces<StringProduct, art::InSubRun>("endSubRun");
26  produces<StringProduct, art::InRun>("endRun");
27  }
28 
29  virtual void
30  endRun(art::Run& r) override
31  {
32  r.put(std::make_unique<StringProduct>("endRun"),
33  "endRun",
35  }
36 
37  virtual void
39  {
40  sr.put(std::make_unique<StringProduct>("endSubRun"),
41  "endSubRun",
43  }
44 
45  virtual void
46  produce(art::Event&) override
47  {}
48  };
49 
50 } // namespace arttest
51 
virtual void endRun(art::Run &r) override
Definition: Run.h:21
constexpr auto runFragment()
InputProducerNoEvents(fhicl::ParameterSet const &)
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
parameter set interface
virtual void endSubRun(art::SubRun &sr) override
constexpr auto subRunFragment()
virtual void produce(art::Event &) override
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692
static const double sr
Definition: Units.h:167