#include <LCTQualityControl.h>
Public Member Functions | |
void | checkMultiplicityBX (const std::vector< CSCALCTDigi > &alcts) const |
void | checkMultiplicityBX (const std::vector< CSCCLCTDigi > &clcts) const |
void | checkMultiplicityBX (const std::vector< CSCCorrelatedLCTDigi > &lcts) const |
template<class T > | |
void | checkMultiplicityBX (const std::vector< T > &lcts, unsigned nLCT) const |
void | checkRange (int parameter, int min_value, int max_value, const std::string &comment, unsigned &errors) const |
void | checkValid (const CSCALCTDigi &alct, unsigned max_stubs=CSCConstants::MAX_ALCTS_PER_PROCESSOR) const |
void | checkValid (const CSCCLCTDigi &lct, unsigned max_stubs=CSCConstants::MAX_CLCTS_PER_PROCESSOR) const |
void | checkValid (const CSCCorrelatedLCTDigi &lct) const |
void | checkValid (const CSCCorrelatedLCTDigi &lct, const unsigned station, const unsigned ring) const |
void | checkValidReadout (const CSCALCTDigi &alct) const |
std::pair< unsigned, unsigned > | get_csc_alct_min_max_quality () const |
std::pair< unsigned, unsigned > | get_csc_clct_min_max_quality () const |
std::pair< int, int > | get_csc_clct_min_max_slope () const |
std::pair< unsigned, unsigned > | get_csc_lct_min_max_pattern () const |
std::pair< unsigned, unsigned > | get_csc_lct_min_max_quality (unsigned station, unsigned ring) const |
unsigned | get_csc_max_eighthstrip (unsigned station, unsigned ring) const |
unsigned | get_csc_max_halfstrip (unsigned station, unsigned ring) const |
unsigned | get_csc_max_quartstrip (unsigned station, unsigned ring) const |
unsigned | get_csc_max_wiregroup (unsigned station, unsigned ring) const |
std::pair< unsigned, unsigned > | get_csc_min_max_cfeb () const |
std::pair< unsigned, unsigned > | get_csc_min_max_pattern () const |
std::pair< unsigned, unsigned > | get_csc_min_max_pattern_run3 () const |
int | getSlopePhase1 (unsigned pattern) const |
LCTQualityControl (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, const edm::ParameterSet &conf) | |
template<class T > | |
void | reportErrors (const T &lct, const unsigned errors) const |
~LCTQualityControl () override=default | |
Public Member Functions inherited from CSCBaseboard | |
CSCBaseboard (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, const edm::ParameterSet &conf) | |
CSCBaseboard () | |
std::string | getCSCName () const |
CSCDetId | id () const |
void | setCSCGeometry (const CSCGeometry *g) |
virtual | ~CSCBaseboard ()=default |
Private Attributes | |
unsigned | nplanes_clct_hit_pattern |
Definition at line 22 of file LCTQualityControl.h.
LCTQualityControl::LCTQualityControl | ( | unsigned | endcap, |
unsigned | station, | ||
unsigned | sector, | ||
unsigned | subsector, | ||
unsigned | chamber, | ||
const edm::ParameterSet & | conf | ||
) |
Definition at line 6 of file LCTQualityControl.cc.
References CSCBaseboard::clctParams_, edm::ParameterSet::getParameter(), and nplanes_clct_hit_pattern.
|
overridedefault |
Default destructor.
void LCTQualityControl::checkMultiplicityBX | ( | const std::vector< CSCALCTDigi > & | alcts | ) | const |
Definition at line 284 of file LCTQualityControl.cc.
References CSCConstants::MAX_ALCTS_READOUT.
Referenced by checkMultiplicityBX().
void LCTQualityControl::checkMultiplicityBX | ( | const std::vector< CSCCLCTDigi > & | clcts | ) | const |
Definition at line 288 of file LCTQualityControl.cc.
References checkMultiplicityBX(), and CSCConstants::MAX_CLCTS_READOUT.
void LCTQualityControl::checkMultiplicityBX | ( | const std::vector< CSCCorrelatedLCTDigi > & | lcts | ) | const |
Definition at line 292 of file LCTQualityControl.cc.
References checkMultiplicityBX(), and CSCConstants::MAX_LCTS_PER_CSC.
void LCTQualityControl::checkMultiplicityBX | ( | const std::vector< T > & | lcts, |
unsigned | nLCT | ||
) | const |
Definition at line 100 of file LCTQualityControl.h.
References AlCaHLTBitMon_ParallelJobs::p.
void LCTQualityControl::checkRange | ( | int | parameter, |
int | min_value, | ||
int | max_value, | ||
const std::string & | comment, | ||
unsigned & | errors | ||
) | const |
Definition at line 21 of file LCTQualityControl.cc.
Referenced by checkValid().
void LCTQualityControl::checkValid | ( | const CSCALCTDigi & | alct, |
unsigned | max_stubs = CSCConstants::MAX_ALCTS_PER_PROCESSOR |
||
) | const |
Definition at line 37 of file LCTQualityControl.cc.
References checkRange(), get_csc_alct_min_max_quality(), get_csc_max_wiregroup(), CSCALCTDigi::getBX(), CSCALCTDigi::getCollisionB(), CSCALCTDigi::getKeyWG(), CSCALCTDigi::getQuality(), CSCALCTDigi::getTrknmb(), CSCALCTDigi::isValid(), CSCConstants::MAX_ALCT_TBINS, reportErrors(), CSCBaseboard::theRing, and CSCBaseboard::theStation.
Referenced by checkValid(), and checkValidReadout().
void LCTQualityControl::checkValid | ( | const CSCCLCTDigi & | lct, |
unsigned | max_stubs = CSCConstants::MAX_CLCTS_PER_PROCESSOR |
||
) | const |
Definition at line 66 of file LCTQualityControl.cc.
References checkRange(), get_csc_clct_min_max_quality(), get_csc_clct_min_max_slope(), get_csc_max_eighthstrip(), get_csc_max_halfstrip(), get_csc_max_quartstrip(), get_csc_min_max_cfeb(), get_csc_min_max_pattern(), get_csc_min_max_pattern_run3(), CSCCLCTDigi::getBend(), CSCCLCTDigi::getBX(), CSCCLCTDigi::getCFEB(), CSCCLCTDigi::getCompCode(), CSCCLCTDigi::getKeyStrip(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getQuality(), CSCCLCTDigi::getRun3Pattern(), CSCCLCTDigi::getSlope(), CSCCLCTDigi::getStrip(), CSCCLCTDigi::getTrknmb(), CSCCLCTDigi::isValid(), CSCConstants::MAX_CLCT_TBINS, CSCConstants::NUM_HALF_STRIPS_PER_CFEB, funct::pow(), reportErrors(), CSCBaseboard::runCCLUT_, CSCBaseboard::theRing, and CSCBaseboard::theStation.
void LCTQualityControl::checkValid | ( | const CSCCorrelatedLCTDigi & | lct | ) | const |
Definition at line 132 of file LCTQualityControl.cc.
References checkValid(), CSCBaseboard::theRing, and CSCBaseboard::theStation.
void LCTQualityControl::checkValid | ( | const CSCCorrelatedLCTDigi & | lct, |
const unsigned | station, | ||
const unsigned | ring | ||
) | const |
Definition at line 134 of file LCTQualityControl.cc.
References CSCCorrelatedLCTDigi::ALCT2GEM, LCTQualityAssignment::ALCT_2GEM, LCTQualityAssignment::ALCT_CLCT, LCTQualityAssignment::ALCT_CLCT_1GEM_CSCBend, LCTQualityAssignment::ALCT_CLCT_1GEM_GEMCSCBend, LCTQualityAssignment::ALCT_CLCT_2GEM_CSCBend, LCTQualityAssignment::ALCT_CLCT_2GEM_GEMCSCBend, CSCCorrelatedLCTDigi::ALCTCLCT, CSCCorrelatedLCTDigi::ALCTCLCT2GEM, CSCCorrelatedLCTDigi::ALCTCLCTGEM, CSCCorrelatedLCTDigi::ALCTONLY, checkRange(), CSCCorrelatedLCTDigi::CLCT2GEM, LCTQualityAssignment::CLCT_2GEM, CSCCorrelatedLCTDigi::CLCTALCT, CSCCorrelatedLCTDigi::CLCTONLY, get_csc_lct_min_max_quality(), get_csc_max_eighthstrip(), get_csc_max_halfstrip(), get_csc_max_quartstrip(), get_csc_max_wiregroup(), get_csc_min_max_pattern(), get_csc_min_max_pattern_run3(), CSCCorrelatedLCTDigi::getBend(), CSCCorrelatedLCTDigi::getBX(), CSCCorrelatedLCTDigi::getCSCID(), CSCCorrelatedLCTDigi::getGEM1(), CSCCorrelatedLCTDigi::getGEM2(), CSCCorrelatedLCTDigi::getKeyWG(), CSCCorrelatedLCTDigi::getMPCLink(), CSCCorrelatedLCTDigi::getPattern(), CSCCorrelatedLCTDigi::getQuality(), CSCCorrelatedLCTDigi::getRun3Pattern(), CSCCorrelatedLCTDigi::getStrip(), CSCCorrelatedLCTDigi::getTrknmb(), CSCCorrelatedLCTDigi::getType(), LCTQualityAssignment::HighQ, CSCBaseboard::isME11_, CSCBaseboard::isME21_, GEMPadDigi::isValid(), CSCCorrelatedLCTDigi::isValid(), LCTQualityAssignment::LowQ, CSCConstants::MAX_LCT_TBINS, CSCConstants::MAX_LCTS_PER_MPC, CSCTriggerNumbering::maxTriggerCscId(), LCTQualityAssignment::MedQ, CSCTriggerNumbering::minTriggerCscId(), or, reportErrors(), CSCBaseboard::runCCLUT_, CSCBaseboard::runME11ILT_, and CSCBaseboard::runME21ILT_.
void LCTQualityControl::checkValidReadout | ( | const CSCALCTDigi & | alct | ) | const |
Definition at line 17 of file LCTQualityControl.cc.
References checkValid(), and CSCConstants::MAX_ALCTS_READOUT.
std::pair< unsigned, unsigned > LCTQualityControl::get_csc_alct_min_max_quality | ( | ) | const |
Definition at line 463 of file LCTQualityControl.cc.
References CSCBaseboard::isME21_, and CSCBaseboard::runME21ILT_.
Referenced by checkValid().
std::pair< unsigned, unsigned > LCTQualityControl::get_csc_clct_min_max_quality | ( | ) | const |
Definition at line 474 of file LCTQualityControl.cc.
References CSCBaseboard::isME11_, CSCBaseboard::isME21_, or, CSCBaseboard::runME11ILT_, and CSCBaseboard::runME21ILT_.
Referenced by checkValid().
std::pair< int, int > LCTQualityControl::get_csc_clct_min_max_slope | ( | ) | const |
Definition at line 303 of file LCTQualityControl.cc.
References CSCBaseboard::runCCLUT_.
Referenced by checkValid().
std::pair< unsigned, unsigned > LCTQualityControl::get_csc_lct_min_max_pattern | ( | ) | const |
std::pair< unsigned, unsigned > LCTQualityControl::get_csc_lct_min_max_quality | ( | unsigned | station, |
unsigned | ring | ||
) | const |
Definition at line 484 of file LCTQualityControl.cc.
References LCTQualityAssignment::ALCT_2GEM, LCTQualityAssignment::ALCT_CLCT_2GEM_GEMCSCBend, LCTQualityAssignment::HighQ, LCTQualityAssignment::HQ_ANODE_MARGINAL_CATHODE, LCTQualityAssignment::HQ_PATTERN_10, LCTQualityAssignment::HQ_PATTERN_2_3, CSCBaseboard::isME11_, CSCBaseboard::isME21_, LCTQualityAssignment::LowQ, or, CSCBaseboard::runCCLUT_, CSCBaseboard::runME11ILT_, and CSCBaseboard::runME21ILT_.
Referenced by checkValid().
unsigned LCTQualityControl::get_csc_max_eighthstrip | ( | unsigned | station, |
unsigned | ring | ||
) | const |
Definition at line 398 of file LCTQualityControl.cc.
References get_csc_max_halfstrip().
Referenced by checkValid().
unsigned LCTQualityControl::get_csc_max_halfstrip | ( | unsigned | station, |
unsigned | ring | ||
) | const |
Definition at line 355 of file LCTQualityControl.cc.
References CSCBaseboard::gangedME1a_, CSCConstants::NUM_HALF_STRIPS_ME11_GANGED, CSCConstants::NUM_HALF_STRIPS_ME11_UNGANGED, CSCConstants::NUM_HALF_STRIPS_ME12, CSCConstants::NUM_HALF_STRIPS_ME13, CSCConstants::NUM_HALF_STRIPS_ME1A_GANGED, CSCConstants::NUM_HALF_STRIPS_ME1A_UNGANGED, CSCConstants::NUM_HALF_STRIPS_ME21, CSCConstants::NUM_HALF_STRIPS_ME22, and CSCConstants::NUM_HALF_STRIPS_ME31.
Referenced by checkValid(), get_csc_max_eighthstrip(), and get_csc_max_quartstrip().
unsigned LCTQualityControl::get_csc_max_quartstrip | ( | unsigned | station, |
unsigned | ring | ||
) | const |
Definition at line 394 of file LCTQualityControl.cc.
References get_csc_max_halfstrip().
Referenced by checkValid().
unsigned LCTQualityControl::get_csc_max_wiregroup | ( | unsigned | station, |
unsigned | ring | ||
) | const |
Definition at line 335 of file LCTQualityControl.cc.
References CSCConstants::NUM_WIREGROUPS_ME11, CSCConstants::NUM_WIREGROUPS_ME12, CSCConstants::NUM_WIREGROUPS_ME13, CSCConstants::NUM_WIREGROUPS_ME21, CSCConstants::NUM_WIREGROUPS_ME22, and CSCConstants::NUM_WIREGROUPS_ME31.
Referenced by checkValid().
std::pair< unsigned, unsigned > LCTQualityControl::get_csc_min_max_cfeb | ( | ) | const |
Definition at line 402 of file LCTQualityControl.cc.
References CSCBaseboard::gangedME1a_, CSCConstants::NUM_CFEBS_ME11_GANGED, CSCConstants::NUM_CFEBS_ME11_UNGANGED, CSCConstants::NUM_CFEBS_ME12, CSCConstants::NUM_CFEBS_ME13, CSCConstants::NUM_CFEBS_ME1A_GANGED, CSCConstants::NUM_CFEBS_ME1A_UNGANGED, CSCConstants::NUM_CFEBS_ME21, CSCConstants::NUM_CFEBS_ME22, CSCConstants::NUM_CFEBS_ME31, CSCBaseboard::theRing, and CSCBaseboard::theStation.
Referenced by checkValid().
std::pair< unsigned, unsigned > LCTQualityControl::get_csc_min_max_pattern | ( | ) | const |
Definition at line 444 of file LCTQualityControl.cc.
Referenced by checkValid().
std::pair< unsigned, unsigned > LCTQualityControl::get_csc_min_max_pattern_run3 | ( | ) | const |
Definition at line 446 of file LCTQualityControl.cc.
Referenced by checkValid().
int LCTQualityControl::getSlopePhase1 | ( | unsigned | pattern | ) | const |
void LCTQualityControl::reportErrors | ( | const T & | lct, |
const unsigned | errors | ||
) | const |
Definition at line 30 of file LCTQualityControl.cc.
References CSCBaseboard::cscId_.
Referenced by checkValid().
|
private |
Definition at line 96 of file LCTQualityControl.h.
Referenced by LCTQualityControl().