14 #ifndef L1MUDT_TRACK_H
15 #define L1MUDT_TRACK_H
62 void reset()
override;
161 void setTSphi(
const std::vector<const L1MuDTTrackSegPhi*>& tsList);
164 void setTSeta(
const std::vector<const L1MuDTTrackSegEta*>& tsList);
179 void print()
const override;
186 unsigned short int rank_f = 0;
187 unsigned short int rank_s = 0;
189 rank_f = 10 * first->
pt() + first->
quality();
191 rank_s = 10 * second->
pt() + second->
quality();
192 return rank_f > rank_s;
void setFineEtaBit()
set fine eta bit
void print() const override
print parameters of muon candidate
std::vector< L1MuDTTrackSegEta > m_tsetaList
L1MuDTAddressArray m_addArray
const edm::EventSetup & c
int charge() const
get charge (1 bit)
~L1MuDTTrack() override
destructor
const L1MuDTTrackSegPhi & getEndTSphi() const
return end phi track segment of muon candidate
bool operator!=(const L1MuDTTrack &) const
unequal operator
void setPt(int pt)
set pt-code of muon candidate
int numberOfTSphi() const
return number of phi track segments used to form the muon candidate
static bool rank(const L1MuDTTrack *first, const L1MuDTTrack *second)
define a rank for muon candidates
L1MuDTAddressArray address() const
get address-array for this muon candidate
TrackClass tc() const
get track-class
const std::vector< L1MuDTTrackSegEta > & getTSeta() const
return all eta track segments of the muon candidate
void setTSphi(const std::vector< const L1MuDTTrackSegPhi * > &tsList)
set phi track segments used to form the muon candidate
void setTC(TrackClass tc)
set track-class of muon candidate
friend std::ostream & operator<<(std::ostream &, const L1MuDTTrack &)
output stream operator
unsigned int eta() const
get eta-code (6 bits)
const L1MuDTTrackSegEta & getStartTSeta() const
return start eta track segment of muon candidate
void setChargeValue(int charge)
Set Charge Value: -1, 1.
std::string name() const
get name of object
void setAddresses(const L1MuDTAddressArray &addr)
set relative addresses of muon candidate
unsigned int phi() const
get phi-code (8 bits)
void enable()
enable muon candidate
bool isFineHalo() const
is it fine (DT) / halo (CSC) ?
L1MuDTTrack & operator=(const L1MuDTTrack &)
assignment operator
void setEta(int eta)
set eta-code of muon candidate
U second(std::pair< T, U > const &p)
int numberOfTSeta() const
return number of eta track segments used to form the muon candidate
void setTSeta(const std::vector< const L1MuDTTrackSegEta * > &tsList)
set eta track segments used to form the muon candidate
const L1MuDTTrackSegPhi & getStartTSphi() const
return start phi track segment of muon candidate
void reset() override
reset muon candidate
unsigned eta_packed() const
return eta packed as in hardware
void setQuality(unsigned int quality)
set quality of muon candidate
const L1MuDTSecProcId & spid() const
return Sector Processor in which the muon candidate was found
void setType(unsigned type)
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
std::vector< L1MuDTTrackSegPhi > m_tsphiList
int address(int stat) const
get relative address of a given station
void disable()
disable muon candidate
unsigned int pt() const
get pt-code (5 bits)
void setPtPacked(unsigned pt)
Set Pt: 0..31.
unsigned int triggerScale(float value, const edm::EventSetup &c) const
convert pt value in GeV to pt code
L1MuDTTrack()
default constructor
unsigned int quality() const
return quality
void setPhiPacked(unsigned phi)
Set Phi: 0..143.
bool empty() const override
is it an empty muon candidate?
void setQualityPacked(unsigned qual)
Set Quality: 0..7.
bool operator==(const L1MuDTTrack &) const
equal operator
const L1MuDTTrackSegEta & getEndTSeta() const
return end eta track segment of muon candidate
void setChargeValid(bool valid)
Set Charge Valid.
const std::vector< L1MuDTTrackSegPhi > & getTSphi() const
return all phi track segments of the muon candidate
void setFineHalo(bool fh)
Set Fine / Halo.
unsigned pt_packed() const
return pt packed as in hardware
bool fineEtaBit() const
get fine eta bit
unsigned short station(int stat) const
get address of a given station [1-4]
int chargeValue() const
get charge
void setPhi(int phi)
set phi-code of muon candidate
void setName(std::string name)
set name of object
void setCharge(int charge)
set charge of muon candidate
unsigned phi_packed() const
return phi packed as in hardware