20 totalSize+=(
slotInfo[
i]&0xFFF)*
sizeof(uint16_t);
25 const unsigned short*
base=((
unsigned short*)
this)+
sizeof(
HcalDTCHeader)/
sizeof(
unsigned short);
27 for (
i=1;
i<=nslot;
i++) {
31 if ((offset+len+
sizeof(
HcalDTCHeader)/
sizeof(
unsigned short))<(validSize/
sizeof(
unsigned short))) {
54 if (slot_id==0 || slot_id>(
unsigned int)
SLOT_COUNT)
return;
57 if (valid)
slotInfo[slot_id-1]|=0x2000;
61 unsigned int lenSoFar=0;
63 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
HcalDTCHeader)/
sizeof(
unsigned short)+lenSoFar;
67 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
HcalDTCHeader)/
sizeof(uint32_t)+lenSoFar/2;
70 trailer[0]=0xA0000000u|len64;
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const int getRawLength() const
Get the length of the raw data.
unsigned int offset(bool)
const unsigned short * getRawData() const
Get a pointer to the raw data.
void adoptData(const unsigned short *data, int length)
char data[epos_bytes_allocation]