#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 |
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_ |
std::array< std::unique_ptr< CSCLUTReader >, CSCConstants::NUM_CLCT_PATTERNS_RUN3 > | lutpatconv_ |
std::array< std::unique_ptr< CSCLUTReader >, CSCConstants::NUM_CLCT_PATTERNS_RUN3 > | lutpos_ |
std::array< std::unique_ptr< CSCLUTReader >, CSCConstants::NUM_CLCT_PATTERNS_RUN3 > | lutslope_ |
std::vector< std::string > | patternConversionLUTFiles_ |
std::vector< std::string > | positionLUTFiles_ |
std::vector< std::string > | slopeLUTFiles_ |
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_, CSCPatternBank::clct_pattern_run3_, edm::ParameterSet::getParameter(), mps_fire::i, lutpatconv_, lutpos_, lutslope_, patternConversionLUTFiles_, positionLUTFiles_, and slopeLUTFiles_.
|
private |
Definition at line 154 of file ComparatorCodeLUT.cc.
References hltrates_dqm_sourceclient-live_cfg::offset.
Referenced by run().
|
private |
Definition at line 113 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 18 of file ComparatorCodeLUT.cc.
References assignPositionCC(), calculateComparatorCode(), 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, lutpos_, lutslope_, 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 57 of file ComparatorCodeLUT.h.
Referenced by run().
|
private |
Definition at line 54 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT().
|
private |
Definition at line 52 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT(), and run().
|
private |
Definition at line 53 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT(), and run().
|
private |
Definition at line 49 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT().
|
private |
Definition at line 47 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT().
|
private |
Definition at line 48 of file ComparatorCodeLUT.h.
Referenced by ComparatorCodeLUT().