00001 /* 00002 * Message Buffer for Message Queue 00003 * - holds an entire FUShmRecoCell to transport 00004 * 00005 * Author: aspataru : aspataru@cern.ch 00006 */ 00007 00008 #ifndef EVENTFILTER_RB_RECO_MSG_BUF_H 00009 #define EVENTFILTER_RB_RECO_MSG_BUF_H 00010 00011 #include "EventFilter/Utilities/interface/MsgBuf.h" 00012 #include "EventFilter/ShmBuffer/interface/FUShmRecoCell.h" 00013 00014 namespace evf { 00015 00023 class RecoMsgBuf: public MsgBuf { 00024 00025 public: 00026 RecoMsgBuf(unsigned int size, unsigned int type); 00027 virtual ~RecoMsgBuf(); 00031 void initialise(unsigned int recoCellSize); 00035 FUShmRecoCell* recoCell() { 00036 return (FUShmRecoCell*) ptr_->mtext; 00037 } 00038 00039 private: 00040 FUShmRecoCell* theRecoCell_; 00041 00042 friend class MasterQueue; 00043 }; 00044 00045 } 00046 00047 #endif