LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
EDAnalyzer.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 namespace art {
5 
7  : Analyzer{pset}, LegacyModule{pset.get<std::string>("module_label")}
8  {}
9 
10  std::unique_ptr<Worker>
12  {
13  return std::make_unique<WorkerT<EDAnalyzer>>(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  analyze(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
std::unique_ptr< Worker > doMakeWorker(WorkerParams const &wp) final
Definition: EDAnalyzer.cc:11
virtual void beginRun(Run const &)
Definition: EDAnalyzer.cc:119
void setupQueues(detail::SharedResources const &) final
Definition: EDAnalyzer.cc:17
void beginJobWithFrame(ProcessingFrame const &) final
Definition: EDAnalyzer.cc:51
virtual void analyze(Event const &)=0
virtual void respondToCloseInputFile(FileBlock const &)
Definition: EDAnalyzer.cc:107
void beginSubRunWithFrame(SubRun const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:75
void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:23
void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:30
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.cc:6
virtual void endRun(Run const &)
Definition: EDAnalyzer.cc:123
virtual void endJob()
Definition: EDAnalyzer.cc:99
Definition: Run.h:37
virtual void endSubRun(SubRun const &)
Definition: EDAnalyzer.cc:131
auto scheduleID() const
virtual void beginJob()
Definition: EDAnalyzer.cc:95
virtual void respondToCloseOutputFiles(FileBlock const &)
Definition: EDAnalyzer.cc:115
virtual void beginSubRun(SubRun const &)
Definition: EDAnalyzer.cc:127
void endJobWithFrame(ProcessingFrame const &) final
Definition: EDAnalyzer.cc:57
void beginRunWithFrame(Run const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:63
TFile fb("Li6.root")
void createQueues(SharedResources const &resources)
Definition: SharedModule.cc:34
void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:44
virtual void respondToOpenOutputFiles(FileBlock const &)
Definition: EDAnalyzer.cc:111
virtual void respondToOpenInputFile(FileBlock const &)
Definition: EDAnalyzer.cc:103
Definition: MVAAlg.h:12
void analyzeWithFrame(Event const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:87
void endSubRunWithFrame(SubRun const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:81
Float_t e
Definition: plot.C:35
void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:37
void endRunWithFrame(Run const &, ProcessingFrame const &) final
Definition: EDAnalyzer.cc:69