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
edm::one::OutputModule
Definition: OutputModule.h:30
InitMsgBuilder
Definition: InitMsgBuilder.h:9
edm::StreamerOutputModuleBase::beginJob
void beginJob() override
Definition: StreamerOutputModuleBase.cc:46
edm::StreamerOutputModuleBase::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: StreamerOutputModuleBase.cc:68
OutputModule.h
StreamedProducts.h
edm::EDGetTokenT< TriggerResults >
edm::StreamerOutputModuleBase::StreamerOutputModuleBase
StreamerOutputModuleBase(ParameterSet const &ps)
Definition: StreamerOutputModuleBase.cc:16
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::StreamerOutputModuleBase
Definition: StreamerOutputModuleBase.h:20
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::StreamerOutputModuleBase::doOutputEvent
virtual void doOutputEvent(EventMsgBuilder const &msg)=0
mps_check.msg
tuple msg
Definition: mps_check.py:285
edm::StreamerOutputModuleBase::~StreamerOutputModuleBase
~StreamerOutputModuleBase() override
Definition: StreamerOutputModuleBase.cc:24
edm::StreamerOutputModuleBase::getTriggerResults
Trig getTriggerResults(EDGetTokenT< TriggerResults > const &token, EventForOutput const &e) const
Definition: StreamerOutputModuleBase.cc:61
edm::Handle< edm::TriggerResults >
EventMsgBuilder
Definition: EventMsgBuilder.h:8
edm::LuminosityBlockForOutput
Definition: LuminosityBlockForOutput.h:40
edm::RunForOutput
Definition: RunForOutput.h:39
EDGetToken.h
edm::StreamerOutputModuleBase::psetToken_
edm::EDGetTokenT< SendJobHeader::ParameterSetMap > psetToken_
Definition: StreamerOutputModuleBase.h:45
edm::StreamerOutputModuleBase::writeRun
void writeRun(RunForOutput const &) override
Definition: StreamerOutputModuleBase.cc:50
edm::ParameterSet
Definition: ParameterSet.h:47
edm::StreamerOutputModuleBase::stop
virtual void stop()=0
edm::StreamerOutputModuleBase::write
void write(EventForOutput const &e) override
Definition: StreamerOutputModuleBase.cc:54
edm::StreamerOutputModuleBase::endJob
void endJob() override
Definition: StreamerOutputModuleBase.cc:48
StreamerOutputModuleCommon.h
MsgTools.h
edm::StreamerOutputModuleBase::writeLuminosityBlock
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
Definition: StreamerOutputModuleBase.cc:52
edm::StreamerOutputModuleBase::endRun
void endRun(RunForOutput const &) override
Definition: StreamerOutputModuleBase.cc:44
edm::EventForOutput
Definition: EventForOutput.h:50
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::StreamerOutputModuleBase::beginRun
void beginRun(RunForOutput const &) override
Definition: StreamerOutputModuleBase.cc:26
edm::StreamerOutputModuleBase::start
virtual void start()=0
edm::StreamerOutputModuleBase::doOutputHeader
virtual void doOutputHeader(InitMsgBuilder const &init_message)=0
edm::Trig
detail::TriggerResultsBasedEventSelector::handle_t Trig
Definition: StreamerOutputModuleBase.h:16
edm::StreamerOutputModuleCommon
Definition: StreamerOutputModuleCommon.h:21
edm::StreamerOutputModuleBase::trToken_
edm::EDGetTokenT< edm::TriggerResults > trToken_
Definition: StreamerOutputModuleBase.h:44
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316