#include <L1MuDTTrack.h>
Classes | |
class | Rank |
define a rank for muon candidates More... | |
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 |
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 |
print parameters of muon candidate More... | |
unsigned int | pt () const |
get pt-code (5 bits) More... | |
void | reset () |
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... | |
unsigned int | triggerScale (float value, const edm::EventSetup &c) const |
convert pt value in GeV to pt code More... | |
virtual | ~L1MuDTTrack () |
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... | |
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 49 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 63 of file L1MuDTTrack.cc.
References m_tsetaList, m_tsphiList, L1MuRegionalCand::setChargeValid(), and L1MuRegionalCand::setType().
L1MuDTTrack::L1MuDTTrack | ( | const L1MuDTTrack & | id | ) |
copy constructor
Definition at line 78 of file L1MuDTTrack.cc.
|
virtual |
|
inline |
get address-array for this muon candidate
Definition at line 96 of file L1MuDTTrack.h.
References m_addArray.
Referenced by L1MuDTEtaProcessor::receiveAddresses(), L1MuDTWedgeSorter::run(), and L1MuDTTrackFinder::run().
|
inline |
get relative address of a given station
Definition at line 99 of file L1MuDTTrack.h.
References m_addArray, and L1MuDTAddressArray::station().
|
inline |
get charge (1 bit)
Definition at line 84 of file L1MuDTTrack.h.
References L1MuRegionalCand::chargeValue().
Referenced by operator!=(), and operator==().
|
inline |
|
inlinevirtual |
is it an empty muon candidate?
Reimplemented from L1MuRegionalCand.
Definition at line 90 of file L1MuDTTrack.h.
References m_empty.
Referenced by print(), L1MuDTEtaProcessor::receiveAddresses(), L1MuDTWedgeSorter::run(), and L1MuDTTrackFinder::run().
|
inline |
enable muon candidate
Definition at line 126 of file L1MuDTTrack.h.
References m_empty, and L1MuRegionalCand::setType().
Referenced by L1MuDTAssignmentUnit::run().
|
inline |
get eta-code (6 bits)
Definition at line 78 of file L1MuDTTrack.h.
References L1MuRegionalCand::eta_packed().
Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), operator!=(), operator==(), and Jet.Jet::puJetId().
|
inline |
get fine eta bit
Definition at line 81 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 158 of file L1MuDTTrack.cc.
References m_tsetaList.
const L1MuDTTrackSegPhi & L1MuDTTrack::getEndTSphi | ( | ) | const |
return end phi track segment of muon candidate
Definition at line 138 of file L1MuDTTrack.cc.
References m_tsphiList.
const L1MuDTTrackSegEta & L1MuDTTrack::getStartTSeta | ( | ) | const |
return start eta track segment of muon candidate
Definition at line 148 of file L1MuDTTrack.cc.
References m_tsetaList.
const L1MuDTTrackSegPhi & L1MuDTTrack::getStartTSphi | ( | ) | const |
return start phi track segment of muon candidate
Definition at line 128 of file L1MuDTTrack.cc.
References m_tsphiList.
|
inline |
return all eta track segments of the muon candidate
Definition at line 117 of file L1MuDTTrack.h.
References m_tsetaList.
|
inline |
return all phi track segments of the muon candidate
Definition at line 108 of file L1MuDTTrack.h.
References m_tsphiList.
|
inline |
get name of object
Definition at line 69 of file L1MuDTTrack.h.
References m_name.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), 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 105 of file L1MuDTTrack.h.
References m_tsetaList.
|
inline |
return number of phi track segments used to form the muon candidate
Definition at line 102 of file L1MuDTTrack.h.
References m_tsphiList.
bool L1MuDTTrack::operator!= | ( | const L1MuDTTrack & | track | ) | const |
unequal operator
Definition at line 255 of file L1MuDTTrack.cc.
References L1MuRegionalCand::bx(), charge(), eta(), fineEtaBit(), m_addArray, m_empty, m_spid, m_tc, phi(), pt(), and L1MuRegionalCand::quality().
L1MuDTTrack & L1MuDTTrack::operator= | ( | const L1MuDTTrack & | track | ) |
assignment operator
Definition at line 213 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(), and L1MuRegionalCand::setDataWord().
bool L1MuDTTrack::operator== | ( | const L1MuDTTrack & | track | ) | const |
equal operator
Definition at line 234 of file L1MuDTTrack.cc.
References L1MuRegionalCand::bx(), charge(), eta(), fineEtaBit(), m_addArray, m_empty, m_spid, m_tc, phi(), pt(), and L1MuRegionalCand::quality().
|
inline |
get phi-code (8 bits)
Definition at line 75 of file L1MuDTTrack.h.
References L1MuRegionalCand::phi_packed().
Referenced by Particle.Particle::__str__(), operator!=(), and operator==().
|
virtual |
print parameters of muon candidate
Reimplemented from L1MuRegionalCand.
Definition at line 276 of file L1MuDTTrack.cc.
References L1MuRegionalCand::bx(), L1MuRegionalCand::charge_packed(), gather_cfg::cout, empty(), L1MuRegionalCand::eta_packed(), L1MuRegionalCand::finehalo_packed(), m_spid, m_tsphiList, L1MuRegionalCand::phi_packed(), L1MuRegionalCand::pt_packed(), L1MuRegionalCand::quality_packed(), and tc().
|
inline |
get pt-code (5 bits)
Definition at line 72 of file L1MuDTTrack.h.
References L1MuRegionalCand::pt_packed().
Referenced by Particle.Particle::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), operator!=(), L1MuDTTrack::Rank::operator()(), operator==(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
|
virtual |
reset muon candidate
Reimplemented from L1MuRegionalCand.
Definition at line 99 of file L1MuDTTrack.cc.
References m_addArray, m_empty, m_tc, m_tsetaList, m_tsphiList, L1MuDTAddressArray::reset(), L1MuRegionalCand::reset(), and UNDEF.
|
inline |
set relative addresses of muon candidate
Definition at line 156 of file L1MuDTTrack.h.
References m_addArray.
Referenced by L1MuDTAssignmentUnit::run().
|
inline |
set charge of muon candidate
Definition at line 150 of file L1MuDTTrack.h.
References 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 L1MuSignedPacking< Bits >::packedFromIdx(), and L1MuRegionalCand::setEtaPacked().
Referenced by L1MuDTEtaProcessor::assign().
|
inline |
set fine eta bit
Definition at line 144 of file L1MuDTTrack.h.
References L1MuRegionalCand::setFineHalo().
Referenced by L1MuDTEtaProcessor::assign().
|
inline |
|
inline |
set phi-code of muon candidate
Definition at line 138 of file L1MuDTTrack.h.
References L1MuRegionalCand::setPhiPacked().
Referenced by L1MuDTAssignmentUnit::PhiAU().
|
inline |
set pt-code of muon candidate
Definition at line 147 of file L1MuDTTrack.h.
References L1MuRegionalCand::setPtPacked().
Referenced by L1MuDTAssignmentUnit::PtAU().
|
inline |
set quality of muon candidate
Definition at line 153 of file L1MuDTTrack.h.
References L1MuRegionalCand::setQualityPacked().
Referenced by L1MuDTAssignmentUnit::QuaAU().
|
inline |
set track-class of muon candidate
Definition at line 135 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 183 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 168 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 93 of file L1MuDTTrack.h.
References m_spid.
Referenced by L1MuDTTrackFinder::run().
|
inline |
get track-class
Definition at line 87 of file L1MuDTTrack.h.
References m_tc.
Referenced by print(), L1MuDTTrackFinder::run(), and setTC().
unsigned int L1MuDTTrack::triggerScale | ( | float | value, |
const edm::EventSetup & | c | ||
) | const |
convert pt value in GeV to pt code
Definition at line 198 of file L1MuDTTrack.cc.
References edm::EventSetup::get().
|
friend |
output stream operator
|
private |
Definition at line 202 of file L1MuDTTrack.h.
Referenced by address(), operator!=(), operator=(), operator==(), reset(), and setAddresses().
|
private |
Definition at line 199 of file L1MuDTTrack.h.
Referenced by disable(), empty(), enable(), operator!=(), operator=(), operator==(), and reset().
|
private |
Definition at line 198 of file L1MuDTTrack.h.
Referenced by name(), operator=(), and setName().
|
private |
Definition at line 197 of file L1MuDTTrack.h.
Referenced by operator!=(), operator=(), operator==(), print(), and spid().
|
private |
Definition at line 200 of file L1MuDTTrack.h.
Referenced by operator!=(), operator=(), operator==(), reset(), setTC(), and tc().
|
private |
Definition at line 204 of file L1MuDTTrack.h.
Referenced by getEndTSeta(), getStartTSeta(), getTSeta(), L1MuDTTrack(), numberOfTSeta(), operator=(), reset(), and setTSeta().
|
private |
Definition at line 203 of file L1MuDTTrack.h.
Referenced by getEndTSphi(), getStartTSphi(), getTSphi(), L1MuDTTrack(), numberOfTSphi(), operator=(), print(), reset(), and setTSphi().