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 
9 //#include "IOPool/Streamer/interface/StreamSerializer.h"
10 //#include <memory>
11 //#include <vector>
12 
13 class InitMsgBuilder;
14 class EventMsgBuilder;
15 namespace edm {
17 
19 
20  class StreamerOutputModuleBase : public one::OutputModule<one::WatchRuns, one::WatchLuminosityBlocks>,
22  public:
23  explicit StreamerOutputModuleBase(ParameterSet const& ps);
24  ~StreamerOutputModuleBase() override;
26 
27  private:
28  void beginRun(RunForOutput const&) override;
29  void endRun(RunForOutput const&) override;
30  void beginJob() override;
31  void endJob() override;
32  void writeRun(RunForOutput const&) override;
33  void writeLuminosityBlock(LuminosityBlockForOutput const&) override;
34  void write(EventForOutput const& e) override;
35 
36  virtual void start() = 0;
37  virtual void stop() = 0;
38  virtual void doOutputHeader(InitMsgBuilder const& init_message) = 0;
39  virtual void doOutputEvent(EventMsgBuilder const& msg) = 0;
40 
42 
43  private:
46 
47  }; //end-of-class-def
48 
49 } // namespace edm
50 
51 #endif
static void fillDescription(ParameterSetDescription &desc)
virtual void doOutputHeader(InitMsgBuilder const &init_message)=0
void endRun(RunForOutput const &) override
void write(EventForOutput const &e) override
detail::TriggerResultsBasedEventSelector::handle_t Trig
void beginRun(RunForOutput const &) override
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
Trig getTriggerResults(EDGetTokenT< TriggerResults > const &token, EventForOutput const &e) const
virtual void doOutputEvent(EventMsgBuilder const &msg)=0
StreamerOutputModuleBase(ParameterSet const &ps)
edm::EDGetTokenT< edm::TriggerResults > trToken_
tuple msg
Definition: mps_check.py:286
void writeRun(RunForOutput const &) override
HLT enums.
edm::EDGetTokenT< SendJobHeader::ParameterSetMap > psetToken_