25 const unsigned short*
base=((
unsigned short*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short);
27 for (
i=0;
i<=nspigot;
i++) {
31 if ((offset+len+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short))<(validSize/
sizeof(
unsigned short))) {
44 for (
int i=0;
i<3;
i++)
62 if (valid)
ctdch0|=(1<<(spigot_id+14));
64 unsigned int lenSoFar=0;
66 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short)+lenSoFar*2;
70 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(uint32_t)+lenSoFar;
73 trailer[0]=0xA0000000u|len64;
77 unsigned int spigot_id = 2;
83 if (valid)
ctdch0|=(1<<(spigot_id+14));
85 unsigned int lenSoFar=0;
87 unsigned short* startingPoint=((
unsigned short*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(
unsigned short)+lenSoFar*2;
91 uint32_t* trailer=((uint32_t*)
this)+
sizeof(
CastorCTDCHeader)/
sizeof(uint32_t)+lenSoFar;
94 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)
unsigned int offset(bool)
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.