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