23 : header2006(chamberType), header2007(chamberType) {
33 <<
"Cannot construct ALCT header: ALCT firmware version is bad/not defined!" <<
firmwareVersion;
42 constexpr
unsigned short int collisionMaskWordcount[7] = {8, 8, 12, 16, 16, 24, 28};
43 constexpr
unsigned short int hotChannelMaskWordcount[7] = {18, 18, 24, 36, 36, 48, 60};
46 if (
buf[0] == 0xDB0A) {
48 }
else if ((
buf[0] & 0xF800) == 0x6000) {
51 edm::LogError(
"CSCALCTHeader|CSCRawToDigi") <<
"failed to determine ALCT firmware version!!";
108 edm::LogError(
"CSCALCTHeader|CSCRawToDigi") <<
"couldn't construct: ALCT firmware version is bad/not defined!";
135 <<
"setEventInformation: ALCT firmware version is bad/not defined!" <<
firmwareVersion;
153 std::vector<CSCALCTDigi>
result;
166 for (
unsigned int i = 0;
i <
theALCTs.size(); ++
i) {
180 <<
"Empty Digis: ALCT firmware version is bad/not defined!" <<
firmwareVersion;
183 for (
unsigned i = 0;
i <
result.size(); ++
i) {
196 for (std::vector<CSCALCTDigi>::const_iterator digi = digis.begin(); digi != digis.end(); ++digi) {
197 int bx = digi->getBX();
208 else if (digi->getQuality() >
q1) {
222 boost::dynamic_bitset<>
result;
224 boost::dynamic_bitset<>
header =
226 boost::dynamic_bitset<> alcts =
237 boost::dynamic_bitset<> alct =
256 std::vector<CSCALCTDigi> oldAlcts;
257 oldAlcts.push_back(alct0);
258 oldAlcts.push_back(alct1);
261 alctHeader.
add(oldAlcts);
263 std::vector<CSCALCTDigi> alcts = alctHeader.ALCTDigis();
265 std::vector<CSCALCTDigi> validALCTs;
266 for (std::vector<CSCALCTDigi>::const_iterator alctItr = alcts.begin(); alctItr != alcts.end(); ++alctItr) {
267 if (alctItr->isValid()) {
268 validALCTs.push_back(*alctItr);
271 assert(validALCTs[0] == alct0);
272 assert(validALCTs[1] == alct1);
278 os <<
"ALCT HEADER CSCID " <<
header.CSCID() <<
" L1ACC " <<
header.L1Acc() << std::endl;
279 os <<
" time samples " <<
header.NTBins() << std::endl;