11 allLCTs(match_trig_window_size) {
14 <<
"+++ Upgrade CSCUpgradeMotherboard constructed while isSLHC_ is not set! +++\n";
44 <<
"+++ Upgrade CSCUpgradeMotherboard constructed while isSLHC_ is not set! +++\n";
55 <<
"+++ run() called for non-existing ALCT/CLCT processor! +++ \n";
70 unsigned alctBits =
alctProc->getHighMultiplictyBits();
73 int used_clct_mask[20];
74 for (
int c = 0;
c < 20; ++
c)
75 used_clct_mask[
c] = 0;
79 if (
alctProc->getBestALCT(bx_alct).isValid()) {
85 <<
"========================================================================" << std::endl;
86 LogTrace(
"CSCUpgradeMotherboard") <<
"ALCT-CLCT matching in ME34/1 chamber: " <<
cscId_ << std::endl;
88 <<
"------------------------------------------------------------------------" << std::endl;
89 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Best ALCT Details: ";
90 alctProc->getBestALCT(bx_alct).print();
91 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Second ALCT Details: ";
92 alctProc->getSecondALCT(bx_alct).print();
95 <<
"------------------------------------------------------------------------" << std::endl;
96 LogTrace(
"CSCUpgradeMotherboard") <<
"Attempt ALCT-CLCT matching in ME34/13 in bx range: [" << bx_clct_start
97 <<
"," << bx_clct_stop <<
"]" << std::endl;
101 for (
int bx_clct = bx_clct_start; bx_clct <= bx_clct_stop; bx_clct++) {
106 if (
clctProc->getBestCLCT(bx_clct).isValid()) {
108 LogTrace(
"CSCUpgradeMotherboard") <<
"++Valid ME21 CLCT: " <<
clctProc->getBestCLCT(bx_clct) << std::endl;
110 int mbx = bx_clct - bx_clct_start;
119 <<
"Successful ALCT-CLCT match in ME21: bx_alct = " << bx_alct <<
"; match window: [" << bx_clct_start
120 <<
"; " << bx_clct_stop <<
"]; bx_clct = " << bx_clct << std::endl;
121 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Best CLCT Details: ";
122 clctProc->getBestCLCT(bx_clct).print();
123 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Second CLCT Details: ";
124 clctProc->getSecondCLCT(bx_clct).print();
125 if (
allLCTs(bx_alct, mbx, 0).isValid()) {
126 used_clct_mask[bx_clct] += 1;
179 LogDebug(
"CSCUpgradeMotherboard") <<
"bx " <<
bx <<
" nnLCT:" <<
n <<
" " <<
n << std::endl;
187 LogTrace(
"CSCUpgradeMotherboard") <<
"========================================================================"
189 LogTrace(
"CSCUpgradeMotherboard") <<
"Counting the final LCTs" << std::endl;
190 LogTrace(
"CSCUpgradeMotherboard") <<
"========================================================================"
197 LogTrace(
"CSCUpgradeMotherboard") <<
"LCT " <<
n <<
" " <<
p << std::endl;
212 const bool anodeBestValid = bestALCT.
isValid();
213 const bool anodeSecondValid = secondALCT.
isValid();
214 const bool cathodeBestValid = bestCLCT.
isValid();
215 const bool cathodeSecondValid = secondCLCT.
isValid();
217 if (anodeBestValid and !anodeSecondValid)
218 secondALCT = bestALCT;
219 if (!anodeBestValid and anodeSecondValid)
220 bestALCT = secondALCT;
221 if (cathodeBestValid and !cathodeSecondValid)
222 secondCLCT = bestCLCT;
223 if (!cathodeBestValid and cathodeSecondValid)
224 bestCLCT = secondCLCT;
233 if (((secondALCT != bestALCT)
or (secondCLCT != bestCLCT)) and
242 std::vector<CSCCorrelatedLCTDigi>
result;
258 }
else if (keystrip <= CSCConstants::MAX_HALF_STRIP_ME1B and keystrip >= 0)
269 edm::LogError(
"CSCUpgradeMotherboard|Error") <<
" ++ getCSCPart() failed to find the CSC chamber for in case ";
289 std::sort(lcts.begin(), lcts.end(), *
sorter);
291 lcts.erase(lcts.begin() +
max_lcts, lcts.end());