EventInit_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: EventInit
3 // Plugin Type: producer (art v3_00_0)
4 // File: EventInit_module.cc
5 //
6 // A little module for anything that has to be done at the start of
7 // processing every event.
8 // Leo Bellantoni, 8 Aug 2019
9 //
10 ////////////////////////////////////////////////////////////////////////
11 
12 
13 
21 
23 #include "fhiclcpp/ParameterSet.h"
25 
26 //#include "ReconstructionDataProducts/Track.h"
27 //#include "ReconstructionDataProducts/Vertex.h"
28 //#include "ReconstructionDataProducts/Cluster.h"
30 
31 
32 
33 namespace gar {
34  namespace rec {
35 
36 
37 
38  class EventInit : public art::EDProducer {
39  public:
40  explicit EventInit(fhicl::ParameterSet const & p);
41  // The compiler-generated destructor is fine for non-base
42  // classes without bare pointers or other resource use.
43 
44  // Plugins should not be copied or assigned.
45  EventInit(EventInit const &) = delete;
46  EventInit(EventInit &&) = delete;
47  EventInit & operator = (EventInit const &) = delete;
48  EventInit & operator = (EventInit &&) = delete;
49 
50  // Required functions.
51  void produce(art::Event & e) override;
52 
53  private:
55  };
56 
57 
58 
60  {
61  fVerbosity = p.get<int>("Verbosity", 0);
62  }
63 
64 
65 
66  void EventInit::produce(art::Event & /* e */) {
68  return;
69  }
70 
71 
72 
74 
75  } // namespace rec
76 } // namespace gar
rec
Definition: tracks.py:88
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.h:20
static IDNumberGen * create(IDNumber iniValue=std::numeric_limits< IDNumber >::max())
Definition: IDNumberGen.cxx:18
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:67
void produce(art::Event &e) override
p
Definition: test.py:223
General GArSoft Utilities.
EventInit & operator=(EventInit const &)=delete
EventInit(fhicl::ParameterSet const &p)