#include <CSCALCTDigi.h>
Public Types | |
enum | Version { Version::Legacy = 0, Version::Run3 } |
typedef std::vector< std::vector< uint16_t > > | WireContainer |
Public Member Functions | |
void | clear () |
clear this ALCT More... | |
CSCALCTDigi () | |
default More... | |
CSCALCTDigi (const uint16_t valid, const uint16_t quality, const uint16_t accel, const uint16_t patternb, const uint16_t keywire, const uint16_t bx, const uint16_t trknmb=0, const uint16_t hmt=0, const Version version=Version::Legacy) | |
Constructors. More... | |
uint16_t | getAccelerator () const |
uint16_t | getBX () const |
return BX - five low bits of BXN counter tagged by the ALCT More... | |
uint16_t | getCollisionB () const |
uint16_t | getFullBX () const |
return 12-bit full BX. More... | |
const WireContainer & | getHits () const |
uint16_t | getHMT () const |
return the high multiplicity bits More... | |
uint16_t | getKeyWG () const |
return key wire group More... | |
uint16_t | getQuality () const |
return quality of a pattern More... | |
uint16_t | getTrknmb () const |
return track number (1,2) More... | |
bool | isRun3 () const |
Distinguish Run-1/2 from Run-3. More... | |
bool | isValid () const |
check ALCT validity (1 - valid ALCT) More... | |
bool | operator!= (const CSCALCTDigi &) const |
True if the preceding one is false. More... | |
bool | operator== (const CSCALCTDigi &) const |
True if all members (except the number) of both ALCTs are equal. More... | |
bool | operator> (const CSCALCTDigi &) const |
void | print () const |
Print content of digi. More... | |
void | setAccelerator (const uint16_t accelerator) |
set accelerator bit More... | |
void | setBX (const uint16_t BX) |
set BX More... | |
void | setCollisionB (const uint16_t collision) |
set Collision Pattern B bit More... | |
void | setFullBX (const uint16_t fullbx) |
Set 12-bit full BX. More... | |
void | setHits (const WireContainer &hits) |
void | setHMT (const uint16_t hmt) |
set the high multiplicity bits More... | |
void | setKeyWG (const uint16_t keyWG) |
set key wire group More... | |
void | setQuality (const uint16_t quality) |
set quality More... | |
void | setRun3 (const bool isRun3) |
void | setTrknmb (const uint16_t number) |
Set track number (1,2) after sorting ALCTs. More... | |
void | setValid (const uint16_t valid) |
set valid More... | |
void | setWireGroup (uint16_t wiregroup) |
set wiregroup number More... | |
Private Attributes | |
uint16_t | accel_ |
uint16_t | bx_ |
uint16_t | fullbx_ |
WireContainer | hits_ |
uint16_t | hmt_ |
uint16_t | keywire_ |
uint16_t | patternb_ |
uint16_t | quality_ |
uint16_t | trknmb_ |
uint16_t | valid_ |
Version | version_ |
Digi for ALCT trigger primitives.
Definition at line 17 of file CSCALCTDigi.h.
typedef std::vector<std::vector<uint16_t> > CSCALCTDigi::WireContainer |
Definition at line 21 of file CSCALCTDigi.h.
|
strong |
CSCALCTDigi::CSCALCTDigi | ( | const uint16_t | valid, |
const uint16_t | quality, | ||
const uint16_t | accel, | ||
const uint16_t | patternb, | ||
const uint16_t | keywire, | ||
const uint16_t | bx, | ||
const uint16_t | trknmb = 0 , |
||
const uint16_t | hmt = 0 , |
||
const Version | version = Version::Legacy |
||
) |
Constructors.
Definition at line 19 of file CSCALCTDigi.cc.
References ALCT_PATTERN_WIDTH, hits_, NUM_LAYERS, and AlCaHLTBitMon_ParallelJobs::p.
CSCALCTDigi::CSCALCTDigi | ( | ) |
void CSCALCTDigi::clear | ( | void | ) |
clear this ALCT
Clears this ALCT.
Definition at line 50 of file CSCALCTDigi.cc.
References accel_, ALCT_PATTERN_WIDTH, bx_, fullbx_, hits_, hmt_, keywire_, NUM_LAYERS, AlCaHLTBitMon_ParallelJobs::p, patternb_, quality_, trknmb_, and valid_.
Referenced by CSCCorrelatedLCTDigi::clear(), CSCAnodeLCTProcessor::clear(), CSCGEMMotherboardME21::correlateLCTsGEM(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCMotherboardME11::correlateLCTsME11(), CSCALCTDigi(), and BeautifulSoup.Tag::setString().
|
inline |
return Accelerator bit 1-Accelerator pattern, 0-CollisionA or CollisionB pattern
Definition at line 53 of file CSCALCTDigi.h.
References accel_.
Referenced by CSCALCTs2006::addALCT0(), CSCALCTs2006::addALCT1(), CSCMotherboard::findQuality(), CSCGEMMotherboard::findQualityGEMv1(), CSCAnodeLCTProcessor::isBetterALCT(), CSCAnodeLCTAnalyzer::lctDigis(), operator<<(), operator==(), and print().
|
inline |
return BX - five low bits of BXN counter tagged by the ALCT
Definition at line 73 of file CSCALCTDigi.h.
References bx_.
Referenced by CSCALCTs2006::addALCT0(), CSCALCTs2006::addALCT1(), LCTQualityControl::checkValid(), CSCMotherboard::constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), CSCMotherboard::getBXShiftedALCT(), CSCAnodeLCTProcessor::isBetterALCT(), CSCAnodeLCTAnalyzer::lctDigis(), CSCGEMMotherboard::matchingPads(), operator<<(), operator==(), operator>(), and print().
|
inline |
return Collision Pattern B bit 1-CollisionB pattern (accel_ = 0), 0-CollisionA pattern (accel_ = 0)
Definition at line 61 of file CSCALCTDigi.h.
References patternb_.
Referenced by CSCALCTs2006::addALCT0(), CSCALCTs2006::addALCT1(), LCTQualityControl::checkValid(), CSCAnodeLCTAnalyzer::lctDigis(), operator<<(), operator==(), and print().
|
inline |
return 12-bit full BX.
Definition at line 85 of file CSCALCTDigi.h.
References fullbx_.
Referenced by CSCAnodeLCTProcessor::lctSearch(), and print().
|
inline |
uint16_t CSCALCTDigi::getHMT | ( | ) | const |
return the high multiplicity bits
Definition at line 66 of file CSCALCTDigi.cc.
References hmt_, isRun3(), and SiStripPI::max.
Referenced by operator<<(), operator==(), and print().
|
inline |
return key wire group
Definition at line 67 of file CSCALCTDigi.h.
References keywire_.
Referenced by CSCALCTs2006::addALCT0(), CSCALCTs2006::addALCT1(), CSCAnodeLCTProcessor::bestTrackSelector(), LCTQualityControl::checkValid(), CSCMotherboard::constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), CSCGEMMotherboard::getRolls(), CSCAnodeLCTAnalyzer::lctDigis(), CSCGEMMotherboard::matchingPads(), operator<<(), operator==(), operator>(), and print().
|
inline |
return quality of a pattern
Definition at line 46 of file CSCALCTDigi.h.
References quality_.
Referenced by CSCALCTs2006::addALCT0(), CSCALCTs2006::addALCT1(), CSCAnodeLCTProcessor::bestTrackSelector(), LCTQualityControl::checkValid(), CSCMotherboard::findQuality(), CSCGEMMotherboard::findQualityGEMv1(), CSCMotherboard::findQualityRun3(), CSCAnodeLCTProcessor::isBetterALCT(), operator<<(), operator==(), operator>(), print(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().
|
inline |
return track number (1,2)
Definition at line 79 of file CSCALCTDigi.h.
References trknmb_.
Referenced by LCTQualityControl::checkValid(), operator<<(), and print().
|
inline |
Distinguish Run-1/2 from Run-3.
Definition at line 113 of file CSCALCTDigi.h.
|
inline |
check ALCT validity (1 - valid ALCT)
Definition at line 40 of file CSCALCTDigi.h.
References valid_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), CSCALCTs2006::addALCT0(), CSCALCTs2006::addALCT1(), CSCGEMMotherboard::bestMatchingPad(), CSCAnodeLCTProcessor::bestTrackSelector(), LCTQualityControl::checkValid(), CSCMotherboard::constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), CSCUpgradeMotherboard::correlateLCTs(), CSCMotherboard::correlateLCTs(), CSCGEMMotherboardME21::correlateLCTsGEM(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCMotherboardME11::correlateLCTsME11(), CSCMotherboard::findQuality(), CSCGEMMotherboard::findQualityGEMv1(), CSCGEMMotherboard::findQualityGEMv2(), CSCMotherboard::findQualityRun3(), CSCAnodeLCTProcessor::isBetterALCT(), CSCGEMMotherboard::matchingPads(), operator<<(), operator==(), print(), and core.AutoHandle.AutoHandle::ReallyLoad().
bool CSCALCTDigi::operator!= | ( | const CSCALCTDigi & | rhs | ) | const |
True if the preceding one is false.
Definition at line 107 of file CSCALCTDigi.cc.
bool CSCALCTDigi::operator== | ( | const CSCALCTDigi & | rhs | ) | const |
True if all members (except the number) of both ALCTs are equal.
Definition at line 96 of file CSCALCTDigi.cc.
References getAccelerator(), getBX(), getCollisionB(), getHMT(), getKeyWG(), getQuality(), and isValid().
bool CSCALCTDigi::operator> | ( | const CSCALCTDigi & | rhs | ) | const |
True if the first ALCT has a larger quality, or if it has the same quality but a larger wire group.
Definition at line 72 of file CSCALCTDigi.cc.
References getBX(), getKeyWG(), and getQuality().
void CSCALCTDigi::print | ( | void | ) | const |
Print content of digi.
Debug.
Definition at line 116 of file CSCALCTDigi.cc.
References getAccelerator(), getBX(), getCollisionB(), getFullBX(), getHMT(), getKeyWG(), getQuality(), getTrknmb(), and isValid().
|
inline |
|
inline |
set BX
Definition at line 76 of file CSCALCTDigi.h.
References L1TStage2uGTEmulatorClient_cff::BX, and bx_.
Referenced by CSCMotherboard::getBXShiftedALCT().
|
inline |
|
inline |
|
inline |
Definition at line 120 of file CSCALCTDigi.h.
References hfClusterShapes_cfi::hits, and hits_.
Referenced by CSCAnodeLCTProcessor::setWireContainer().
void CSCALCTDigi::setHMT | ( | const uint16_t | hmt | ) |
set the high multiplicity bits
Definition at line 68 of file CSCALCTDigi.cc.
References h, hmt_, isRun3(), and SiStripPI::max.
|
inline |
|
inline |
set quality
Definition at line 49 of file CSCALCTDigi.h.
References qcdUeDQM_cfi::quality, and quality_.
void CSCALCTDigi::setRun3 | ( | const bool | isRun3 | ) |
Definition at line 70 of file CSCALCTDigi.cc.
|
inline |
Set track number (1,2) after sorting ALCTs.
Definition at line 82 of file CSCALCTDigi.h.
References contentValuesFiles::number, and trknmb_.
Referenced by CSCAnodeLCTProcessor::lctSearch().
|
inline |
|
inline |
|
private |
Definition at line 125 of file CSCALCTDigi.h.
Referenced by clear(), getAccelerator(), and setAccelerator().
|
private |
Definition at line 128 of file CSCALCTDigi.h.
|
private |
Definition at line 130 of file CSCALCTDigi.h.
Referenced by clear(), getFullBX(), and setFullBX().
|
private |
Definition at line 138 of file CSCALCTDigi.h.
Referenced by clear(), CSCALCTDigi(), getHits(), and setHits().
|
private |
Run-3 introduces high-multiplicity bits for CSCs. Note: In DN-20-016, 3 bits are allocated for HMT in the ALCT board. These bits are copied into the ALCT digi in CMSSW
Definition at line 134 of file CSCALCTDigi.h.
|
private |
Definition at line 127 of file CSCALCTDigi.h.
Referenced by clear(), getKeyWG(), setKeyWG(), and setWireGroup().
|
private |
Definition at line 126 of file CSCALCTDigi.h.
Referenced by clear(), getCollisionB(), and setCollisionB().
|
private |
Definition at line 124 of file CSCALCTDigi.h.
Referenced by clear(), getQuality(), and setQuality().
|
private |
Definition at line 129 of file CSCALCTDigi.h.
Referenced by clear(), getTrknmb(), and setTrknmb().
|
private |
Definition at line 123 of file CSCALCTDigi.h.
Referenced by clear(), isValid(), and setValid().
|
private |
Definition at line 136 of file CSCALCTDigi.h.
Referenced by CSCALCTDigi(), isRun3(), and setRun3().