52 m_addArray(), m_tsphiList(), m_tsetaList() {
65 m_spid(spid), m_name(
"L1MuDTTrack"), m_empty(
true),
67 m_addArray(), m_tsphiList(), m_tsetaList() {
80 m_spid(id.m_spid), m_name(id.m_name), m_empty(id.m_empty),
82 m_addArray(id.m_addArray),
83 m_tsphiList(id.m_tsphiList), m_tsetaList(id.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;
204 unsigned int t_Scale = theTriggerScales->getPtScale()->getPacked( value + eps );
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);
281 cout << setiosflags(ios::showpoint | ios::fixed);
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;
307 s << setiosflags(ios::showpoint | ios::fixed)
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)
const L1MuDTTrackSegPhi & getEndTSphi() const
return end phi track segment of muon candidate
virtual unsigned packedFromIdx(int idx) const
get the packed notation of a value, check range
bool operator!=(const L1MuDTTrack &) const
unequal operator
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)
void setTSphi(const std::vector< const L1MuDTTrackSegPhi * > &tsList)
set phi track segments used to form the muon candidate
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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.
void print() const
print parameters of muon candidate
unsigned getDataWord() const
return data word
unsigned eta_packed() const
return eta packed as in hardware
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
virtual ~L1MuDTTrack()
destructor
unsigned finehalo_packed() const
return eta-fine (for DT) / halo (for CSC) bit
void reset()
reset muon candidate
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.
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