18 totalSize+=(
slotInfo[
i]&0xFFF)*
sizeof(uint16_t);
23 const unsigned short*
base=((
unsigned short*)
this)+
sizeof(
HcalDTCHeader)/
sizeof(
unsigned short);
25 for (
i=1;
i<=nslot;
i++) {
29 if ((offset+len+
sizeof(
HcalDTCHeader)/
sizeof(
unsigned short))<(validSize/
sizeof(
unsigned short))) {
52 if (slot_id==0 || slot_id>(
unsigned int)
SLOT_COUNT)
return;
55 if (valid)
slotInfo[slot_id-1]|=0x2000;
59 unsigned int lenSoFar=0;
61 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
HcalDTCHeader)/
sizeof(
unsigned short)+lenSoFar;
65 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
HcalDTCHeader)/
sizeof(uint32_t)+lenSoFar/2;
68 trailer[0]=0xA0000000u|len64;
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const int getRawLength() const
Get the length of the raw data.
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]