#include <CSCCLCTDigi.h>
Public Types | |
enum | CLCTKeyStripMasks { kEightStripMask = 0x1, kQuartStripMask = 0x1, kHalfStripMask = 0x1f } |
enum | CLCTKeyStripShifts { kEightStripShift = 6, kQuartStripShift = 5, kHalfStripShift = 0 } |
typedef std::vector< std::vector< uint16_t > > | ComparatorContainer |
enum | Version { Version::Legacy = 0, Version::Run3 } |
Public Member Functions | |
void | clear () |
clear this CLCT More... | |
CSCCLCTDigi () | |
default More... | |
CSCCLCTDigi (const uint16_t valid, const uint16_t quality, const uint16_t pattern, const uint16_t striptype, const uint16_t bend, const uint16_t strip, const uint16_t cfeb, const uint16_t bx, const uint16_t trknmb=0, const uint16_t fullbx=0, const int16_t compCode=-1, const Version version=Version::Legacy) | |
Constructors. More... | |
uint16_t | getBend () const |
return bend More... | |
uint16_t | getBX () const |
return BX More... | |
uint16_t | getCFEB () const |
return Key CFEB ID More... | |
int16_t | getCompCode () const |
bool | getEightStrip () const |
get single eight strip bit More... | |
uint16_t | getFullBX () const |
return 12-bit full BX. More... | |
ComparatorContainer | getHits () const |
uint16_t | getKeyStrip (uint16_t n=2) const |
uint16_t | getPattern () const |
return pattern More... | |
uint16_t | getQuality () const |
return quality of a pattern (number of layers hit!) More... | |
bool | getQuartStrip () const |
get single quart strip bit More... | |
uint16_t | getStrip () const |
return halfstrip that goes from 0 to 31 in a (D)CFEB More... | |
uint16_t | getStripType () const |
return striptype 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 CLCT validity (1 - valid CLCT) More... | |
bool | operator!= (const CSCCLCTDigi &) const |
True if the preceding one is false. More... | |
bool | operator== (const CSCCLCTDigi &) const |
True if the two LCTs have exactly the same members (except the number). More... | |
bool | operator> (const CSCCLCTDigi &) const |
void | print () const |
Print content of digi. More... | |
void | setBend (const uint16_t bend) |
set bend More... | |
void | setBX (const uint16_t bx) |
set bx More... | |
void | setCFEB (const uint16_t cfeb) |
set Key CFEB ID More... | |
void | setCompCode (const int16_t code) |
void | setEightStrip (const bool eightStrip) |
set single eight strip bit More... | |
void | setFullBX (const uint16_t fullbx) |
Set 12-bit full BX. More... | |
void | setHits (const ComparatorContainer &hits) |
void | setPattern (const uint16_t pattern) |
set pattern More... | |
void | setQuality (const uint16_t quality) |
set quality More... | |
void | setQuartStrip (const bool quartStrip) |
set single quart strip bit More... | |
void | setRun3 (bool isRun3) |
void | setStrip (const uint16_t strip) |
set strip More... | |
void | setStripType (const uint16_t stripType) |
set stripType More... | |
void | setTrknmb (const uint16_t number) |
Set track number (1,2) after sorting CLCTs. More... | |
void | setValid (const uint16_t valid) |
set valid More... | |
Private Attributes | |
uint16_t | bend_ |
uint16_t | bx_ |
uint16_t | cfeb_ |
int16_t | compCode_ |
uint16_t | fullbx_ |
ComparatorContainer | hits_ |
uint16_t | pattern_ |
uint16_t | quality_ |
uint16_t | strip_ |
uint16_t | striptype_ |
uint16_t | trknmb_ |
uint16_t | valid_ |
Version | version_ |
Digi for CLCT trigger primitives.
Definition at line 17 of file CSCCLCTDigi.h.
typedef std::vector<std::vector<uint16_t> > CSCCLCTDigi::ComparatorContainer |
Definition at line 19 of file CSCCLCTDigi.h.
Enumerator | |
---|---|
kEightStripMask | |
kQuartStripMask | |
kHalfStripMask |
Definition at line 21 of file CSCCLCTDigi.h.
Enumerator | |
---|---|
kEightStripShift | |
kQuartStripShift | |
kHalfStripShift |
Definition at line 22 of file CSCCLCTDigi.h.
|
strong |
CSCCLCTDigi::CSCCLCTDigi | ( | const uint16_t | valid, |
const uint16_t | quality, | ||
const uint16_t | pattern, | ||
const uint16_t | striptype, | ||
const uint16_t | bend, | ||
const uint16_t | strip, | ||
const uint16_t | cfeb, | ||
const uint16_t | bx, | ||
const uint16_t | trknmb = 0 , |
||
const uint16_t | fullbx = 0 , |
||
const int16_t | compCode = -1 , |
||
const Version | version = Version::Legacy |
||
) |
Constructors.
Definition at line 17 of file CSCCLCTDigi.cc.
References CLCT_PATTERN_WIDTH, hits_, NUM_LAYERS, and AlCaHLTBitMon_ParallelJobs::p.
CSCCLCTDigi::CSCCLCTDigi | ( | ) |
default
Default.
Definition at line 48 of file CSCCLCTDigi.cc.
References CLCT_PATTERN_WIDTH, hits_, NUM_LAYERS, and AlCaHLTBitMon_ParallelJobs::p.
void CSCCLCTDigi::clear | ( | void | ) |
clear this CLCT
Clears this CLCT.
Definition at line 68 of file CSCCLCTDigi.cc.
References bend_, bx_, cfeb_, CLCT_PATTERN_WIDTH, compCode_, fullbx_, hits_, NUM_LAYERS, AlCaHLTBitMon_ParallelJobs::p, pattern_, quality_, strip_, striptype_, trknmb_, and valid_.
Referenced by CSCCathodeLCTProcessor::clear(), CSCGEMMotherboardME21::correlateLCTsGEM(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCMotherboardME11::correlateLCTsME11(), and BeautifulSoup.Tag::setString().
|
inline |
return bend
Definition at line 69 of file CSCCLCTDigi.h.
References bend_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), CSCMotherboard::constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), operator<<(), operator==(), and print().
|
inline |
return BX
Definition at line 99 of file CSCCLCTDigi.h.
References bx_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007_rev0x50c3::addCLCT0(), CSCTMBHeader2013::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), CSCMotherboard::constructLCTs(), CSCCathodeLCTProcessor::getBestCLCT(), CSCMotherboard::getBXShiftedCLCT(), CSCCathodeLCTProcessor::getSecondCLCT(), CSCCathodeLCTAnalyzer::lctDigis(), CSCGEMMotherboard::matchingPads(), operator<<(), operator==(), and print().
|
inline |
return Key CFEB ID
Definition at line 93 of file CSCCLCTDigi.h.
References cfeb_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), operator<<(), and print().
|
inline |
Definition at line 125 of file CSCCLCTDigi.h.
References compCode_, and isRun3().
Referenced by operator<<(), operator==(), and print().
bool CSCCLCTDigi::getEightStrip | ( | ) | const |
get single eight strip bit
Definition at line 106 of file CSCCLCTDigi.cc.
References kEightStripMask, kEightStripShift, and strip_.
Referenced by getKeyStrip().
|
inline |
return 12-bit full BX.
Definition at line 119 of file CSCCLCTDigi.h.
References fullbx_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2013::addCLCT0(), CSCTMBHeader2007_rev0x50c3::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), CSCTMBHeader2013::addCLCT1(), CSCTMBHeader2007_rev0x50c3::addCLCT1(), and print().
|
inline |
uint16_t CSCCLCTDigi::getKeyStrip | ( | uint16_t | n = 2 | ) | const |
Convert strip_ and cfeb_ to keyStrip. Each CFEB has up to 16 strips (32 halfstrips). There are 5 cfebs. The "strip_" variable is one of 32 halfstrips on the keylayer of a single CFEB, so that Halfstrip = (cfeb*32 + strip). This function can also return the quartstrip or eightstrip when the comparator code has been set
Definition at line 87 of file CSCCLCTDigi.cc.
References cfeb_, compCode_, getEightStrip(), getQuartStrip(), getStrip(), and dqmiodumpmetadata::n.
Referenced by CSCTMBHeader2007_rev0x50c3::addCLCT0(), CSCTMBHeader2013::addCLCT0(), CSCTMBHeader2013::addCLCT1(), CSCTMBHeader2007_rev0x50c3::addCLCT1(), CSCGEMMotherboard::bestMatchingPad(), CSCMotherboard::constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), CSCGEMMotherboard::getPad(), CSCCathodeLCTAnalyzer::lctDigis(), CSCGEMMotherboard::matchingPads(), operator<<(), operator==(), operator>(), and print().
|
inline |
return pattern
Definition at line 57 of file CSCCLCTDigi.h.
References pattern_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007_rev0x50c3::addCLCT0(), CSCTMBHeader2013::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), CSCTMBHeader2007_rev0x50c3::addCLCT1(), CSCTMBHeader2013::addCLCT1(), CSCMotherboard::constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), CSCMotherboard::findQuality(), CSCGEMMotherboard::findQualityGEM(), CSCCathodeLCTAnalyzer::lctDigis(), operator<<(), operator==(), operator>(), and print().
|
inline |
return quality of a pattern (number of layers hit!)
Definition at line 51 of file CSCCLCTDigi.h.
References quality_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007_rev0x50c3::addCLCT0(), CSCTMBHeader2013::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), CSCTMBHeader2007_rev0x50c3::addCLCT1(), CSCTMBHeader2013::addCLCT1(), CSCMotherboard::findQuality(), CSCGEMMotherboard::findQualityGEM(), operator<<(), operator==(), operator>(), print(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().
bool CSCCLCTDigi::getQuartStrip | ( | ) | const |
get single quart strip bit
Definition at line 104 of file CSCCLCTDigi.cc.
References kQuartStripMask, kQuartStripShift, and strip_.
Referenced by getKeyStrip().
uint16_t CSCCLCTDigi::getStrip | ( | ) | const |
return halfstrip that goes from 0 to 31 in a (D)CFEB
Definition at line 102 of file CSCCLCTDigi.cc.
References kHalfStripMask, and strip_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007::addCLCT1(), getKeyStrip(), operator<<(), and print().
|
inline |
return striptype
Definition at line 63 of file CSCCLCTDigi.h.
References striptype_.
Referenced by CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCCathodeLCTAnalyzer::lctDigis(), operator<<(), operator==(), and print().
|
inline |
return track number (1,2)
Definition at line 105 of file CSCCLCTDigi.h.
References trknmb_.
Referenced by operator<<(), and print().
|
inline |
Distinguish Run-1/2 from Run-3.
Definition at line 149 of file CSCCLCTDigi.h.
References Run3, and version_.
Referenced by getCompCode(), and setRun3().
|
inline |
check CLCT validity (1 - valid CLCT)
Definition at line 45 of file CSCCLCTDigi.h.
References valid_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), CSCTMBHeader2006::addCLCT0(), CSCTMBHeader2007_rev0x50c3::addCLCT0(), CSCTMBHeader2013::addCLCT0(), CSCTMBHeader2007::addCLCT0(), CSCTMBHeader2006::addCLCT1(), CSCTMBHeader2007_rev0x50c3::addCLCT1(), CSCTMBHeader2013::addCLCT1(), CSCTMBHeader2007::addCLCT1(), CSCGEMMotherboard::bestMatchingPad(), CSCGEMMotherboard::constructLCTsGEM(), CSCUpgradeMotherboard::correlateLCTs(), CSCMotherboard::correlateLCTs(), CSCGEMMotherboardME21::correlateLCTsGEM(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCMotherboardME11::correlateLCTsME11(), CSCMotherboard::findQuality(), CSCGEMMotherboard::findQualityGEM(), CSCGEMMotherboard::matchingPads(), operator<<(), operator==(), print(), and core.AutoHandle.AutoHandle::ReallyLoad().
bool CSCCLCTDigi::operator!= | ( | const CSCCLCTDigi & | rhs | ) | const |
True if the preceding one is false.
Definition at line 180 of file CSCCLCTDigi.cc.
bool CSCCLCTDigi::operator== | ( | const CSCCLCTDigi & | rhs | ) | const |
True if the two LCTs have exactly the same members (except the number).
Definition at line 169 of file CSCCLCTDigi.cc.
References getBend(), getBX(), getCompCode(), getKeyStrip(), getPattern(), getQuality(), getStripType(), and isValid().
bool CSCCLCTDigi::operator> | ( | const CSCCLCTDigi & | rhs | ) | const |
True if the left-hand side has a larger "quality". Full definition of "quality" depends on quality word itself, pattern type, and strip number.
Definition at line 126 of file CSCCLCTDigi.cc.
References getKeyStrip(), getPattern(), getQuality(), Run3, and version_.
void CSCCLCTDigi::print | ( | void | ) | const |
Print content of digi.
Debug.
Definition at line 189 of file CSCCLCTDigi.cc.
References trklet::bend(), getBend(), getBX(), getCFEB(), getCompCode(), getFullBX(), getKeyStrip(), getPattern(), getQuality(), getStrip(), getStripType(), getTrknmb(), and isValid().
|
inline |
|
inline |
set bx
Definition at line 102 of file CSCCLCTDigi.h.
References l1GtPatternGenerator_cfi::bx, and bx_.
Referenced by CSCCathodeLCTProcessor::getBestCLCT(), CSCMotherboard::getBXShiftedCLCT(), and CSCCathodeLCTProcessor::getSecondCLCT().
|
inline |
|
inline |
void CSCCLCTDigi::setEightStrip | ( | const bool | eightStrip | ) |
set single eight strip bit
Definition at line 116 of file CSCCLCTDigi.cc.
References kEightStripMask, kEightStripShift, and strip_.
|
inline |
Set 12-bit full BX.
Definition at line 122 of file CSCCLCTDigi.h.
References fullbx_.
Referenced by CSCUpgradeCathodeLCTProcessor::findLCTs().
|
inline |
Definition at line 132 of file CSCCLCTDigi.h.
References hfClusterShapes_cfi::hits, and hits_.
Referenced by CSCUpgradeCathodeLCTProcessor::findLCTs(), and CSCCathodeLCTProcessor::findLCTs().
|
inline |
set pattern
Definition at line 60 of file CSCCLCTDigi.h.
References topSingleLeptonDQM_PU_cfi::pattern, and pattern_.
|
inline |
set quality
Definition at line 54 of file CSCCLCTDigi.h.
References qcdUeDQM_cfi::quality, and quality_.
void CSCCLCTDigi::setQuartStrip | ( | const bool | quartStrip | ) |
set single quart strip bit
Definition at line 108 of file CSCCLCTDigi.cc.
References kQuartStripMask, kQuartStripShift, and strip_.
void CSCCLCTDigi::setRun3 | ( | bool | isRun3 | ) |
Definition at line 124 of file CSCCLCTDigi.cc.
|
inline |
set strip
Definition at line 78 of file CSCCLCTDigi.h.
References digitizers_cfi::strip, and strip_.
|
inline |
|
inline |
Set track number (1,2) after sorting CLCTs.
Definition at line 116 of file CSCCLCTDigi.h.
References contentValuesFiles::number, and trknmb_.
Referenced by CSCCathodeLCTProcessor::run().
|
inline |
set valid
Definition at line 48 of file CSCCLCTDigi.h.
References validateGeometry_cfg::valid, and valid_.
|
private |
Definition at line 162 of file CSCCLCTDigi.h.
|
private |
Definition at line 170 of file CSCCLCTDigi.h.
|
private |
Definition at line 169 of file CSCCLCTDigi.h.
Referenced by clear(), getCFEB(), getKeyStrip(), and setCFEB().
|
private |
Definition at line 176 of file CSCCLCTDigi.h.
Referenced by clear(), getCompCode(), getKeyStrip(), and setCompCode().
|
private |
Definition at line 172 of file CSCCLCTDigi.h.
Referenced by clear(), getFullBX(), and setFullBX().
|
private |
Definition at line 178 of file CSCCLCTDigi.h.
Referenced by clear(), CSCCLCTDigi(), getHits(), and setHits().
|
private |
Definition at line 158 of file CSCCLCTDigi.h.
Referenced by clear(), getPattern(), and setPattern().
|
private |
Definition at line 155 of file CSCCLCTDigi.h.
Referenced by clear(), getQuality(), and setQuality().
|
private |
Definition at line 167 of file CSCCLCTDigi.h.
Referenced by clear(), getEightStrip(), getQuartStrip(), getStrip(), setEightStrip(), setQuartStrip(), and setStrip().
|
private |
Definition at line 159 of file CSCCLCTDigi.h.
Referenced by clear(), getStripType(), and setStripType().
|
private |
Definition at line 171 of file CSCCLCTDigi.h.
Referenced by clear(), getTrknmb(), and setTrknmb().
|
private |
Definition at line 154 of file CSCCLCTDigi.h.
Referenced by clear(), isValid(), and setValid().
|
private |
Definition at line 180 of file CSCCLCTDigi.h.
Referenced by isRun3(), operator>(), and setRun3().