CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OutputWorker.h
Go to the documentation of this file.
1 #ifndef Framework_OutputWorker_h
2 #define Framework_OutputWorker_h
3 
4 /*----------------------------------------------------------------------
5 
6 OutputWorker: The OutputModule as the schedule sees it. The job of
7 this object is to call the output module.
8 
9 According to our current definition, a single output module can only
10 appear in one worker.
11 ----------------------------------------------------------------------*/
12 
13 #include <memory>
14 
18 
19 namespace edm {
20 
21  class OutputWorker : public WorkerT<OutputModule> {
22  public:
23  OutputWorker(std::auto_ptr<OutputModule> mod,
24  ModuleDescription const&,
25  WorkerParams const&);
26 
27  virtual ~OutputWorker();
28 
29  // Call closeFile() on the controlled OutputModule.
30  void closeFile();
31 
32  // Call shouldWeCloseFile() on the controlled OutputModule.
33  bool shouldWeCloseFile() const;
34 
35  void openNewFileIfNeeded();
36 
37  bool wantAllEvents() const;
38 
39  void openFile(FileBlock const& fb);
40 
41  void writeRun(RunPrincipal const& rp);
42 
43  void writeLumi(LuminosityBlockPrincipal const& lbp);
44 
45  bool limitReached() const;
46 
47  void configure(OutputModuleDescription const& desc);
48  };
49 
50 }
51 
52 #endif
bool shouldWeCloseFile() const
Definition: OutputWorker.cc:27
void writeLumi(LuminosityBlockPrincipal const &lbp)
Definition: OutputWorker.cc:47
void openFile(FileBlock const &fb)
Definition: OutputWorker.cc:37
OutputWorker(std::auto_ptr< OutputModule > mod, ModuleDescription const &, WorkerParams const &)
Definition: OutputWorker.cc:11
void configure(OutputModuleDescription const &desc)
Definition: OutputWorker.cc:55
bool limitReached() const
Definition: OutputWorker.cc:53
virtual ~OutputWorker()
Definition: OutputWorker.cc:18
void openNewFileIfNeeded()
Definition: OutputWorker.cc:32
bool wantAllEvents() const
Definition: OutputWorker.cc:51
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
void writeRun(RunPrincipal const &rp)
Definition: OutputWorker.cc:42