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 namespace edm {
15 
17 
18  namespace streamer {
19  class InitMsgBuilder;
20  class EventMsgBuilder;
21 
22  class StreamerOutputModuleBase : public one::OutputModule<one::WatchRuns, one::WatchLuminosityBlocks>,
24  public:
25  explicit StreamerOutputModuleBase(ParameterSet const& ps);
26  ~StreamerOutputModuleBase() override;
28 
29  private:
30  void beginRun(RunForOutput const&) override;
31  void endRun(RunForOutput const&) override;
32  void beginJob() override;
33  void endJob() override;
34  void writeRun(RunForOutput const&) override;
35  void writeLuminosityBlock(LuminosityBlockForOutput const&) override;
36  void write(EventForOutput const& e) override;
37 
38  virtual void start() = 0;
39  virtual void stop() = 0;
40  virtual void doOutputHeader(InitMsgBuilder const& init_message) = 0;
41  virtual void doOutputEvent(EventMsgBuilder const& msg) = 0;
42 
44 
45  private:
48  bool lastCallWasBeginRun_ = false;
49 
50  }; //end-of-class-def
51  } // namespace streamer
52 } // namespace edm
53 
54 #endif
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
void write(EventForOutput const &e) override
void beginRun(RunForOutput const &) override
detail::TriggerResultsBasedEventSelector::handle_t Trig
static void fillDescription(ParameterSetDescription &desc)
edm::EDGetTokenT< SendJobHeader::ParameterSetMap > psetToken_
Trig getTriggerResults(EDGetTokenT< TriggerResults > const &token, EventForOutput const &e) const
void endRun(RunForOutput const &) override
virtual void doOutputEvent(EventMsgBuilder const &msg)=0
edm::EDGetTokenT< edm::TriggerResults > trToken_
void writeRun(RunForOutput const &) override
tuple msg
Definition: mps_check.py:286
HLT enums.
virtual void doOutputHeader(InitMsgBuilder const &init_message)=0