3 #include <unordered_map>
23 if (value < min_value or value >
max_value) {
103 clct.
getPattern(), min_pattern_run2, max_pattern_run2,
"CSCCLCTDigi with invalid Run-2 pattern ID: ",
errors);
107 clct.
getRun3Pattern(), min_pattern_run3, max_pattern_run3,
"CSCCLCTDigi with invalid Run-3 pattern ID: ",
errors);
161 checkRange(lct.
getStrip(8), 0, max_eighthstrip - 1,
"CSCCorrelatedLCTDigi with invalid key eighth-strip: ",
errors);
179 "CSCCorrelatedLCTDigi with invalid CSCID: ",
186 "CSCCorrelatedLCTDigi with invalid Run-2 pattern ID: ",
192 "CSCCorrelatedLCTDigi with invalid Run-3 pattern ID: ",
198 edm::LogError(
"LCTQualityControl") <<
"CSCCorrelatedLCTDigi with invalid type (SIM): " << lct.
getType()
207 edm::LogError(
"LCTQualityControl") <<
"CSCCorrelatedLCTDigi with invalid type (SIM) in this station: "
216 edm::LogError(
"LCTQualityControl") <<
"CSCCorrelatedLCTDigi with invalid type (SIM) with GEM-CSC trigger not on: "
226 edm::LogError(
"LCTQualityControl") <<
"CSCCorrelatedLCTDigi with valid GEM-CSC type (SIM) has no valid GEM hits: "
237 if (ME11ILT
or ME21ILT) {
257 if (!(case1
or case2
or case3
or case4
or case5
or case6
or case7)) {
259 <<
"CSCCorrelatedLCTDigi with valid GEM-CSC type (SIM) has no matching Run-3 quality: " << lct.
getType()
273 if (!(case1
or case2
or case3)) {
275 <<
"CSCCorrelatedLCTDigi with invalid CSC type (SIM) has no matching Run-3 quality: " << lct.
getType()
299 int slopeList[
CSCConstants::NUM_CLCT_PATTERNS] = {0, 0, -8, 8, -6, 6, -4, 4, -2, 2, 0};
304 int min_slope, max_slope;
318 return std::make_pair(min_slope, max_slope);
336 unsigned max_wiregroup = 0;
352 return max_wiregroup;
356 unsigned max_half_strip = 0;
391 return max_half_strip;
404 unsigned min_cfeb = 0;
405 unsigned max_cfeb = 0;
441 return std::make_pair(min_cfeb, max_cfeb - 1);
449 unsigned min_pattern, max_pattern;
460 return std::make_pair(min_pattern, max_pattern);
466 unsigned min_quality = 1;
471 return std::make_pair(min_quality, 3);
476 unsigned min_quality = 4;
481 return std::make_pair(min_quality, 6);
508 return std::make_pair(min_quality, max_quality);