54 m_addArray(), m_tsphiList(), m_tsetaList() {
67 m_spid(spid), m_name(
"L1MuDTTrack"), m_empty(
true),
69 m_addArray(), m_tsphiList(), m_tsetaList() {
82 m_spid(id.m_spid), m_name(id.m_name), m_empty(id.m_empty),
84 m_addArray(id.m_addArray),
85 m_tsphiList(id.m_tsphiList), m_tsetaList(id.m_tsetaList) {}
172 if ( !tsList.empty() ) {
173 vector<const L1MuDTTrackSegPhi*>::const_iterator iter;
174 for ( iter = tsList.begin(); iter != tsList.end(); iter++ ) {
187 if ( !tsList.empty() ) {
188 vector<const L1MuDTTrackSegEta*>::const_iterator iter;
189 for ( iter = tsList.begin(); iter != tsList.end(); iter++ ) {
202 const float eps = 1.e-5;
206 unsigned int t_Scale = theTriggerScales->getPtScale()->getPacked( value + eps );
217 if (
this != &track ) {
240 if (
m_tc != track.
m_tc )
return false;
241 if (
bx() != track.
bx() )
return false;
242 if (
phi() != track.
phi() )
return false;
243 if (
eta() != track.
eta() )
return false;
245 if (
pt() != track.
pt() )
return false;
261 if (
m_tc != track.
m_tc )
return true;
262 if (
bx() != track.
bx() )
return true;
263 if (
phi() != track.
phi() )
return true;
264 if (
eta() != track.
eta() )
return true;
266 if (
pt() != track.
pt() )
return true;
281 cout.setf(ios::showpoint);
282 cout.setf(ios::right,ios::adjustfield);
283 cout << setiosflags(ios::showpoint | ios::fixed);
285 <<
"pt = " << setw(2) <<
pt_packed() <<
" "
291 <<
"class = " <<
tc() <<
" "
292 <<
"bx = " << setw(2) <<
bx() << endl;
293 cout <<
" found in " <<
m_spid <<
" with phi track segments :" << endl;
294 vector<L1MuDTTrackSegPhi>::const_iterator iter;
296 cout <<
" " << (*iter) << endl;
309 s << setiosflags(ios::showpoint | ios::fixed)
310 <<
"pt = " << setw(2) <<
id.pt_packed() <<
" "
311 <<
"charge = " << setw(2) <<
id.charge_packed() <<
" "
312 <<
"eta = " << setw(2) <<
id.eta_packed()
313 <<
" (" << setw(1) <<
id.finehalo_packed() <<
") "
314 <<
"phi = " << setw(3) <<
id.phi_packed() <<
" "
315 <<
"quality = " << setw(1) <<
id.quality_packed() <<
'\t'
316 <<
"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