#include <L1MuDTTrack.h>
Public Member Functions | |
L1MuDTAddressArray | address () const |
get address-array for this muon candidate More... | |
int | address (int stat) const |
get relative address of a given station More... | |
int | charge () const |
get charge (1 bit) More... | |
void | disable () |
disable muon candidate More... | |
bool | empty () const override |
is it an empty muon candidate? More... | |
void | enable () |
enable muon candidate More... | |
unsigned int | eta () const |
get eta-code (6 bits) More... | |
bool | fineEtaBit () const |
get fine eta bit More... | |
const L1MuDTTrackSegEta & | getEndTSeta () const |
return end eta track segment of muon candidate More... | |
const L1MuDTTrackSegPhi & | getEndTSphi () const |
return end phi track segment of muon candidate More... | |
const L1MuDTTrackSegEta & | getStartTSeta () const |
return start eta track segment of muon candidate More... | |
const L1MuDTTrackSegPhi & | getStartTSphi () const |
return start phi track segment of muon candidate More... | |
const std::vector< L1MuDTTrackSegEta > & | getTSeta () const |
return all eta track segments of the muon candidate More... | |
const std::vector< L1MuDTTrackSegPhi > & | getTSphi () const |
return all phi track segments of the muon candidate More... | |
L1MuDTTrack () | |
default constructor More... | |
L1MuDTTrack (const L1MuDTSecProcId &) | |
constructor More... | |
L1MuDTTrack (const L1MuDTTrack &) | |
copy constructor More... | |
std::string | name () const |
get name of object More... | |
int | numberOfTSeta () const |
return number of eta track segments used to form the muon candidate More... | |
int | numberOfTSphi () const |
return number of phi track segments used to form the muon candidate More... | |
bool | operator!= (const L1MuDTTrack &) const |
unequal operator More... | |
L1MuDTTrack & | operator= (const L1MuDTTrack &) |
assignment operator More... | |
bool | operator== (const L1MuDTTrack &) const |
equal operator More... | |
unsigned int | phi () const |
get phi-code (8 bits) More... | |
void | print () const override |
print parameters of muon candidate More... | |
unsigned int | pt () const |
get pt-code (5 bits) More... | |
void | reset () override |
reset muon candidate More... | |
void | setAddresses (const L1MuDTAddressArray &addr) |
set relative addresses of muon candidate More... | |
void | setCharge (int charge) |
set charge of muon candidate More... | |
void | setEta (int eta) |
set eta-code of muon candidate More... | |
void | setFineEtaBit () |
set fine eta bit More... | |
void | setName (std::string name) |
set name of object More... | |
void | setPhi (int phi) |
set phi-code of muon candidate More... | |
void | setPt (int pt) |
set pt-code of muon candidate More... | |
void | setQuality (unsigned int quality) |
set quality of muon candidate More... | |
void | setTC (TrackClass tc) |
set track-class of muon candidate More... | |
void | setTSeta (const std::vector< const L1MuDTTrackSegEta *> &tsList) |
set eta track segments used to form the muon candidate More... | |
void | setTSphi (const std::vector< const L1MuDTTrackSegPhi *> &tsList) |
set phi track segments used to form the muon candidate More... | |
const L1MuDTSecProcId & | spid () const |
return Sector Processor in which the muon candidate was found More... | |
TrackClass | tc () const |
get track-class More... | |
~L1MuDTTrack () override | |
destructor More... | |
Public Member Functions inherited from L1MuRegionalCand | |
int | bx () const |
return bunch crossing identifier More... | |
unsigned | charge_packed () const |
return charge packed as in hardware (0=pos, 1=neg) More... | |
unsigned | charge_valid_packed () const |
return charge valid packed as in hardware (1=valid, 0=not valid) More... | |
bool | chargeValid () const |
is the charge valid ? More... | |
int | chargeValue () const |
get charge More... | |
unsigned | eta_packed () const |
return eta packed as in hardware More... | |
float | etaValue () const |
get eta-value of muon candidate More... | |
unsigned | finehalo_packed () const |
return eta-fine (for DT) / halo (for CSC) bit More... | |
unsigned | getDataWord () const |
return data word More... | |
bool | isFineHalo () const |
is it fine (DT) / halo (CSC) ? More... | |
L1MuRegionalCand (unsigned dataword=0, int bx=0) | |
constructor from data word More... | |
L1MuRegionalCand (unsigned type_idx, unsigned phi, unsigned eta, unsigned pt, unsigned charge, unsigned ch_valid, unsigned finehalo, unsigned quality, int bx) | |
constructor from packed members More... | |
unsigned | phi_packed () const |
return phi packed as in hardware More... | |
float | phiValue () const |
get phi-value of muon candidate in radians (low edge of bin) More... | |
unsigned | pt_packed () const |
return pt packed as in hardware More... | |
float | ptValue () const |
get pt-value of muon candidate in GeV More... | |
unsigned int | quality () const |
return quality More... | |
unsigned int | quality_packed () const |
return quality packed as in hardware More... | |
void | setBx (int bx) |
Set Bunch Crossing. More... | |
void | setChargePacked (unsigned ch) |
Set Charge (0=pos, 1=neg) More... | |
void | setChargeValid (bool valid) |
Set Charge Valid. More... | |
void | setChargeValidPacked (unsigned valid) |
Set Charge Valid. More... | |
void | setChargeValue (int charge) |
Set Charge Value: -1, 1. More... | |
void | setDataWord (unsigned dataword) |
Set data word. More... | |
void | setEtaPacked (unsigned eta) |
Set Eta: 6-bit code. More... | |
void | setEtaValue (float etaVal) |
Set Eta Value (need to set type, first) More... | |
void | setFineHalo (bool fh) |
Set Fine / Halo. More... | |
void | setFineHaloPacked (unsigned fh) |
Set Fine / Halo. More... | |
void | setPhiPacked (unsigned phi) |
Set Phi: 0..143. More... | |
void | setPhiValue (float phiVal) |
Set Phi Value. More... | |
void | setPtPacked (unsigned pt) |
Set Pt: 0..31. More... | |
void | setPtValue (float ptVal) |
Set Pt Value. More... | |
void | setQualityPacked (unsigned qual) |
Set Quality: 0..7. More... | |
void | setType (unsigned type) |
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC. More... | |
unsigned | type_idx () const |
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC More... | |
virtual | ~L1MuRegionalCand () |
destructor More... | |
Static Public Member Functions | |
static bool | rank (const L1MuDTTrack *first, const L1MuDTTrack *second) |
define a rank for muon candidates More... | |
Private Attributes | |
L1MuDTAddressArray | m_addArray |
bool | m_empty |
std::string | m_name |
L1MuDTSecProcId | m_spid |
TrackClass | m_tc |
std::vector< L1MuDTTrackSegEta > | m_tsetaList |
std::vector< L1MuDTTrackSegPhi > | m_tsphiList |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1MuDTTrack &) |
output stream operator More... | |
Additional Inherited Members | |
Public Types inherited from L1MuRegionalCand | |
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 | { FINEHALO_START = 22 } |
enum | { FINEHALO_LENGTH = 1 } |
enum | { CHARGE_START = 23 } |
enum | { CHARGE_LENGTH = 1 } |
enum | { CHVALID_START = 24 } |
enum | { CHVALID_LENGTH = 1 } |
enum | { TYPE_START = 30 } |
enum | { TYPE_LENGTH = 2 } |
L1 Muon Track Candidate
N. Neumeister CERN EP J. Troconiz UAM Madrid
Definition at line 45 of file L1MuDTTrack.h.
L1MuDTTrack::L1MuDTTrack | ( | ) |
default constructor
Definition at line 48 of file L1MuDTTrack.cc.
References m_tsetaList, m_tsphiList, L1MuRegionalCand::setChargeValid(), and L1MuRegionalCand::setType().
L1MuDTTrack::L1MuDTTrack | ( | const L1MuDTSecProcId & | spid | ) |
constructor
Definition at line 64 of file L1MuDTTrack.cc.
References m_tsetaList, m_tsphiList, L1MuRegionalCand::setChargeValid(), and L1MuRegionalCand::setType().
L1MuDTTrack::L1MuDTTrack | ( | const L1MuDTTrack & | id | ) |
copy constructor
Definition at line 80 of file L1MuDTTrack.cc.
|
override |
|
inline |
get address-array for this muon candidate
Definition at line 90 of file L1MuDTTrack.h.
References m_addArray.
|
inline |
get relative address of a given station
Definition at line 93 of file L1MuDTTrack.h.
References m_addArray, and L1MuDTAddressArray::station().
|
inline |
get charge (1 bit)
Definition at line 78 of file L1MuDTTrack.h.
References L1MuRegionalCand::chargeValue().
Referenced by operator!=(), operator==(), and setCharge().
|
inline |
|
inlineoverridevirtual |
is it an empty muon candidate?
Reimplemented from L1MuRegionalCand.
Definition at line 84 of file L1MuDTTrack.h.
References m_empty.
Referenced by print().
|
inline |
enable muon candidate
Definition at line 120 of file L1MuDTTrack.h.
References m_empty, and L1MuRegionalCand::setType().
Referenced by L1MuDTAssignmentUnit::run().
|
inline |
get eta-code (6 bits)
Definition at line 72 of file L1MuDTTrack.h.
References L1MuRegionalCand::eta_packed().
Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), Jet.Jet::jetID(), operator!=(), operator==(), datamodel.Object::p4(), Jet.Jet::puJetId(), and setEta().
|
inline |
get fine eta bit
Definition at line 75 of file L1MuDTTrack.h.
References L1MuRegionalCand::isFineHalo().
Referenced by operator!=(), and operator==().
const L1MuDTTrackSegEta & L1MuDTTrack::getEndTSeta | ( | ) | const |
return end eta track segment of muon candidate
Definition at line 140 of file L1MuDTTrack.cc.
References m_tsetaList.
const L1MuDTTrackSegPhi & L1MuDTTrack::getEndTSphi | ( | ) | const |
return end phi track segment of muon candidate
Definition at line 130 of file L1MuDTTrack.cc.
References m_tsphiList.
const L1MuDTTrackSegEta & L1MuDTTrack::getStartTSeta | ( | ) | const |
return start eta track segment of muon candidate
Definition at line 135 of file L1MuDTTrack.cc.
References m_tsetaList.
const L1MuDTTrackSegPhi & L1MuDTTrack::getStartTSphi | ( | ) | const |
return start phi track segment of muon candidate
Definition at line 125 of file L1MuDTTrack.cc.
References m_tsphiList.
|
inline |
return all eta track segments of the muon candidate
Definition at line 111 of file L1MuDTTrack.h.
References m_tsetaList.
|
inline |
return all phi track segments of the muon candidate
Definition at line 102 of file L1MuDTTrack.h.
References m_tsphiList.
|
inline |
get name of object
Definition at line 63 of file L1MuDTTrack.h.
References m_name.
Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and setName().
|
inline |
return number of eta track segments used to form the muon candidate
Definition at line 99 of file L1MuDTTrack.h.
References m_tsetaList.
|
inline |
return number of phi track segments used to form the muon candidate
Definition at line 96 of file L1MuDTTrack.h.
References m_tsphiList.
bool L1MuDTTrack::operator!= | ( | const L1MuDTTrack & | track | ) | const |
unequal operator
Definition at line 218 of file L1MuDTTrack.cc.
References L1MuRegionalCand::bx(), charge(), eta(), fineEtaBit(), m_addArray, m_empty, m_spid, m_tc, phi(), pt(), L1MuRegionalCand::quality(), and HLT_2024v14_cff::track.
L1MuDTTrack & L1MuDTTrack::operator= | ( | const L1MuDTTrack & | track | ) |
assignment operator
Definition at line 171 of file L1MuDTTrack.cc.
References L1MuRegionalCand::bx(), L1MuRegionalCand::getDataWord(), m_addArray, m_empty, m_name, m_spid, m_tc, m_tsetaList, m_tsphiList, L1MuRegionalCand::setBx(), L1MuRegionalCand::setDataWord(), and HLT_2024v14_cff::track.
bool L1MuDTTrack::operator== | ( | const L1MuDTTrack & | track | ) | const |
equal operator
Definition at line 189 of file L1MuDTTrack.cc.
References L1MuRegionalCand::bx(), charge(), eta(), fineEtaBit(), m_addArray, m_empty, m_spid, m_tc, phi(), pt(), L1MuRegionalCand::quality(), and HLT_2024v14_cff::track.
|
inline |
get phi-code (8 bits)
Definition at line 69 of file L1MuDTTrack.h.
References L1MuRegionalCand::phi_packed().
Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), operator!=(), operator==(), datamodel.Object::p4(), ntupleDataFormat.Track::phiPull(), and setPhi().
|
overridevirtual |
print parameters of muon candidate
Reimplemented from L1MuRegionalCand.
Definition at line 247 of file L1MuDTTrack.cc.
References L1MuRegionalCand::bx(), L1MuRegionalCand::charge_packed(), gather_cfg::cout, empty(), L1MuRegionalCand::eta_packed(), L1MuRegionalCand::finehalo_packed(), alignBH_cfg::fixed, m_spid, m_tsphiList, L1MuRegionalCand::phi_packed(), L1MuRegionalCand::pt_packed(), L1MuRegionalCand::quality_packed(), and tc().
|
inline |
get pt-code (5 bits)
Definition at line 66 of file L1MuDTTrack.h.
References L1MuRegionalCand::pt_packed().
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), operator!=(), operator==(), datamodel.Object::p4(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), Jet.Jet::setCorrP4(), and setPt().
|
inlinestatic |
define a rank for muon candidates
Definition at line 180 of file L1MuDTTrack.h.
References dqmdumpme::first, and edm::second().
Referenced by L1MuDTMuonSorter::run(), and L1MuDTWedgeSorter::run().
|
overridevirtual |
reset muon candidate
Reimplemented from L1MuRegionalCand.
Definition at line 102 of file L1MuDTTrack.cc.
References m_addArray, m_empty, m_tc, m_tsetaList, m_tsphiList, L1MuDTAddressArray::reset(), L1MuRegionalCand::reset(), and DiLeptonHelp::UNDEF.
|
inline |
set relative addresses of muon candidate
Definition at line 156 of file L1MuDTTrack.h.
References generateTowerEtThresholdLUT::addr, and m_addArray.
Referenced by L1MuDTAssignmentUnit::run().
|
inline |
set charge of muon candidate
Definition at line 147 of file L1MuDTTrack.h.
References charge(), L1MuRegionalCand::setChargeValid(), and L1MuRegionalCand::setChargeValue().
Referenced by L1MuDTAssignmentUnit::PtAU().
void L1MuDTTrack::setEta | ( | int | eta | ) |
set eta-code of muon candidate
Definition at line 114 of file L1MuDTTrack.cc.
References eta(), L1MuSignedPacking< Bits >::packedFromIdx(), and L1MuRegionalCand::setEtaPacked().
Referenced by L1MuDTEtaProcessor::assign().
|
inline |
set fine eta bit
Definition at line 141 of file L1MuDTTrack.h.
References L1MuRegionalCand::setFineHalo().
Referenced by L1MuDTEtaProcessor::assign().
|
inline |
|
inline |
set phi-code of muon candidate
Definition at line 135 of file L1MuDTTrack.h.
References phi(), and L1MuRegionalCand::setPhiPacked().
Referenced by L1MuDTAssignmentUnit::PhiAU().
|
inline |
set pt-code of muon candidate
Definition at line 144 of file L1MuDTTrack.h.
References pt(), and L1MuRegionalCand::setPtPacked().
Referenced by L1MuDTAssignmentUnit::PtAU().
|
inline |
set quality of muon candidate
Definition at line 153 of file L1MuDTTrack.h.
References L1MuRegionalCand::quality(), and L1MuRegionalCand::setQualityPacked().
Referenced by L1MuDTAssignmentUnit::QuaAU().
|
inline |
set track-class of muon candidate
Definition at line 132 of file L1MuDTTrack.h.
Referenced by L1MuDTAssignmentUnit::run().
void L1MuDTTrack::setTSeta | ( | const std::vector< const L1MuDTTrackSegEta *> & | tsList | ) |
set eta track segments used to form the muon candidate
Definition at line 158 of file L1MuDTTrack.cc.
References m_tsetaList.
Referenced by L1MuDTEtaProcessor::assign().
void L1MuDTTrack::setTSphi | ( | const std::vector< const L1MuDTTrackSegPhi *> & | tsList | ) |
set phi track segments used to form the muon candidate
Definition at line 145 of file L1MuDTTrack.cc.
References m_tsphiList.
Referenced by L1MuDTAssignmentUnit::run().
|
inline |
return Sector Processor in which the muon candidate was found
Definition at line 87 of file L1MuDTTrack.h.
References m_spid.
|
inline |
get track-class
Definition at line 81 of file L1MuDTTrack.h.
References m_tc.
Referenced by print(), and setTC().
|
friend |
output stream operator
|
private |
Definition at line 196 of file L1MuDTTrack.h.
Referenced by address(), operator!=(), operator=(), operator==(), reset(), and setAddresses().
|
private |
Definition at line 193 of file L1MuDTTrack.h.
Referenced by disable(), empty(), enable(), operator!=(), operator=(), operator==(), and reset().
|
private |
Definition at line 192 of file L1MuDTTrack.h.
Referenced by name(), operator=(), and setName().
|
private |
Definition at line 191 of file L1MuDTTrack.h.
Referenced by operator!=(), operator=(), operator==(), print(), and spid().
|
private |
Definition at line 194 of file L1MuDTTrack.h.
Referenced by operator!=(), operator=(), operator==(), reset(), setTC(), and tc().
|
private |
Definition at line 198 of file L1MuDTTrack.h.
Referenced by getEndTSeta(), getStartTSeta(), getTSeta(), L1MuDTTrack(), numberOfTSeta(), operator=(), reset(), and setTSeta().
|
private |
Definition at line 197 of file L1MuDTTrack.h.
Referenced by getEndTSphi(), getStartTSphi(), getTSphi(), L1MuDTTrack(), numberOfTSphi(), operator=(), print(), reset(), and setTSphi().