#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 CSCL1TPLookupTableCCLUT *lookupTableCCLUT) const |
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_ = 0 |
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 HLT_IsoTrack_cff::offset.
Referenced by run().
|
private |
Definition at line 105 of file ComparatorCodeLUT.cc.
References EcalPhiSymFlatTableProducers_cfi::id, and CSCConstants::NUM_LAYERS.
Referenced by run().
|
private |
void ComparatorCodeLUT::run | ( | CSCCLCTDigi & | digi, |
unsigned | numCFEBs, | ||
const CSCL1TPLookupTableCCLUT * | lookupTableCCLUT | ||
) | const |
Definition at line 8 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, 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.
|
private |
Definition at line 45 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT(), and run().
|
private |
Definition at line 48 of file ComparatorCodeLUT.h.
Referenced by run().