ReplicatedFilter.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 namespace art {
5 
8  {
9  return "WorkerT<ReplicatedFilter>";
10  }
11 
12  void
14  {
15  // For art 3.0, replicated modules will not have queues.
16  }
17 
18  void
20  FileBlock const& fb,
21  ProcessingFrame const& frame)
22  {
23  respondToOpenInputFile(fb, frame);
24  }
25 
26  void
28  FileBlock const& fb,
29  ProcessingFrame const& frame)
30  {
31  respondToCloseInputFile(fb, frame);
32  }
33 
34  void
36  FileBlock const& fb,
37  ProcessingFrame const& frame)
38  {
39  respondToOpenOutputFiles(fb, frame);
40  }
41 
42  void
44  FileBlock const& fb,
45  ProcessingFrame const& frame)
46  {
47  respondToCloseOutputFiles(fb, frame);
48  }
49 
50  void
52  {
53  beginJob(frame);
54  }
55 
56  void
58  {
59  endJob(frame);
60  }
61 
62  bool
64  {
65  beginRun(r, frame);
66  return true;
67  }
68 
69  bool
71  {
72  endRun(r, frame);
73  return true;
74  }
75 
76  bool
78  ProcessingFrame const& frame)
79  {
80  beginSubRun(sr, frame);
81  return true;
82  }
83 
84  bool
86  {
87  endSubRun(sr, frame);
88  return true;
89  }
90 
91  bool
93  {
94  return filter(e, frame);
95  }
96 
97  // Default implementations
98  void
100  {}
101 
102  void
104  {}
105 
106  void
108  ProcessingFrame const&)
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  {}
129 
130  void
132  {}
133 
134  void
136  {}
137 
138  void
140  {}
141 
142 } // namespace art
bool endRunWithFrame(Run &, ProcessingFrame const &) override final
std::string string
Definition: nybbler.cc:12
void setupQueues(detail::SharedResources const &) override final
bool beginSubRunWithFrame(SubRun &, ProcessingFrame const &) override final
bool beginRunWithFrame(Run &, ProcessingFrame const &) override final
void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) override final
virtual void respondToOpenInputFile(FileBlock const &, ProcessingFrame const &)
virtual void endSubRun(SubRun const &, ProcessingFrame const &)
Definition: Run.h:17
std::string workerType() const
bool filterWithFrame(Event &, ProcessingFrame const &) override final
virtual void beginRun(Run const &, ProcessingFrame const &)
const double e
void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &) override final
virtual void respondToCloseInputFile(FileBlock const &, ProcessingFrame const &)
virtual void endJob(ProcessingFrame const &)
void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &) override final
void beginJobWithFrame(ProcessingFrame const &) override final
void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) override final
bool endSubRunWithFrame(SubRun &, ProcessingFrame const &) override final
virtual void beginSubRun(SubRun const &, ProcessingFrame const &)
virtual void beginJob(ProcessingFrame const &)
void endJobWithFrame(ProcessingFrame const &) override final
virtual void respondToOpenOutputFiles(FileBlock const &, ProcessingFrame const &)
virtual void respondToCloseOutputFiles(FileBlock const &, ProcessingFrame const &)
virtual void endRun(Run const &, ProcessingFrame const &)
static constexpr double sr
Definition: Units.h:166
virtual bool filter(Event &, ProcessingFrame const &)=0