CMS 3D CMS Logo

RecoEventWriterForFU.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_RecoEventWriterForFU_h
2 #define IOPool_Streamer_RecoEventWriterForFU_h
3 
12 
13 #include <iostream>
14 #include <vector>
15 #include <memory>
16 #include <string>
17 
18 namespace evf {
21  public:
22  explicit RecoEventWriterForFU(edm::ParameterSet const& ps);
24 
26 
27  void setInitMessageFile(std::string const&);
28  void setOutputFile(std::string const&);
29  void closeOutputFile();
30 
31  void doOutputHeader(InitMsgBuilder const& init_message);
32  void doOutputHeader(InitMsgView const& init_message);
33 
34  void doOutputEvent(EventMsgBuilder const& msg);
35  void doOutputEvent(EventMsgView const& msg);
36 
37  void start() {}
38  void stop() {}
39 
41  uint32 get_adler32() const { return stream_writer_events_->adler32(); }
42 
43  private:
44  std::shared_ptr<StreamerOutputFile> stream_writer_preamble_;
45  std::shared_ptr<StreamerOutputFile> stream_writer_events_;
47  };
48 } // namespace evf
49 #endif
InitMsgBuilder
Definition: InitMsgBuilder.h:9
evf::RecoEventWriterForFU::setOutputFile
void setOutputFile(std::string const &)
Definition: RecoEventWriterForFU.cc:42
evf::RecoEventWriterForFU::RecoEventWriterForFU
RecoEventWriterForFU(edm::ParameterSet const &ps)
Definition: RecoEventWriterForFU.cc:6
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
mps_check.msg
tuple msg
Definition: mps_check.py:285
InitMessage.h
evf::RecoEventWriterForFU::get_adler32
uint32 get_adler32() const
Definition: RecoEventWriterForFU.h:41
StreamerOutputFile.h
EventMsgView
Definition: EventMessage.h:72
uint32
unsigned int uint32
Definition: MsgTools.h:13
EventMsgBuilder
Definition: EventMsgBuilder.h:8
evf::RecoEventWriterForFU::doOutputEvent
void doOutputEvent(EventMsgBuilder const &msg)
Definition: RecoEventWriterForFU.cc:30
evf::RecoEventWriterForFU::setInitMessageFile
void setInitMessageFile(std::string const &)
Definition: RecoEventWriterForFU.cc:37
InitMsgBuilder.h
EventMsgBuilder.h
evf::RecoEventWriterForFU::doOutputHeader
void doOutputHeader(InitMsgBuilder const &init_message)
Definition: RecoEventWriterForFU.cc:10
evf::RecoEventWriterForFU::stream_writer_preamble_
std::shared_ptr< StreamerOutputFile > stream_writer_preamble_
Definition: RecoEventWriterForFU.h:44
ParameterSetDescription.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
evf::RecoEventWriterForFU::stream_writer_events_
std::shared_ptr< StreamerOutputFile > stream_writer_events_
Definition: RecoEventWriterForFU.h:45
edm::ParameterSet
Definition: ParameterSet.h:36
evf::RecoEventWriterForFU::stop
void stop()
Definition: RecoEventWriterForFU.h:38
evf::RecoEventWriterForFU::~RecoEventWriterForFU
~RecoEventWriterForFU()
Definition: RecoEventWriterForFU.cc:8
MsgTools.h
evf
Definition: fillJson.h:27
EventMessage.h
ParameterSetDescription
evf::RecoEventWriterForFU
Definition: RecoEventWriterForFU.h:20
ParameterSet.h
evf::RecoEventWriterForFU::start
void start()
Definition: RecoEventWriterForFU.h:37
evf::RecoEventWriterForFU::get_adler32_ini
uint32 get_adler32_ini() const
Definition: RecoEventWriterForFU.h:40
evf::RecoEventWriterForFU::closeOutputFile
void closeOutputFile()
Definition: RecoEventWriterForFU.cc:46
evf::RecoEventWriterForFU::preamble_adler32_
uint32 preamble_adler32_
Definition: RecoEventWriterForFU.h:46
InitMsgView
Definition: InitMessage.h:61
evf::RecoEventWriterForFU::fillDescription
static void fillDescription(edm::ParameterSetDescription &desc)
Definition: RecoEventWriterForFU.cc:35