23 const unsigned short*
base=((
unsigned short*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short);
25 for (
i=0;
i<=nspigot;
i++) {
29 if ((offset+len+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short))<(validSize/
sizeof(
unsigned short))) {
42 for (
int i=0;
i<3;
i++)
60 if (valid)
ctdch0|=(1<<(spigot_id+14));
62 unsigned int lenSoFar=0;
64 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short)+lenSoFar*2;
68 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(uint32_t)+lenSoFar;
71 trailer[0]=0xA0000000u|len64;
75 unsigned int spigot_id = 2;
81 if (valid)
ctdch0|=(1<<(spigot_id+14));
83 unsigned int lenSoFar=0;
85 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short)+lenSoFar*2;
89 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(uint32_t)+lenSoFar;
92 trailer[0]=0xA0000000u|len64;
void adoptData(const unsigned short *data, int length)
const int getRawLength() const
Get the length of the raw data.
unsigned int getErrorsWord() const
Get the errors word.
unsigned int getErrorsWord() const
Get the errors word.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const unsigned short * getRawData() const
Get a pointer to the raw data.
const int getRawLength() const
Get the length of the raw data.
const unsigned short * getRawData() const
Get a pointer to the raw data.
char data[epos_bytes_allocation]