LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ReplicatedAnalyzer.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 namespace art {
5 
7  ProcessingFrame const& frame)
8  : Analyzer{pset}
9  , EngineCreator{pset.get<std::string>("module_label"), frame.scheduleID()}
10  {}
11 
12  std::unique_ptr<Worker>
14  {
15  return std::make_unique<WorkerT<ReplicatedAnalyzer>>(this, wp);
16  }
17 
18  void
20  {
21  // For art 3.0, replicated modules will not have queues.
22  }
23 
24  void
26  FileBlock const& fb,
27  ProcessingFrame const& frame)
28  {
29  respondToOpenInputFile(fb, frame);
30  }
31 
32  void
34  FileBlock const& fb,
35  ProcessingFrame const& frame)
36  {
37  respondToCloseInputFile(fb, frame);
38  }
39 
40  void
42  FileBlock const& fb,
43  ProcessingFrame const& frame)
44  {
45  respondToOpenOutputFiles(fb, frame);
46  }
47 
48  void
50  FileBlock const& fb,
51  ProcessingFrame const& frame)
52  {
53  respondToCloseOutputFiles(fb, frame);
54  }
55 
56  void
58  {
59  beginJob(frame);
60  }
61 
62  void
64  {
65  endJob(frame);
66  }
67 
68  void
70  ProcessingFrame const& frame)
71  {
72  beginRun(r, frame);
73  }
74 
75  void
77  ProcessingFrame const& frame)
78  {
79  endRun(r, frame);
80  }
81 
82  void
84  ProcessingFrame const& frame)
85  {
86  beginSubRun(sr, frame);
87  }
88 
89  void
91  ProcessingFrame const& frame)
92  {
93  endSubRun(sr, frame);
94  }
95 
96  void
98  ProcessingFrame const& frame)
99  {
100  analyze(e, frame);
101  }
102 
103  void
105  {}
106 
107  void
109  {}
110 
111  void
113  ProcessingFrame const&)
114  {}
115 
116  void
118  ProcessingFrame const&)
119  {}
120 
121  void
123  ProcessingFrame const&)
124  {}
125 
126  void
128  ProcessingFrame const&)
129  {}
130 
131  void
133  {}
134 
135  void
137  {}
138 
139  void
141  {}
142 
143  void
145  {}
146 
147 } // namespace art
TRandom r
Definition: spectrum.C:23
virtual void respondToOpenOutputFiles(FileBlock const &, ProcessingFrame const &)
void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) final
virtual void respondToCloseInputFile(FileBlock const &, ProcessingFrame const &)
std::unique_ptr< Worker > doMakeWorker(WorkerParams const &wp) final
void beginSubRunWithFrame(SubRun const &, ProcessingFrame const &) final
void endJobWithFrame(ProcessingFrame const &) final
virtual void endRun(Run const &, ProcessingFrame const &)
virtual void respondToOpenInputFile(FileBlock const &, ProcessingFrame const &)
Definition: Run.h:37
virtual void analyze(Event const &, ProcessingFrame const &)=0
void beginJobWithFrame(ProcessingFrame const &) final
void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) final
ReplicatedAnalyzer(fhicl::ParameterSet const &pset, ProcessingFrame const &frame)
void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &) final
void setupQueues(detail::SharedResources const &resources) final
virtual void respondToCloseOutputFiles(FileBlock const &, ProcessingFrame const &)
virtual void beginSubRun(SubRun const &, ProcessingFrame const &)
void endSubRunWithFrame(SubRun const &, ProcessingFrame const &) final
TFile fb("Li6.root")
void beginRunWithFrame(Run const &, ProcessingFrame const &) final
virtual void beginRun(Run const &, ProcessingFrame const &)
virtual void beginJob(ProcessingFrame const &)
virtual void endSubRun(SubRun const &, ProcessingFrame const &)
void analyzeWithFrame(Event const &, ProcessingFrame const &) final
void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &) final
Definition: MVAAlg.h:12
void endRunWithFrame(Run const &, ProcessingFrame const &) final
virtual void endJob(ProcessingFrame const &)
Float_t e
Definition: plot.C:35