52 m_addArray(), m_tsphiList(), m_tsetaList() {
170 if ( !tsList.empty() ) {
171 vector<const L1MuDTTrackSegPhi*>::const_iterator iter;
172 for ( iter = tsList.begin(); iter != tsList.end(); iter++ ) {
185 if ( !tsList.empty() ) {
186 vector<const L1MuDTTrackSegEta*>::const_iterator iter;
187 for ( iter = tsList.begin(); iter != tsList.end(); iter++ ) {
200 const float eps = 1.e-5;
215 if (
this != &track ) {
238 if (
m_tc != track.
m_tc )
return false;
239 if (
bx() != track.
bx() )
return false;
240 if (
phi() != track.
phi() )
return false;
241 if (
eta() != track.
eta() )
return false;
243 if (
pt() != track.
pt() )
return false;
259 if (
m_tc != track.
m_tc )
return true;
260 if (
bx() != track.
bx() )
return true;
261 if (
phi() != track.
phi() )
return true;
262 if (
eta() != track.
eta() )
return true;
264 if (
pt() != track.
pt() )
return true;
279 cout.setf(ios::showpoint);
280 cout.setf(ios::right,ios::adjustfield);
283 <<
"pt = " << setw(2) <<
pt_packed() <<
" " 289 <<
"class = " <<
tc() <<
" " 290 <<
"bx = " << setw(2) <<
bx() << endl;
291 cout <<
" found in " <<
m_spid <<
" with phi track segments :" << endl;
292 vector<L1MuDTTrackSegPhi>::const_iterator iter;
294 cout <<
" " << (*iter) << endl;
308 <<
"pt = " << setw(2) <<
id.pt_packed() <<
" " 309 <<
"charge = " << setw(2) <<
id.charge_packed() <<
" " 310 <<
"eta = " << setw(2) <<
id.eta_packed()
311 <<
" (" << setw(1) <<
id.finehalo_packed() <<
") " 312 <<
"phi = " << setw(3) <<
id.phi_packed() <<
" " 313 <<
"quality = " << setw(1) <<
id.quality_packed() <<
'\t' 314 <<
"bx = " << setw(2) <<
id.bx();
std::vector< L1MuDTTrackSegEta > m_tsetaList
L1MuDTAddressArray m_addArray
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
const L1MuScale * getPtScale() const
get the Pt scale
TrackClass tc() const
get track-class
void reset()
reset address array
unsigned charge_packed() const
return charge packed as in hardware (0=pos, 1=neg)
unsigned packedFromIdx(int idx) const override
get the packed notation of a value, check range
void setTSphi(const std::vector< const L1MuDTTrackSegPhi * > &tsList)
set phi track segments used to form the 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
unsigned int phi() const
get phi-code (8 bits)
L1MuDTTrack & operator=(const L1MuDTTrack &)
assignment operator
void setEta(int eta)
set eta-code of muon candidate
void setBx(int bx)
Set Bunch Crossing.
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 setDataWord(unsigned dataword)
Set data word.
bool empty() const override
is it an empty muon candidate?
unsigned getDataWord() const
return data word
void reset() override
reset muon candidate
unsigned eta_packed() const
return eta packed as in hardware
void print() const override
print parameters 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
unsigned finehalo_packed() const
return eta-fine (for DT) / halo (for CSC) bit
unsigned int pt() const
get pt-code (5 bits)
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
unsigned int quality_packed() const
return quality packed as in hardware
int bx() const
return bunch crossing identifier
void setEtaPacked(unsigned eta)
Set Eta: 6-bit code.
bool operator==(const L1MuDTTrack &) const
equal operator
virtual void reset()
reset
const L1MuDTTrackSegEta & getEndTSeta() const
return end eta track segment of muon candidate
void setChargeValid(bool valid)
Set Charge Valid.
virtual unsigned getPacked(float value) const =0
pack a value
unsigned pt_packed() const
return pt packed as in hardware
bool fineEtaBit() const
get fine eta bit
unsigned phi_packed() const
return phi packed as in hardware