CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FRDEventFileWriter.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_FRDEventFileWriter_h
2 #define IOPool_Streamer_FRDEventFileWriter_h
3 
4 
7 
8 #include <fstream>
9 
11 {
12  public:
13 
14  explicit FRDEventFileWriter(edm::ParameterSet const& ps);
15  explicit FRDEventFileWriter(std::string const& fileName);
17 
18  void doOutputEvent(FRDEventMsgView const& msg);
19  void doOutputEventFragment(unsigned char* dataPtr,
20  unsigned long dataSize);
21 
22  uint32 adler32() const { return (adlerb_ << 16) | adlera_; }
23 
24  void start() {}
25  void stop() {}
26 
27  private:
28 
29  void initialize(std::string const& name);
30 
31  std::auto_ptr<std::ofstream> ost_;
33 
36 
37 };
38 #endif
FRDEventFileWriter(edm::ParameterSet const &ps)
std::auto_ptr< std::ofstream > ost_
void doOutputEventFragment(unsigned char *dataPtr, unsigned long dataSize)
void initialize(std::string const &name)
unsigned int uint32
Definition: MsgTools.h:13
void doOutputEvent(FRDEventMsgView const &msg)
uint32 adler32() const