CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/IOPool/Streamer/interface/FRDEventMessage.h

Go to the documentation of this file.
00001 #ifndef IOPool_Streamer_FRDEventMessage_h
00002 #define IOPool_Streamer_FRDEventMessage_h
00003 
00025 #include "IOPool/Streamer/interface/MsgTools.h"
00026 
00027 struct FRDEventHeader_V2
00028 {
00029   uint32 version_;
00030   uint32 run_;
00031   uint32 lumi_;
00032   uint32 event_;
00033 };
00034 
00035 struct FRDEventHeader_V1
00036 {
00037   uint32 run_;
00038   uint32 event_;
00039 };
00040 
00041 class FRDEventMsgView
00042 {
00043  public:
00044 
00045   FRDEventMsgView(void* buf);
00046 
00047   uint8* startAddress() const { return buf_; }
00048   uint32 size() const { return event_len_; }
00049 
00050   uint32 version() const;
00051   uint32 run() const;
00052   uint32 lumi() const;
00053   uint32 event() const;
00054 
00055  private:
00056 
00057   uint8* buf_;
00058   uint32 event_len_;
00059 };
00060 
00061 #endif