32 if ((firmwareRevision >= 0x50c3) || (firmwareRevision < 0x42D5)) {
35 if ((firmwareRevision >= 0x6000) || (firmwareRevision < 0x42D5)) {
44 edm::LogError(
"CSCTMBHeader|CSCRawToDigi") <<
"failed to determine TMB firmware version!!";
54 if (
buf[0] == 0xDB0C) {
73 }
else if (
buf[0] == 0x6B0C) {
77 edm::LogError(
"CSCTMBHeader|CSCRawToDigi") <<
"failed to determine TMB firmware version!!";
116 if (!digis.empty()) {
119 if (digis.size() > 1)
127 if (digis.size() > 1)
147 throw cms::Exception(
"Could not get 2007 rev0x50c3 TMB header format");
169 constexpr
bool debug =
false;
173 for (
int iendcap = 1; iendcap <= 2; ++iendcap) {
186 CSCCorrelatedLCTDigi lct0(1, 1, 2, 10, 98, 5, 0, 1, 0, 0, 0, 0);
187 CSCCorrelatedLCTDigi lct1(2, 1, 2, 20, 15, 9, 1, 0, 0, 0, 0, 0);
194 std::vector<CSCCLCTDigi> clcts = tmbHeader.
CLCTDigis(detId.
rawId());
199 std::cout <<
"Match for: " << clct0 <<
"\n";
207 std::cout <<
"Match for: " << lct0 <<
"\n";
212 unsigned short int *
data = tmbHeader.
data();