LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EDProducer.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 namespace art {
5 
7  : Producer{pset}, LegacyModule{pset.get<std::string>("module_label")}
8  {}
9 
10  std::unique_ptr<Worker>
12  {
13  return std::make_unique<WorkerT<EDProducer>>(this, wp);
14  }
15 
16  void
18  {
19  createQueues(resources);
20  }
21 
22  void
24  ProcessingFrame const&)
25  {
27  }
28 
29  void
31  ProcessingFrame const&)
32  {
34  }
35 
36  void
38  ProcessingFrame const&)
39  {
41  }
42 
43  void
45  ProcessingFrame const&)
46  {
48  }
49 
50  void
52  {
53  beginJob();
54  }
55 
56  void
58  {
59  endJob();
60  }
61 
62  void
64  {
65  beginRun(r);
66  }
67 
68  void
70  {
71  endRun(r);
72  }
73 
74  void
76  {
77  beginSubRun(sr);
78  }
79 
80  void
82  {
83  endSubRun(sr);
84  }
85 
86  void
88  {
89  ScheduleIDSentry sentry{*this, frame.scheduleID()};
90  produce(e);
91  }
92 
93  // Default implementations
94  void
96  {}
97 
98  void
100  {}
101 
102  void
104  {}
105 
106  void
108  {}
109 
110  void
112  {}
113 
114  void
116  {}
117 
118  void
120  {}
121 
122  void
124  {}
125 
126  void
128  {}
129 
130  void
132  {}
133 
134 } // namespace art
TRandom r
Definition: spectrum.C:23
void produceWithFrame(Event &, ProcessingFrame const &) final
Definition: EDProducer.cc:87
void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDProducer.cc:23
virtual void endRun(Run &)
Definition: EDProducer.cc:123
void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDProducer.cc:37
void endJobWithFrame(ProcessingFrame const &) final
Definition: EDProducer.cc:57
EDProducer(fhicl::ParameterSet const &pset)
Definition: EDProducer.cc:6
virtual void respondToCloseOutputFiles(FileBlock const &)
Definition: EDProducer.cc:115
virtual void beginRun(Run &)
Definition: EDProducer.cc:119
virtual void respondToOpenInputFile(FileBlock const &)
Definition: EDProducer.cc:103
void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDProducer.cc:44
Definition: Run.h:37
auto scheduleID() const
void endRunWithFrame(Run &, ProcessingFrame const &) final
Definition: EDProducer.cc:69
void endSubRunWithFrame(SubRun &, ProcessingFrame const &) final
Definition: EDProducer.cc:81
virtual void endJob()
Definition: EDProducer.cc:99
std::unique_ptr< Worker > doMakeWorker(WorkerParams const &wp) final
Definition: EDProducer.cc:11
virtual void endSubRun(SubRun &)
Definition: EDProducer.cc:131
TFile fb("Li6.root")
virtual void beginJob()
Definition: EDProducer.cc:95
void beginRunWithFrame(Run &, ProcessingFrame const &) final
Definition: EDProducer.cc:63
void createQueues(SharedResources const &resources)
Definition: SharedModule.cc:34
virtual void respondToCloseInputFile(FileBlock const &)
Definition: EDProducer.cc:107
Definition: MVAAlg.h:12
void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDProducer.cc:30
void setupQueues(detail::SharedResources const &resources) final
Definition: EDProducer.cc:17
void beginSubRunWithFrame(SubRun &, ProcessingFrame const &) final
Definition: EDProducer.cc:75
Float_t e
Definition: plot.C:35
void beginJobWithFrame(ProcessingFrame const &) final
Definition: EDProducer.cc:51
virtual void produce(Event &)=0
virtual void beginSubRun(SubRun &)
Definition: EDProducer.cc:127
virtual void respondToOpenOutputFiles(FileBlock const &)
Definition: EDProducer.cc:111