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++)
65 if (valid)
dcch0|=(1<<(spigot_id+14));
67 unsigned int lenSoFar=0;
69 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
HcalDCCHeader)/
sizeof(
unsigned short)+lenSoFar*2;
73 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
HcalDCCHeader)/
sizeof(uint32_t)+lenSoFar;
76 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.
unsigned int getErrorsWord() const
Get the errors word.
void adoptData(const unsigned short *data, int length)