CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
std::shared_ptr< StreamerOutputFile > stream_writer_events_
void setInitMessageFile(std::string const &)
std::shared_ptr< StreamerOutputFile > stream_writer_preamble_
void setOutputFile(std::string const &)
unsigned int uint32
Definition: MsgTools.h:13
void doOutputEvent(EventMsgBuilder const &msg)
tuple msg
Definition: mps_check.py:285
void doOutputHeader(InitMsgBuilder const &init_message)
static void fillDescription(edm::ParameterSetDescription &desc)
RecoEventWriterForFU(edm::ParameterSet const &ps)