CMS 3D CMS Logo

StreamerFileWriter.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerFileWriter_h
2 #define IOPool_Streamer_StreamerFileWriter_h
3 
5 
13 
14 #include <iostream>
15 #include <vector>
16 #include <memory>
17 #include <string>
18 
19 namespace edm {
22  public:
23  explicit StreamerFileWriter(edm::ParameterSet const& ps);
24  explicit StreamerFileWriter(std::string const& fileName);
26 
28 
29  void doOutputHeader(InitMsgBuilder const& init_message);
30  void doOutputHeader(InitMsgView const& init_message);
31 
32  void doOutputEvent(EventMsgBuilder const& msg);
33  void doOutputEvent(EventMsgView const& msg);
34 
35  void start() {}
36  void stop(){};
37 
38  uint32 get_adler32() const { return stream_writer_->adler32(); }
39 
40  private:
42  };
43 } // namespace edm
44 #endif
InitMsgBuilder
Definition: InitMsgBuilder.h:9
edm::StreamerFileWriter::doOutputEvent
void doOutputEvent(EventMsgBuilder const &msg)
Definition: StreamerFileWriter.cc:29
edm::StreamerFileWriter::start
void start()
Definition: StreamerFileWriter.h:35
propagate_const.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::StreamerFileWriter::stop
void stop()
Definition: StreamerFileWriter.h:36
edm::StreamerFileWriter::doOutputHeader
void doOutputHeader(InitMsgBuilder const &init_message)
Definition: StreamerFileWriter.cc:13
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
mps_check.msg
tuple msg
Definition: mps_check.py:285
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
InitMessage.h
StreamerOutputFile.h
EventMsgView
Definition: EventMessage.h:72
uint32
unsigned int uint32
Definition: MsgTools.h:13
EventMsgBuilder
Definition: EventMsgBuilder.h:8
edm::StreamerFileWriter::get_adler32
uint32 get_adler32() const
Definition: StreamerFileWriter.h:38
edm::propagate_const
Definition: propagate_const.h:32
InitMsgBuilder.h
EventMsgBuilder.h
edm::StreamerFileWriter::stream_writer_
edm::propagate_const< std::unique_ptr< StreamerOutputFile > > stream_writer_
Definition: StreamerFileWriter.h:41
edm::StreamerFileWriter
Definition: StreamerFileWriter.h:21
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::StreamerFileWriter::~StreamerFileWriter
~StreamerFileWriter()
Definition: StreamerFileWriter.cc:11
edm::StreamerFileWriter::fillDescription
static void fillDescription(ParameterSetDescription &desc)
Definition: StreamerFileWriter.cc:34
edm::ParameterSet
Definition: ParameterSet.h:47
MsgTools.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
EventMessage.h
ParameterSetDescription
ParameterSet.h
edm::StreamerFileWriter::StreamerFileWriter
StreamerFileWriter(edm::ParameterSet const &ps)
Definition: StreamerFileWriter.cc:5
InitMsgView
Definition: InitMessage.h:61