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