45 if(firmVersion == 2006)
47 trailer2006.setSize(size);
48 firmwareVersion = 2006;
50 else if (firmVersion == 2007)
52 trailer2007.setSize(size);
53 firmwareVersion = 2007;
56 edm::LogError(
"CSCALCTTrailer|CSCRawToDigi") <<
"failed to construct: undetermined ALCT firmware version!!" << firmVersion;
63 if ((buf[0]==0xDE0D)&&((buf[1]&0xF000)==0xD000)) {
66 else if ( (buf[2]&0xFFF)==0xE0D ) {
70 edm::LogError(
"CSCALCTTrailer|CSCRawToDigi") <<
"failed to construct: undetermined ALCT firmware version!!" << firmwareVersion;
75 switch (firmwareVersion) {
77 switch (firmwareVersion.load()) {
80 memcpy(&trailer2006, buf, trailer2006.sizeInWords()*2);
83 memcpy(&trailer2007, buf, trailer2007.sizeInWords()*2);
87 <<
"couldn't construct: ALCT firmware version is bad/not defined!";
static std::atomic< bool > debug
static std::atomic< unsigned short int > firmwareVersion
CSCALCTTrailer(int size, int firmVersion)
needed for packing
short unsigned int sizeInWords() const