#include <DQMEventMsgBuilder.h>
Public Member Functions | |
uint32 | bufferSize () const |
DQMEventMsgBuilder (void *buf, uint32 bufSize, uint32 run, uint32 event, edm::Timestamp timeStamp, uint32 lumiSection, uint32 updateNumber, uint32 adler32_chksum, const char *host_name, std::string const &releaseTag, std::string const &topFolderName, DQMEvent::TObjectTable monitorElementsBySubFolder) | |
uint8 * | eventAddress () const |
uint32 | headerSize () const |
void | setCompressionFlag (uint32) |
void | setEventLength (uint32 len) |
void | setFUGuid (uint32) |
void | setFUProcessId (uint32) |
void | setReserved (uint32) |
uint32 | size () const |
uint8 * | startAddress () const |
Private Attributes | |
uint8 * | buf_ |
uint32 | bufSize_ |
uint8 * | eventAddr_ |
This class is used to build and view the DQM Event data that is exchanged between the filter units and the storage manager.
09-Feb-2007 - Initial Implementation DQM Event Message Format:
Definition at line 48 of file DQMEventMsgBuilder.h.
DQMEventMsgBuilder::DQMEventMsgBuilder | ( | void * | buf, |
uint32 | bufSize, | ||
uint32 | run, | ||
uint32 | event, | ||
edm::Timestamp | timeStamp, | ||
uint32 | lumiSection, | ||
uint32 | updateNumber, | ||
uint32 | adler_chksum, | ||
const char * | host_name, | ||
std::string const & | releaseTag, | ||
std::string const & | topFolderName, | ||
DQMEvent::TObjectTable | monitorElementsBySubFolder | ||
) |
This class is used to build and view the DQM Event data that is exchanged between the filter units and the storage manager.
09-Feb-2007 - Initial Implementation Constructor.
Definition at line 18 of file DQMEventMsgBuilder.cc.
References buf_, bufSize_, convert(), eventAddr_, DQMEventHeader::eventNumber_, edm::hlt::Exception, DQMEventHeader::headerSize_, DQMEventHeader::lumiSection_, DQMEventHeader::protocolVersion_, DQMEventHeader::runNumber_, setCompressionFlag(), setEventLength(), setFUGuid(), setFUProcessId(), setReserved(), DQMEventHeader::timeStamp_, DQMEventHeader::updateNumber_, and edm::Timestamp::value().
|
inline |
|
inline |
Definition at line 67 of file DQMEventMsgBuilder.h.
References eventAddr_.
Referenced by StreamDQMOutputFile::write().
|
inline |
Definition at line 62 of file DQMEventMsgBuilder.h.
References buf_, and eventAddr_.
Referenced by setEventLength(), StreamDQMOutputFile::write(), and StreamDQMOutputFile::writeDQMEventHeader().
void DQMEventMsgBuilder::setCompressionFlag | ( | uint32 | value | ) |
Sets the value of the compression flag in the header.
Definition at line 174 of file DQMEventMsgBuilder.cc.
References buf_, DQMEventHeader::compressionFlag_, and convert().
Referenced by DQMEventMsgBuilder().
void DQMEventMsgBuilder::setEventLength | ( | uint32 | len | ) |
Sets the length of the event (payload). This method verifies that the buffer in which we are building the message is large enough and updates the size of the message taking into account the new event length.
Definition at line 157 of file DQMEventMsgBuilder.cc.
References buf_, bufSize_, convert(), Header::DQM_EVENT, eventAddr_, edm::hlt::Exception, DQMEventHeader::header_, and headerSize().
Referenced by DQMEventMsgBuilder().
void DQMEventMsgBuilder::setFUGuid | ( | uint32 | value | ) |
Sets the value of the filter unit GUID in the header.
Definition at line 192 of file DQMEventMsgBuilder.cc.
References buf_, convert(), and DQMEventHeader::fuGuid_.
Referenced by DQMEventMsgBuilder().
void DQMEventMsgBuilder::setFUProcessId | ( | uint32 | value | ) |
Sets the value of the filter unit process ID in the header.
Definition at line 183 of file DQMEventMsgBuilder.cc.
References buf_, convert(), and DQMEventHeader::fuProcessId_.
Referenced by DQMEventMsgBuilder().
void DQMEventMsgBuilder::setReserved | ( | uint32 | value | ) |
Sets the value of the reserved word in the header.
Definition at line 201 of file DQMEventMsgBuilder.cc.
References buf_, convert(), and DQMEventHeader::reserved_.
Referenced by DQMEventMsgBuilder().
uint32 DQMEventMsgBuilder::size | ( | void | ) | const |
Returns the size of the message.
Definition at line 210 of file DQMEventMsgBuilder.cc.
References buf_, HeaderView::size(), and v.
Referenced by StreamDQMOutputFile::write(), and FUShmDQMOutputService::writeShmDQMData().
|
inline |
Definition at line 61 of file DQMEventMsgBuilder.h.
References buf_.
Referenced by StreamDQMOutputFile::writeDQMEventHeader(), and FUShmDQMOutputService::writeShmDQMData().
|
private |
Definition at line 72 of file DQMEventMsgBuilder.h.
Referenced by DQMEventMsgBuilder(), headerSize(), setCompressionFlag(), setEventLength(), setFUGuid(), setFUProcessId(), setReserved(), size(), and startAddress().
|
private |
Definition at line 73 of file DQMEventMsgBuilder.h.
Referenced by bufferSize(), DQMEventMsgBuilder(), and setEventLength().
|
private |
Definition at line 74 of file DQMEventMsgBuilder.h.
Referenced by DQMEventMsgBuilder(), eventAddress(), headerSize(), and setEventLength().