18 totalSize += (
slotInfo[
i] & 0xFFF) *
sizeof(uint16_t);
23 const uint16_t*
base = ((
const uint16_t*)
this) +
sizeof(
HcalDTCHeader) /
sizeof(uint16_t);
25 for (
i = 1;
i <= nslot;
i++) {
29 if ((offset + len +
sizeof(
HcalDTCHeader) /
sizeof(uint16_t)) < (validSize /
sizeof(uint16_t))) {
54 if (slot_id == 0 || slot_id > (
unsigned int)
SLOT_COUNT)
63 unsigned int lenSoFar = 0;
64 for (
unsigned int i = 1;
i < slot_id;
i++)
66 unsigned short* startingPoint = ((
unsigned short*)
this) +
sizeof(
HcalDTCHeader) /
sizeof(
unsigned short) + lenSoFar;
70 uint32_t* trailer = ((uint32_t*)
this) +
sizeof(
HcalDTCHeader) /
sizeof(uint32_t) + lenSoFar / 2;
73 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]