16 headerFieldsCached_(
false)
56 return (
unsigned char*) smMsg->
dataPtr();
68 std::stringstream
msg;
69 msg <<
"An adler32 checksum can not be determined from a ";
70 msg <<
"faulty or incomplete INIT message.";
71 XCEPT_RAISE(stor::exception::IncompleteInitMessage, msg.str());
82 std::stringstream
msg;
83 msg <<
"An output module label can not be determined from a ";
84 msg <<
"faulty or incomplete INIT message.";
85 XCEPT_RAISE(stor::exception::IncompleteInitMessage, msg.str());
96 std::stringstream
msg;
97 msg <<
"An output module ID can not be determined from a ";
98 msg <<
"faulty or incomplete INIT message.";
99 XCEPT_RAISE(stor::exception::IncompleteInitMessage, msg.str());
110 std::stringstream
msg;
111 msg <<
"The HLT trigger names can not be determined from a ";
112 msg <<
"faulty or incomplete INIT message.";
113 XCEPT_RAISE(stor::exception::IncompleteInitMessage, msg.str());
124 std::stringstream
msg;
125 msg <<
"The HLT trigger selections can not be determined from a ";
126 msg <<
"faulty or incomplete INIT message.";
127 XCEPT_RAISE(stor::exception::IncompleteInitMessage, msg.str());
138 std::stringstream
msg;
139 msg <<
"The L1 trigger names can not be determined from a ";
140 msg <<
"faulty or incomplete INIT message.";
141 XCEPT_RAISE(stor::exception::IncompleteInitMessage, msg.str());
173 unsigned long firstFragSize =
dataSize(0);
174 bool useFirstFrag =
false;
185 else if (firstFragSize > (
sizeof(
InitHeader) + 16384))
194 boost::shared_ptr<InitMsgView> msgView;
207 adler32_ = msgView->adler32_chksum();
216 #ifdef STOR_DEBUG_WRONG_ADLER
217 double r =
rand()/
static_cast<double>(RAND_MAX);
220 std::cout <<
"Simulating corrupt Adler calculation" << std::endl;
225 std::cout <<
"Simulating corrupt Adler entry" << std::endl;
228 #endif // STOR_DEBUG_WRONG_ADLER
std::vector< unsigned char > headerCopy_
unsigned char * dataLocation(int fragmentIndex) const
unsigned char * do_headerLocation() const
toolbox::mem::Reference * ref_
void do_hltTriggerNames(Strings &nameList) const
std::string outputModuleLabel_
unsigned char * headerLocation_
unsigned long do_headerSize() const
void do_hltTriggerSelections(Strings &nameList) const
void addFirstFragment(toolbox::mem::Reference *)
void do_l1TriggerNames(Strings &nameList) const
uint32_t do_outputModuleId() const
InitMsgData(toolbox::mem::Reference *pRef)
unsigned int copyFragmentsIntoBuffer(std::vector< unsigned char > &buff) const
unsigned int fuProcessId_
_I2O_SM_PREAMBLE_MESSAGE_FRAME I2O_SM_PREAMBLE_MESSAGE_FRAME
uint32 headerSize() const
unsigned int fragmentCount_
unsigned long dataSize(int fragmentIndex) const
std::string do_outputModuleLabel() const
unsigned long headerSize_
unsigned int messageCode_
size_t do_i2oFrameSize() const
unsigned char * do_fragmentLocation(unsigned char *dataLoc) const
void cacheHeaderFields() const
uint32_t do_adler32Checksum() const
unsigned int hltInstance_
Strings hltTriggerSelections_