CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RawMsgBuf.h
Go to the documentation of this file.
1 /*
2  * Message Buffer for Message Queue
3  * - holds an entire FUShmRawCell to transport
4  *
5  * Author: aspataru : aspataru@cern.ch
6  */
7 
8 #ifndef EVENTFILTER_RB_RAW_MSG_BUF_H
9 #define EVENTFILTER_RB_RAW_MSG_BUF_H
10 
13 
14 namespace evf {
15 
23 class RawMsgBuf: public MsgBuf {
24 
25 public:
26  RawMsgBuf(unsigned int size, unsigned int type);
27  virtual ~RawMsgBuf();
31  void initialise(unsigned int rawCellSize);
36  return (FUShmRawCell*) ptr_->mtext;
37  }
41  inline unsigned int usedSize() {
42  return theRawCell_->eventSize() + sizeof(long int);
43  }
44 
45 private:
47 
48  friend class MasterQueue;
49 };
50 
51 }
52 
53 #endif
type
Definition: HCALResponse.h:22
struct msgbuf * ptr_
Definition: MsgBuf.h:24
FUShmRawCell * rawCell()
Definition: RawMsgBuf.h:35
FUShmRawCell * theRawCell_
Definition: RawMsgBuf.h:46
unsigned int eventSize() const
unsigned int usedSize()
Definition: RawMsgBuf.h:41
RawMsgBuf(unsigned int size, unsigned int type)
Definition: RawMsgBuf.cc:8
void initialise(unsigned int rawCellSize)
Definition: RawMsgBuf.cc:18
virtual ~RawMsgBuf()
Definition: RawMsgBuf.cc:13
tuple size
Write out results.