SharedFilter.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
4 namespace art {
5 
8  {
9  return "WorkerT<SharedFilter>";
10  }
11 
12  void
14  {
15  createQueues(resources);
16  }
17 
18  void
20  ProcessingFrame const& frame)
21  {
22  respondToOpenInputFile(fb, frame);
23  }
24 
25  void
27  ProcessingFrame const& frame)
28  {
29  respondToCloseInputFile(fb, frame);
30  }
31 
32  void
34  ProcessingFrame const& frame)
35  {
36  respondToOpenOutputFiles(fb, frame);
37  }
38 
39  void
41  ProcessingFrame const& frame)
42  {
43  respondToCloseOutputFiles(fb, frame);
44  }
45 
46  void
48  {
49  beginJob(frame);
50  }
51 
52  void
54  {
55  endJob(frame);
56  }
57 
58  bool
60  {
61  beginRun(r, frame);
62  return true;
63  }
64 
65  bool
67  {
68  endRun(r, frame);
69  return true;
70  }
71 
72  bool
74  {
75  beginSubRun(sr, frame);
76  return true;
77  }
78 
79  bool
81  {
82  endSubRun(sr, frame);
83  return true;
84  }
85 
86  bool
88  {
89  return filter(e, frame);
90  }
91 
92  // Default implementations
93  void
95  {}
96 
97  void
99  {}
100 
101  void
103  {}
104 
105  void
107  ProcessingFrame const&)
108  {}
109 
110  void
112  ProcessingFrame const&)
113  {}
114 
115  void
117  ProcessingFrame const&)
118  {}
119 
120  void
122  {}
123 
124  void
126  {}
127 
128  void
130  {}
131 
132  void
134  {}
135 
136 } // namespace art
void respondToOpenOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:33
void respondToOpenInputFileWithFrame(FileBlock const &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:19
void respondToCloseInputFileWithFrame(FileBlock const &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:26
virtual void respondToOpenInputFile(FileBlock const &, ProcessingFrame const &)
std::string string
Definition: nybbler.cc:12
bool beginRunWithFrame(Run &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:59
virtual void endSubRun(SubRun &, ProcessingFrame const &)
bool beginSubRunWithFrame(SubRun &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:73
virtual void endJob(ProcessingFrame const &)
Definition: SharedFilter.cc:98
void endJobWithFrame(ProcessingFrame const &) override final
Definition: SharedFilter.cc:53
Definition: Run.h:17
virtual void respondToOpenOutputFiles(FileBlock const &, ProcessingFrame const &)
void beginJobWithFrame(ProcessingFrame const &) override final
Definition: SharedFilter.cc:47
const double e
virtual void respondToCloseOutputFiles(FileBlock const &, ProcessingFrame const &)
virtual void respondToCloseInputFile(FileBlock const &, ProcessingFrame const &)
bool filterWithFrame(Event &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:87
void respondToCloseOutputFilesWithFrame(FileBlock const &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:40
void setupQueues(detail::SharedResources const &resources) override final
Definition: SharedFilter.cc:13
virtual void endRun(Run &, ProcessingFrame const &)
virtual void beginRun(Run &, ProcessingFrame const &)
std::string workerType() const
Definition: SharedFilter.cc:7
void createQueues(SharedResources const &resources)
Definition: SharedModule.cc:34
virtual void beginSubRun(SubRun &, ProcessingFrame const &)
bool endSubRunWithFrame(SubRun &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:80
virtual void beginJob(ProcessingFrame const &)
Definition: SharedFilter.cc:94
static constexpr double sr
Definition: Units.h:166
bool endRunWithFrame(Run &, ProcessingFrame const &) override final
Definition: SharedFilter.cc:66
virtual bool filter(Event &, ProcessingFrame const &)=0