22 theFirmwareVersion(firmwareVersion)
24 if(firmwareVersion == 2013)
28 else if(firmwareVersion == 2006)
32 else if(firmwareVersion == 2007)
40 if((firmwareRevision >= 0x50c3) || (firmwareRevision < 0x42D5))
44 if ((firmwareRevision >= 0x6000) || (firmwareRevision < 0x42D5))
60 edm::LogError(
"CSCTMBHeader|CSCRawToDigi") <<
"failed to determine TMB firmware version!!";
97 else if (buf[0]==0x6B0C)
104 edm::LogError(
"CSCTMBHeader|CSCRawToDigi") <<
"failed to determine TMB firmware version!!";
145 if(digis.size() > 0) {
149 if(digis.size() > 1)
addCLCT1(digis[1]);
175 throw cms::Exception(
"Could not get 2007 rev0x50c3 TMB header format");
204 static bool debug =
false;
209 for(
int iendcap = 1; iendcap <= 2; ++iendcap)
223 CSCCorrelatedLCTDigi lct0(1, 1, 2, 10, 98, 5, 0, 1, 0, 0, 0, 0);
224 CSCCorrelatedLCTDigi lct1(2, 1, 2, 20, 15, 9, 1, 0, 0, 0, 0, 0);
231 std::vector<CSCCLCTDigi> clcts = tmbHeader.
CLCTDigis(detId.
rawId());
237 std::cout <<
"Match for: " << clct0 <<
"\n";
246 std::cout <<
"Match for: " << lct0 <<
"\n";
251 unsigned short int *
data = tmbHeader.
data();
std::ostream & operator<<(std::ostream &out, const ALILine &li)
uint32_t rawId() const
get the raw id
bool cscPackerCompare(const T &t1, const T &t2)