22 edm::LogWarning(
"HCAL-Unpacker") <<
"Using unsafe getSpigotData without length controls. Not recommended! Replace with new getSpigotData call";
28 const unsigned short*
base=((
unsigned short*)
this)+
sizeof(
HcalDCCHeader)/
sizeof(
unsigned short);
30 for (
i=0;
i<=nspigot;
i++) {
34 if ((offset+len+
sizeof(
HcalDCCHeader)/
sizeof(
unsigned short))<(validSize/
sizeof(
unsigned short))) {
47 for (
int i=0;
i<18;
i++)
63 if (valid)
dcch0|=(1<<(spigot_id+14));
65 unsigned int lenSoFar=0;
67 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
HcalDCCHeader)/
sizeof(
unsigned short)+lenSoFar*2;
71 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
HcalDCCHeader)/
sizeof(uint32_t)+lenSoFar;
74 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.
unsigned int getErrorsWord() const
Get the errors word.
void adoptData(const unsigned short *data, int length)
char data[epos_bytes_allocation]