CMS 3D CMS Logo

StreamerOutputModuleBase.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerOutputModuleBase_h
2 #define IOPool_Streamer_StreamerOutputModuleBase_h
3 
8 //#include "IOPool/Streamer/interface/StreamSerializer.h"
9 //#include <memory>
10 //#include <vector>
11 
12 class InitMsgBuilder;
13 class EventMsgBuilder;
14 namespace edm {
16 
18 
19  class StreamerOutputModuleBase : public one::OutputModule<one::WatchRuns, one::WatchLuminosityBlocks>,
21  public:
22  explicit StreamerOutputModuleBase(ParameterSet const& ps);
23  ~StreamerOutputModuleBase() override;
24  static void fillDescription(ParameterSetDescription& desc);
25 
26  private:
27  void beginRun(RunForOutput const&) override;
28  void endRun(RunForOutput const&) override;
29  void beginJob() override;
30  void endJob() override;
31  void writeRun(RunForOutput const&) override;
32  void writeLuminosityBlock(LuminosityBlockForOutput const&) override;
33  void write(EventForOutput const& e) override;
34 
35  virtual void start() = 0;
36  virtual void stop() = 0;
37  virtual void doOutputHeader(InitMsgBuilder const& init_message) = 0;
38  virtual void doOutputEvent(EventMsgBuilder const& msg) = 0;
39 
41 
42  private:
44 
45  }; //end-of-class-def
46 
47 } // namespace edm
48 
49 #endif
static void fillDescription(ParameterSetDescription &desc)
Trig getTriggerResults(EDGetTokenT< TriggerResults > const &token, EventForOutput const &e) const
virtual void doOutputHeader(InitMsgBuilder const &init_message)=0
void endRun(RunForOutput const &) override
void write(EventForOutput const &e) override
detail::TriggerResultsBasedEventSelector::handle_t Trig
Definition: OutputModule.h:52
void beginRun(RunForOutput const &) override
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
virtual void doOutputEvent(EventMsgBuilder const &msg)=0
StreamerOutputModuleBase(ParameterSet const &ps)
edm::EDGetTokenT< edm::TriggerResults > trToken_
tuple msg
Definition: mps_check.py:285
void writeRun(RunForOutput const &) override
HLT enums.