16 headerFieldsCached_(
false)
31 std::stringstream
msg;
32 msg <<
"A top folder name can not be determined from a ";
33 msg <<
"faulty or incomplete DQM event message.";
34 XCEPT_RAISE( stor::exception::IncompleteDQMEventMessage, msg.str() );
45 std::stringstream
msg;
46 msg <<
"An adler32 checksum can not be determined from a ";
47 msg <<
"faulty or incomplete DQM event message.";
48 XCEPT_RAISE( stor::exception::IncompleteDQMEventMessage, msg.str() );
59 std::stringstream
msg;
60 msg <<
"The DQM key can not be determined from a ";
61 msg <<
"faulty or incomplete DQM event message.";
62 XCEPT_RAISE( stor::exception::IncompleteDQMEventMessage, msg.str() );
74 std::stringstream
msg;
75 msg <<
"The run number can not be determined from a ";
76 msg <<
"faulty or incomplete DQM event message.";
77 XCEPT_RAISE( stor::exception::IncompleteDQMEventMessage, msg.str() );
89 std::stringstream
msg;
90 msg <<
"The lumi section can not be determined from a ";
91 msg <<
"faulty or incomplete DQM event message.";
92 XCEPT_RAISE( stor::exception::IncompleteDQMEventMessage, msg.str() );
103 std::ostringstream errorMsg;
106 " received from " <<
hltURL() <<
108 " does not match the run number " << runNumber <<
109 " used to configure the StorageManager.";
110 XCEPT_RAISE(stor::exception::RunNumberMismatch, errorMsg.str());
136 inline unsigned char*
143 return (
unsigned char*) smMsg->
dataPtr();
178 boost::shared_ptr<DQMEventMsgView> msgView;
195 adler32_ = msgView->adler32_chksum();
203 #ifdef STOR_DEBUG_WRONG_ADLER
204 double r =
rand()/
static_cast<double>(RAND_MAX);
207 std::cout <<
"Simulating corrupt Adler calculation" << std::endl;
212 std::cout <<
"Simulating corrupt Adler entry" << std::endl;
215 #endif // STOR_DEBUG_WRONG_ADLER
unsigned char * dataLocation(int fragmentIndex) const
unsigned char * do_headerLocation() const
_I2O_SM_DQM_MESSAGE_FRAME I2O_SM_DQM_MESSAGE_FRAME
uint32_t do_adler32Checksum() const
toolbox::mem::Reference * ref_
unsigned int fuProcessId() const
unsigned char * headerLocation_
unsigned char * do_fragmentLocation(unsigned char *dataLoc) const
std::string hltURL() const
std::string topFolderName_
void addFirstFragment(toolbox::mem::Reference *)
uint32_t do_lumiSection() const
unsigned int copyFragmentsIntoBuffer(std::vector< unsigned char > &buff) const
std::string topLevelFolderName
std::string do_topFolderName() const
std::vector< unsigned char > headerCopy_
uint32_t do_runNumber() const
void cacheHeaderFields() const
unsigned int fuProcessId_
unsigned long do_headerSize() const
unsigned int fragmentCount_
unsigned long headerSize_
void do_assertRunNumber(uint32_t runNumber)
unsigned int messageCode_
size_t do_i2oFrameSize() const
unsigned int hltInstance_
DQMEventMsgData(toolbox::mem::Reference *pRef)