13 allLCTs(match_trig_window_size) {
15 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runPhase2_ is not set! +++\n";
19 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME11Up_ is not set! +++\n";
21 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME21Up_ is not set! +++\n";
23 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME31Up_ is not set! +++\n";
25 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME41Up_ is not set! +++\n";
52 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runPhase2_ is not set! +++\n";
56 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME11Up_ is not set! +++\n";
58 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME21Up_ is not set! +++\n";
60 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME31Up_ is not set! +++\n";
62 edm::LogError(
"CSCUpgradeMotherboard|SetupError") <<
"+++ TMB constructed while runME41Up_ is not set! +++\n";
73 <<
"+++ run() called for non-existing ALCT/CLCT processor! +++ \n";
88 unsigned alctBits =
alctProc->getHighMultiplictyBits();
91 int used_clct_mask[20];
92 for (
int c = 0;
c < 20; ++
c)
93 used_clct_mask[
c] = 0;
97 if (
alctProc->getBestALCT(bx_alct).isValid()) {
103 <<
"========================================================================" << std::endl;
104 LogTrace(
"CSCUpgradeMotherboard") <<
"ALCT-CLCT matching in ME34/1 chamber: " <<
cscId_ << std::endl;
106 <<
"------------------------------------------------------------------------" << std::endl;
107 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Best ALCT Details: ";
108 alctProc->getBestALCT(bx_alct).print();
109 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Second ALCT Details: ";
110 alctProc->getSecondALCT(bx_alct).print();
113 <<
"------------------------------------------------------------------------" << std::endl;
114 LogTrace(
"CSCUpgradeMotherboard") <<
"Attempt ALCT-CLCT matching in ME34/13 in bx range: [" << bx_clct_start
115 <<
"," << bx_clct_stop <<
"]" << std::endl;
119 for (
int bx_clct = bx_clct_start; bx_clct <= bx_clct_stop; bx_clct++) {
124 if (
clctProc->getBestCLCT(bx_clct).isValid()) {
126 LogTrace(
"CSCUpgradeMotherboard") <<
"++Valid ME21 CLCT: " <<
clctProc->getBestCLCT(bx_clct) << std::endl;
128 int mbx = bx_clct - bx_clct_start;
137 <<
"Successful ALCT-CLCT match in ME21: bx_alct = " << bx_alct <<
"; match window: [" << bx_clct_start
138 <<
"; " << bx_clct_stop <<
"]; bx_clct = " << bx_clct << std::endl;
139 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Best CLCT Details: ";
140 clctProc->getBestCLCT(bx_clct).print();
141 LogTrace(
"CSCUpgradeMotherboard") <<
"+++ Second CLCT Details: ";
142 clctProc->getSecondCLCT(bx_clct).print();
144 used_clct_mask[bx_clct] += 1;
197 LogDebug(
"CSCUpgradeMotherboard") <<
"bx " <<
bx <<
" nnLCT:" <<
n <<
" " <<
n << std::endl;
205 LogTrace(
"CSCUpgradeMotherboard") <<
"========================================================================"
207 LogTrace(
"CSCUpgradeMotherboard") <<
"Counting the final LCTs" << std::endl;
208 LogTrace(
"CSCUpgradeMotherboard") <<
"========================================================================"
215 LogTrace(
"CSCUpgradeMotherboard") <<
"LCT " <<
n <<
" " <<
p << std::endl;
230 const bool anodeBestValid = bestALCT.
isValid();
231 const bool anodeSecondValid = secondALCT.
isValid();
232 const bool cathodeBestValid = bestCLCT.
isValid();
233 const bool cathodeSecondValid = secondCLCT.
isValid();
235 if (anodeBestValid and !anodeSecondValid)
236 secondALCT = bestALCT;
237 if (!anodeBestValid and anodeSecondValid)
238 bestALCT = secondALCT;
239 if (cathodeBestValid and !cathodeSecondValid)
240 secondCLCT = bestCLCT;
241 if (!cathodeBestValid and cathodeSecondValid)
242 bestCLCT = secondCLCT;
251 if (((secondALCT != bestALCT)
or (secondCLCT != bestCLCT)) and
260 std::vector<CSCCorrelatedLCTDigi>
result;
267 for (
const auto& lct :
result) {
283 }
else if (keystrip <= CSCConstants::MAX_HALF_STRIP_ME1B and keystrip >= 0)
294 edm::LogError(
"CSCUpgradeMotherboard|Error") <<
" ++ getCSCPart() failed to find the CSC chamber for in case ";
311 lcts.erase(lcts.begin() +
max_lcts, lcts.end());