16 #ifndef L1MUDT_TRACK_H
17 #define L1MUDT_TRACK_H
161 void setTSphi(
const std::vector<const L1MuDTTrackSegPhi*>& tsList);
164 void setTSeta(
const std::vector<const L1MuDTTrackSegEta*>& tsList);
185 class Rank : std::binary_function< const L1MuDTTrack*, const L1MuDTTrack*, bool> {
188 unsigned short int rank_f = 0;
189 unsigned short int rank_s = 0;
190 if ( first ) rank_f = 10 * first->
pt() + first->
quality();
191 if ( second ) rank_s = 10 * second->
pt() + second->
quality();
192 return rank_f > rank_s;
void setFineEtaBit()
set fine eta bit
std::vector< L1MuDTTrackSegEta > m_tsetaList
L1MuDTAddressArray m_addArray
int charge() const
get charge (1 bit)
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
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 print() const
print parameters of 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
bool operator()(const L1MuDTTrack *first, const L1MuDTTrack *second) const
bool empty() const
is it an empty muon candidate?
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
virtual ~L1MuDTTrack()
destructor
void disable()
disable muon candidate
void reset()
reset 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.
void setQualityPacked(unsigned qual)
Set Quality: 0..7.
define a rank for muon candidates
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