#include <L1MuGMTCand.h>
Public Member Functions | |
int | bx () const |
get bunch crossing identifier More... | |
int | charge () const |
get charge (+1 -1) More... | |
bool | charge_valid () const |
is the charge valid ? More... | |
bool | empty () const |
is it an empty muon candidate? More... | |
unsigned int | etaIndex () const |
get eta-code More... | |
unsigned int | etaRegionIndex () const |
float | etaValue () const |
unsigned | getDataWord () const |
get muon data word More... | |
bool | isHaloCand () const |
interpretation of quality code: is the candidate a beam halo muon ? More... | |
bool | isMatchedCand () const |
interpretation of quality code: is the candidate a matched candidate ? More... | |
bool | isol () const |
get isolation More... | |
bool | isSyncWord () const |
is the candidate a sync word More... | |
L1MuGMTCand () | |
constructor More... | |
L1MuGMTCand (unsigned data, int bx=0) | |
constructor from dataword More... | |
L1MuGMTCand (const L1MuGMTCand &) | |
copy constructor More... | |
unsigned int | linearizedPt (float lsbValue, unsigned maxScale) const |
bool | mip () const |
get mip More... | |
std::string | name () const |
get name of object More... | |
bool | operator!= (const L1MuGMTCand &) const |
unequal operator More... | |
L1MuGMTCand & | operator= (const L1MuGMTCand &)=default |
assignment operator More... | |
bool | operator== (const L1MuGMTCand &) const |
equal operator More... | |
unsigned int | phiIndex () const |
get phi-code More... | |
unsigned int | phiRegionIndex () const |
float | phiValue () const |
void | print () const |
print parameters of muon candidate More... | |
unsigned int | ptIndex () const |
get pt-code More... | |
float | ptValue () const |
unsigned int | quality () const |
get quality More... | |
void | reset () |
reset muon candidate More... | |
void | setBx (int bx) |
set bunch crossing identifier More... | |
void | setChargePacked (unsigned ch) |
set packed charge/synchronization word of muon candidate (0=POS, 1=NEG, 2=UNDEF, 3=SYNC) More... | |
void | setEtaPacked (unsigned eta) |
set packed eta-code of muon candidate More... | |
void | setEtaValue (float etaVal) |
Set Eta Value (need to set type, first) More... | |
void | setIsolation (bool isol) |
set isolation of muon candidate More... | |
void | setMIP (bool mip) |
set min ionizing bit for muon candidate More... | |
void | setPhiPacked (unsigned phi) |
set packed phi-code of muon candidate More... | |
void | setPhiValue (float phiVal) |
Setters for physical values. More... | |
void | setPtPacked (unsigned pt) |
set packed pt-code of muon candidate More... | |
void | setPtValue (float ptVal) |
Set Pt Value. More... | |
void | setQuality (unsigned quality) |
set quality of muon candidate More... | |
unsigned | sysign () const |
get charge/synchronization word (0=POS, 1=NEG, 2=UNDEF, 3=SYNC) More... | |
bool | useInDiMuonTrigger () const |
interpretation of quality code: is the candidate to be used in a di-muon trigger ? More... | |
bool | useInSingleMuonTrigger () const |
interpretation of quality code: is the candidate to be used in a single muon trigger ? More... | |
virtual | ~L1MuGMTCand () |
destructor More... | |
Protected Types | |
enum | { PHI_START = 0 } |
enum | { PHI_LENGTH = 8 } |
enum | { PT_START = 8 } |
enum | { PT_LENGTH = 5 } |
enum | { QUAL_START = 13 } |
enum | { QUAL_LENGTH = 3 } |
enum | { ETA_START = 16 } |
enum | { ETA_LENGTH = 6 } |
enum | { ISO_START = 22 } |
enum | { ISO_LENGTH = 1 } |
enum | { MIP_START = 23 } |
enum | { MIP_LENGTH = 1 } |
enum | { SYSIGN_START = 24 } |
enum | { SYSIGN_LENGTH = 2 } |
Protected Member Functions | |
unsigned | readDataField (unsigned start, unsigned count) const |
void | writeDataField (unsigned start, unsigned count, unsigned value) |
Protected Attributes | |
int | m_bx |
unsigned | m_dataWord |
float | m_etaValue |
std::string | m_name |
float | m_phiValue |
float | m_ptValue |
Static Protected Attributes | |
static const float | m_invalidValue = -10. |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1MuGMTCand &) |
output stream operator More... | |
L1 Global Muon Trigger Candidate.
This candidate contains only information sent to the GT.
Definition at line 39 of file L1MuGMTCand.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
L1MuGMTCand::L1MuGMTCand | ( | ) |
constructor
Definition at line 49 of file L1MuGMTCand.cc.
References m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.
L1MuGMTCand::L1MuGMTCand | ( | unsigned | data, |
int | bx = 0 |
||
) |
constructor from dataword
Definition at line 63 of file L1MuGMTCand.cc.
References m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.
L1MuGMTCand::L1MuGMTCand | ( | const L1MuGMTCand & | mu | ) |
|
virtual |
|
inline |
get bunch crossing identifier
Definition at line 120 of file L1MuGMTCand.h.
References m_bx.
Referenced by print(), pat::L1MuonMatcher::produce(), and setBx().
|
inline |
get charge (+1 -1)
Definition at line 135 of file L1MuGMTCand.h.
References readDataField(), SYSIGN_LENGTH, and SYSIGN_START.
Referenced by print().
|
inline |
is the charge valid ?
Definition at line 138 of file L1MuGMTCand.h.
References readDataField(), sysign(), SYSIGN_LENGTH, and SYSIGN_START.
Referenced by HLTL1MuonSelector::produce(), and L2MuonSeedGenerator::produce().
|
inline |
is it an empty muon candidate?
Definition at line 64 of file L1MuGMTCand.h.
References PT_LENGTH, PT_START, and readDataField().
Referenced by L1MuGMTExtendedCand::print(), print(), HLTL1MuonSelector::produce(), and L2MuonSeedGenerator::produce().
|
inline |
get eta-code
Definition at line 108 of file L1MuGMTCand.h.
References ETA_LENGTH, ETA_START, and readDataField().
Referenced by etaRegionIndex(), print(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
float L1MuGMTCand::etaValue | ( | ) | const |
get eta-value of muon candidate this functionality will be moved to an extra Producer
Definition at line 102 of file L1MuGMTCand.cc.
References m_etaValue, and m_invalidValue.
Referenced by SimpleL1MuGMTCand::print(), print(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
get muon data word
Definition at line 67 of file L1MuGMTCand.h.
References m_dataWord.
Referenced by L1GtPatternGenerator::analyze().
|
inline |
interpretation of quality code: is the candidate a beam halo muon ?
Definition at line 105 of file L1MuGMTCand.h.
References quality().
|
inline |
interpretation of quality code: is the candidate a matched candidate ?
Definition at line 102 of file L1MuGMTCand.h.
References quality().
|
inline |
get isolation
Definition at line 114 of file L1MuGMTCand.h.
References ISO_LENGTH, ISO_START, and readDataField().
Referenced by l1extra::L1MuonParticle::L1MuonParticle(), print(), pat::L1MuonMatcher::produce(), and setIsolation().
|
inline |
is the candidate a sync word
Definition at line 144 of file L1MuGMTCand.h.
References readDataField(), SYSIGN_LENGTH, and SYSIGN_START.
|
inline |
Definition at line 189 of file L1MuGMTCand.h.
|
inline |
get mip
Definition at line 117 of file L1MuGMTCand.h.
References MIP_LENGTH, MIP_START, and readDataField().
Referenced by l1extra::L1MuonParticle::L1MuonParticle(), print(), and setMIP().
|
inline |
get name of object
Definition at line 70 of file L1MuGMTCand.h.
References m_name.
Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().
bool L1MuGMTCand::operator!= | ( | const L1MuGMTCand & | cand | ) | const |
unequal operator
Definition at line 133 of file L1MuGMTCand.cc.
References m_bx, and m_dataWord.
|
default |
assignment operator
bool L1MuGMTCand::operator== | ( | const L1MuGMTCand & | cand | ) | const |
equal operator
Definition at line 122 of file L1MuGMTCand.cc.
References m_bx, and m_dataWord.
|
inline |
get phi-code
Definition at line 73 of file L1MuGMTCand.h.
References PHI_LENGTH, PHI_START, and readDataField().
Referenced by phiRegionIndex(), print(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
float L1MuGMTCand::phiValue | ( | ) | const |
get phi-value of muon candidate in radians (low edge of bin) this functionality will be moved to an extra Producer
Definition at line 92 of file L1MuGMTCand.cc.
References m_invalidValue, and m_phiValue.
Referenced by SimpleL1MuGMTCand::print(), print(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
void L1MuGMTCand::print | ( | void | ) | const |
print parameters of muon candidate
Definition at line 144 of file L1MuGMTCand.cc.
References bx(), charge(), empty(), etaIndex(), etaValue(), alignBH_cfg::fixed, isol(), m_etaValue, m_invalidValue, m_phiValue, m_ptValue, mip(), phiIndex(), phiValue(), ptIndex(), ptValue(), and quality().
Referenced by L1MuGMTExtendedCand::print().
|
inline |
get pt-code
Definition at line 76 of file L1MuGMTCand.h.
References PT_LENGTH, PT_START, and readDataField().
Referenced by print().
float L1MuGMTCand::ptValue | ( | ) | const |
get pt-value of muon candidate in GeV this functionality will be moved to an extra Producer
Definition at line 112 of file L1MuGMTCand.cc.
References m_invalidValue, and m_ptValue.
Referenced by SimpleL1MuGMTCand::print(), and print().
|
inline |
get quality
Quality codes:
0 .. no muon 1 .. beam halo muon (CSC) 2 .. very low quality level 1 (e.g. ignore in single and di-muon trigger) 3 .. very low quality level 2 (e.g. ignore in single muon trigger use in di-muon trigger) 4 .. very low quality level 3 (e.g. ignore in di-muon trigger, use in single-muon trigger) 5 .. unmatched RPC 6 .. unmatched DT or CSC 7 .. matched DT-RPC or CSC-RPC
attention: try not to rely on quality codes in analysis: they may change again
Definition at line 93 of file L1MuGMTCand.h.
References QUAL_LENGTH, QUAL_START, and readDataField().
Referenced by L1MuGMTExtendedCand::detector(), isHaloCand(), isMatchedCand(), print(), pat::L1MuonMatcher::produce(), HLTL1MuonSelector::produce(), L2MuonSeedGenerator::produce(), TriggerMatcherToHLTDebug::produce(), setQuality(), useInDiMuonTrigger(), and useInSingleMuonTrigger().
|
inlineprotected |
Definition at line 238 of file L1MuGMTCand.h.
References submitPVResolutionJobs::count, m_dataWord, gpuClustering::pixelStatus::mask, and command_line::start.
Referenced by charge(), charge_valid(), empty(), etaIndex(), L1MuGMTExtendedCand::getDTCSCIndex(), L1MuGMTExtendedCand::getRPCIndex(), L1MuGMTExtendedCand::isFwd(), isol(), L1MuGMTExtendedCand::isRPC(), isSyncWord(), mip(), phiIndex(), ptIndex(), quality(), and sysign().
void L1MuGMTCand::reset | ( | void | ) |
reset muon candidate
Definition at line 81 of file L1MuGMTCand.cc.
References m_bx, m_dataWord, m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.
Referenced by L1MuGMTExtendedCand::reset(), and ~L1MuGMTCand().
|
inline |
set bunch crossing identifier
Definition at line 172 of file L1MuGMTCand.h.
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
set packed charge/synchronization word of muon candidate (0=POS, 1=NEG, 2=UNDEF, 3=SYNC)
Definition at line 169 of file L1MuGMTCand.h.
References SYSIGN_LENGTH, SYSIGN_START, and writeDataField().
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), and SimpleL1MuGMTCand::setCharge().
|
inline |
set packed eta-code of muon candidate
Definition at line 160 of file L1MuGMTCand.h.
References PVValHelper::eta, ETA_LENGTH, ETA_START, and writeDataField().
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), SimpleL1MuGMTCand::setEta(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
Set Eta Value (need to set type, first)
Definition at line 183 of file L1MuGMTCand.h.
References m_etaValue.
Referenced by SimpleL1MuGMTCand::setEta(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
set isolation of muon candidate
Definition at line 163 of file L1MuGMTCand.h.
References ISO_LENGTH, ISO_START, isol(), and writeDataField().
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), and L1MuGMTMerger::createRPCCand().
|
inline |
set min ionizing bit for muon candidate
Definition at line 166 of file L1MuGMTCand.h.
References mip(), MIP_LENGTH, MIP_START, and writeDataField().
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), and L1MuGMTMerger::createRPCCand().
|
inline |
set packed phi-code of muon candidate
Setters
Definition at line 151 of file L1MuGMTCand.h.
References phi, PHI_LENGTH, PHI_START, and writeDataField().
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), SimpleL1MuGMTCand::setPhi(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
Setters for physical values.
Set Phi Value
Definition at line 177 of file L1MuGMTCand.h.
References m_phiValue.
Referenced by SimpleL1MuGMTCand::setPhi(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
set packed pt-code of muon candidate
Definition at line 154 of file L1MuGMTCand.h.
References DiDispStaMuonMonitor_cfi::pt, PT_LENGTH, PT_START, and writeDataField().
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), SimpleL1MuGMTCand::setPt(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
Set Pt Value.
Definition at line 180 of file L1MuGMTCand.h.
References m_ptValue.
Referenced by SimpleL1MuGMTCand::setPt(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
set quality of muon candidate
Definition at line 157 of file L1MuGMTCand.h.
References QUAL_LENGTH, QUAL_START, quality(), and writeDataField().
Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().
|
inline |
get charge/synchronization word (0=POS, 1=NEG, 2=UNDEF, 3=SYNC)
Definition at line 111 of file L1MuGMTCand.h.
References readDataField(), SYSIGN_LENGTH, and SYSIGN_START.
Referenced by charge_valid().
|
inline |
interpretation of quality code: is the candidate to be used in a di-muon trigger ?
Definition at line 99 of file L1MuGMTCand.h.
References quality().
|
inline |
interpretation of quality code: is the candidate to be used in a single muon trigger ?
Definition at line 96 of file L1MuGMTCand.h.
References quality().
|
inlineprotected |
Definition at line 243 of file L1MuGMTCand.h.
References submitPVResolutionJobs::count, m_dataWord, gpuClustering::pixelStatus::mask, and command_line::start.
Referenced by setChargePacked(), L1MuGMTExtendedCand::setDTCSCIndex(), setEtaPacked(), L1MuGMTExtendedCand::setFwdBit(), setIsolation(), setMIP(), setPhiPacked(), setPtPacked(), setQuality(), L1MuGMTExtendedCand::setRPCBit(), and L1MuGMTExtendedCand::setRPCIndex().
|
friend |
output stream operator
|
protected |
Definition at line 213 of file L1MuGMTCand.h.
Referenced by bx(), operator!=(), operator==(), reset(), and setBx().
|
protected |
Definition at line 214 of file L1MuGMTCand.h.
Referenced by getDataWord(), operator!=(), operator==(), readDataField(), reset(), and writeDataField().
|
protected |
Definition at line 217 of file L1MuGMTCand.h.
Referenced by etaValue(), L1MuGMTCand(), print(), reset(), and setEtaValue().
|
staticprotected |
Definition at line 219 of file L1MuGMTCand.h.
Referenced by etaValue(), L1MuGMTCand(), phiValue(), print(), ptValue(), and reset().
|
protected |
Definition at line 212 of file L1MuGMTCand.h.
Referenced by name().
|
protected |
Definition at line 216 of file L1MuGMTCand.h.
Referenced by L1MuGMTCand(), phiValue(), print(), reset(), and setPhiValue().
|
protected |
Definition at line 218 of file L1MuGMTCand.h.
Referenced by L1MuGMTCand(), print(), ptValue(), reset(), and setPtValue().