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