9 : nAFEBs_(
header.nLCTChipRead()), nTimeBins_(
header.NTBins()) {
17 : nAFEBs_(
header.nLCTChipRead()), nTimeBins_(
header.NTBins()) {
28 static const unsigned short int layerParts[7] = {3, 3, 4, 6, 6, 8, 10};
29 static const unsigned short int wireGroups[7] = {32, 32, 48, 64, 64, 96, 112};
32 layerParts[
header.alctHeader2007().boardType];
38 std::vector<CSCWireDigi> digis;
39 uint32_t tbinbits = 0;
40 uint32_t wireGroup = 0;
42 for (
int layerPart = 0; layerPart <
layerParts_; ++layerPart) {
47 for (
int tbin = 0; tbin <
nTimeBins_; ++tbin) {
49 if (
frame.data() != 0) {
51 tbinbits = tbinbits + (1 << tbin);
56 wireGroup = (layerPart * 12 +
j) + 1;
59 wireGroup = wireGroup | (wireGroupBX << 16);
61 LogTrace(
"CSCAnodeData|CSCRawToDigi") <<
"Layer " <<
layer <<
" " << digi;
62 digis.push_back(digi);
87 unsigned layerPart = (wireGroup - 1) / 12;
88 unsigned wireInPart = (wireGroup - 1) % 12;
91 for (std::vector<int>::const_iterator timeBinOn = timeBinsOn.begin(); timeBinOn != timeBinsOn.end(); ++timeBinOn) {
96 edm::LogError(
"CSCAnodeData|CSCRawToDigi") <<
"Bad Wire Number for this digi.";
100 if ((*timeBinOn) >= 0 && (*timeBinOn) <
nTimeBins_) {
102 frame.addHit(wireInPart);
106 LogTrace(
"CSCAnodeData|CSCRawToDigi")
107 <<
"warning: not saving anode data in bx " << *timeBinOn <<
": out of range ";
118 anodeData.
add(wireDigi, 1);
119 anodeData.
add(wireDigi, 6);
121 std::vector<CSCWireDigi> wires1 = anodeData.
wireDigis(1);
122 std::vector<CSCWireDigi> wires6 = anodeData.
wireDigis(6);
124 assert(wires1.size() == 1);
125 assert(wires6.size() == 1);
126 assert(wires1[0].getWireGroup() == wireGroup);
127 assert(wires6[0].getWireGroup() == wireGroup);
128 assert(wires1[0].getTimeBin() == timeBin);
129 assert(wires6[0].getTimeBin() == timeBin);