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);
492 if (
run3_ and !GEMCSC) {
508 return std::make_pair(min_quality, max_quality);
bool isValid() const
check ALCT validity (1 - valid ALCT)
uint16_t getTrknmb() const
return track number (1,2)
unsigned nplanes_clct_hit_pattern
T getParameter(std::string const &) const
uint16_t getBX() const
return BX - five low bits of BXN counter tagged by the ALCT
std::pair< unsigned, unsigned > get_csc_lct_min_max_quality(unsigned station, unsigned ring) const
std::pair< unsigned, unsigned > get_csc_min_max_pattern() const
void checkValid(const CSCALCTDigi &alct, unsigned max_stubs=CSCConstants::MAX_ALCTS_PER_PROCESSOR) const
std::pair< unsigned, unsigned > get_csc_min_max_pattern_run3() const
static int maxTriggerCscId()
uint16_t getTrknmb() const
return track number (1,2)
uint16_t getQuality() const
return quality of a pattern (number of layers hit!)
unsigned get_csc_max_halfstrip(unsigned station, unsigned ring) const
uint16_t getKeyStrip(const uint16_t n=2) const
LCTQualityControl(unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, CSCBaseboard::Parameters &conf)
std::pair< unsigned, unsigned > get_csc_alct_min_max_quality() const
Log< level::Error, false > LogError
unsigned get_csc_max_eighthstrip(unsigned station, unsigned ring) const
const std::map< ValueQuantityType, double > min_value
int16_t getCompCode() const
uint16_t getQuality() const
return quality of a pattern
edm::ParameterSet const & clctParams() const
std::pair< unsigned, unsigned > get_csc_min_max_cfeb() const
uint16_t getStrip() const
return halfstrip that goes from 0 to 31 in a (D)CFEB
std::pair< unsigned, unsigned > get_csc_lct_min_max_pattern() const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
unsigned get_csc_max_wiregroup(unsigned station, unsigned ring) const
uint16_t getKeyWG() const
return key wire group
uint16_t getCollisionB() const
void checkRange(int parameter, int min_value, int max_value, const std::string &comment, unsigned &errors) const
unsigned get_csc_max_quartstrip(unsigned station, unsigned ring) const
void reportErrors(const T &lct, const unsigned errors) const
bool isValid() const
check CLCT validity (1 - valid CLCT)
int getSlopePhase1(unsigned pattern) const
void checkMultiplicityBX(const std::vector< CSCALCTDigi > &alcts) const
uint16_t getCFEB() const
return Key CFEB ID
const unsigned theStation
std::pair< int, int > get_csc_clct_min_max_slope() const
uint16_t getBX() const
return BX
uint16_t getPattern() const
return pattern
std::pair< unsigned, unsigned > get_csc_clct_min_max_quality() const
const std::map< ValueQuantityType, double > max_value
uint16_t getSlope() const
return the slope
uint16_t getRun3Pattern() const
return pattern
void checkValidReadout(const CSCALCTDigi &alct) const
static int minTriggerCscId()