CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMMsgBuf.cc
Go to the documentation of this file.
1 /*
2  * Message Buffer for Message Queue
3  * - holds an entire FUShmDqmCell to transport
4  *
5  * Author: aspataru : aspataru@cern.ch
6  */
7 
9 #include <iostream>
10 #include <cstdlib>
11 
12 using namespace evf;
13 
14 DQMMsgBuf::DQMMsgBuf(unsigned int size, unsigned int type) :
15  MsgBuf(size, type), theDqmCell_(0) {
16 }
17 
20  //delete[] buf_;
21 }
22 
23 void DQMMsgBuf::initialise(unsigned int dqmCellSize) {
24  // construct the FUShmDqmCell at the buffer address
25  // the memory is allocated in the super constructor
26  theDqmCell_ = new (ptr_->mtext) FUShmDqmCell(dqmCellSize);
27 }
type
Definition: HCALResponse.h:21
struct msgbuf * ptr_
Definition: MsgBuf.h:24
DQMMsgBuf(unsigned int size, unsigned int type)
Definition: DQMMsgBuf.cc:14
FUShmDqmCell * theDqmCell_
Definition: DQMMsgBuf.h:42
virtual ~DQMMsgBuf()
Definition: DQMMsgBuf.cc:18
void initialise(unsigned int dqmCellSize)
Definition: DQMMsgBuf.cc:23
tuple size
Write out results.