#include <ComparatorCodeLUT.h>
Public Types | |
typedef std::array< std::array< int, 3 >, CSCConstants::NUM_LAYERS > | pattern |
Public Member Functions | |
ComparatorCodeLUT (const edm::ParameterSet &conf) | |
void | run (CSCCLCTDigi &digi, unsigned numCFEBs) const |
void | setESLookupTables (const CSCL1TPLookupTableCCLUT *conf) |
Private Member Functions | |
void | assignPositionCC (const unsigned offset, std::tuple< int16_t, bool, bool > &returnValue) const |
int | calculateComparatorCode (const pattern &halfStripPattern) const |
unsigned | convertSlopeToRun2Pattern (const unsigned slope) const |
Private Attributes | |
CSCPatternBank::LCTPatterns | clct_pattern_ = {} |
unsigned | infoV_ |
const CSCL1TPLookupTableCCLUT * | lookupTableCCLUT_ |
Helper class to calculate for the comparator code algorithm for Phase-2.
Definition at line 25 of file ComparatorCodeLUT.h.
typedef std::array<std::array<int, 3>, CSCConstants::NUM_LAYERS> ComparatorCodeLUT::pattern |
Definition at line 27 of file ComparatorCodeLUT.h.
ComparatorCodeLUT::ComparatorCodeLUT | ( | const edm::ParameterSet & | conf | ) |
Definition at line 4 of file ComparatorCodeLUT.cc.
References clct_pattern_, and CSCPatternBank::clct_pattern_run3_.
|
private |
Definition at line 146 of file ComparatorCodeLUT.cc.
References hltrates_dqm_sourceclient-live_cfg::offset.
Referenced by run().
|
private |
Definition at line 105 of file ComparatorCodeLUT.cc.
References triggerObjects_cff::id, and CSCConstants::NUM_LAYERS.
Referenced by run().
|
private |
void ComparatorCodeLUT::run | ( | CSCCLCTDigi & | digi, |
unsigned | numCFEBs | ||
) | const |
Definition at line 10 of file ComparatorCodeLUT.cc.
References assignPositionCC(), calculateComparatorCode(), CSCL1TPLookupTableCCLUT::cclutPosition(), CSCL1TPLookupTableCCLUT::cclutSlope(), clct_pattern_, CSCConstants::CLCT_PATTERN_WIDTH, convertSlopeToRun2Pattern(), CSCCLCTDigi::getHits(), CSCCLCTDigi::getKeyStrip(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getQuartStripBit(), mps_fire::i, infoV_, CSCConstants::INVALID_HALF_STRIP, dqmiolumiharvest::j, LogDebug, lookupTableCCLUT_, CSCConstants::NUM_HALF_STRIPS_PER_CFEB, CSCConstants::NUM_LAYERS, CSCCLCTDigi::setBend(), CSCCLCTDigi::setCFEB(), CSCCLCTDigi::setCompCode(), CSCCLCTDigi::setEighthStripBit(), CSCCLCTDigi::setPattern(), CSCCLCTDigi::setQuartStripBit(), CSCCLCTDigi::setRun3(), CSCCLCTDigi::setRun3Pattern(), CSCCLCTDigi::setSlope(), CSCCLCTDigi::setStrip(), and testProducerWithPsetDescEmpty_cfi::x1.
void ComparatorCodeLUT::setESLookupTables | ( | const CSCL1TPLookupTableCCLUT * | conf | ) |
Definition at line 8 of file ComparatorCodeLUT.cc.
References lookupTableCCLUT_.
|
private |
Definition at line 47 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT(), and run().
|
private |
Definition at line 50 of file ComparatorCodeLUT.h.
Referenced by run().
|
private |
Definition at line 53 of file ComparatorCodeLUT.h.
Referenced by run(), and setESLookupTables().