#include <L1Trigger/DTTrackFinder/src/L1MuDTTrackSegPhi.h>
Public Types | |
enum | TSQuality { Li, Lo, Hi, Ho, LL, HL, HH, Null } |
quality code of DTBX phi track segments More... | |
Public Member Functions | |
int | bx () const |
return bunch crossing | |
bool | empty () const |
is it an empty phi track segment? | |
bool | etaFlag () const |
return eta flag | |
L1MuDTTrackSegPhi (const L1MuDTTrackSegPhi &) | |
copy constructor | |
L1MuDTTrackSegPhi (const L1MuDTTrackSegLoc &, int phi=0, int phib=0, TSQuality quality=Null, bool tag=false, int bx=17, bool etaFlag=false) | |
constructor | |
L1MuDTTrackSegPhi (int wheel_id, int sector_id, int station_id, int phi=0, int phib=0, TSQuality quality=Null, bool tag=false, int bx=17, bool etaFlag=false) | |
constructor | |
L1MuDTTrackSegPhi () | |
default constructor | |
bool | operator!= (const L1MuDTTrackSegPhi &) const |
unequal operator | |
L1MuDTTrackSegPhi & | operator= (const L1MuDTTrackSegPhi &) |
assignment operator | |
bool | operator== (const L1MuDTTrackSegPhi &) const |
equal operator | |
int | phi () const |
return phi | |
int | phib () const |
return phib | |
double | phibValue () const |
return phib-value in global coordinates [0,2pi] | |
double | phiValue () const |
return phi-value in global coordinates [0,2pi] | |
int | quality () const |
return quality code | |
void | reset () |
reset phi track segment | |
int | sector () const |
return sector | |
void | setEtaFlag (bool flag) |
set eta flag | |
int | station () const |
return station | |
int | tag () const |
return tag (second TS tag) | |
int | wheel () const |
return wheel | |
const L1MuDTTrackSegLoc & | where () const |
return location of phi track segment | |
virtual | ~L1MuDTTrackSegPhi () |
destructor | |
Private Attributes | |
int | m_bx |
bool | m_etaFlag |
L1MuDTTrackSegLoc | m_location |
int | m_phi |
int | m_phib |
TSQuality | m_quality |
bool | m_tag |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1MuDTTrackSegPhi &) |
overload output stream operator for phi track segments | |
std::ostream & | operator<< (std::ostream &, const TSQuality &) |
overload output stream operator for phi track segment quality |
N. Neumeister CERN EP
Definition at line 38 of file L1MuDTTrackSegPhi.h.
L1MuDTTrackSegPhi::L1MuDTTrackSegPhi | ( | ) |
L1MuDTTrackSegPhi::L1MuDTTrackSegPhi | ( | int | wheel_id, | |
int | sector_id, | |||
int | station_id, | |||
int | phi = 0 , |
|||
int | phib = 0 , |
|||
TSQuality | quality = Null , |
|||
bool | tag = false , |
|||
int | bx = 17 , |
|||
bool | etaFlag = false | |||
) |
constructor
Definition at line 50 of file L1MuDTTrackSegPhi.cc.
References TestMuL1L2Filter_cff::cerr, and lat::endl().
00053 : 00054 m_location(wheel_id, sector_id, station_id), 00055 m_phi(phi), m_phib(phib), m_quality(quality), m_bx(bx), m_etaFlag(etaFlag) { 00056 00057 if ( phi < -2048 || phi > 2047 ) { 00058 cerr << "TrackSegPhi : phi out of range: " << phi << endl; 00059 } 00060 if ( phib < -512 || phib > 511 ) { 00061 cerr << "TrackSegPhi : phib out of range: " << phib << endl; 00062 } 00063 if ( quality > 7 ) { 00064 cerr << "TrackSegPhi : quality out of range: " << quality << endl; 00065 } 00066 00067 }
L1MuDTTrackSegPhi::L1MuDTTrackSegPhi | ( | const L1MuDTTrackSegLoc & | id, | |
int | phi = 0 , |
|||
int | phib = 0 , |
|||
TSQuality | quality = Null , |
|||
bool | tag = false , |
|||
int | bx = 17 , |
|||
bool | etaFlag = false | |||
) |
constructor
Definition at line 70 of file L1MuDTTrackSegPhi.cc.
References TestMuL1L2Filter_cff::cerr, and lat::endl().
00073 : 00074 m_location(id), m_phi(phi), m_phib(phib), 00075 m_quality(quality), m_tag(tag), m_bx(bx), m_etaFlag(etaFlag) { 00076 00077 if ( phi < -2048 || phi > 2047 ) { 00078 cerr << "TrackSegPhi : phi out of range: " << phi << endl; 00079 } 00080 if ( phib < -512 || phib > 511 ) { 00081 cerr << "TrackSegPhi : phib out of range: " << phib << endl; 00082 } 00083 if ( quality > 7 ) { 00084 cerr << "TrackSegPhi : quality out of range: " << quality << endl; 00085 } 00086 00087 }
L1MuDTTrackSegPhi::L1MuDTTrackSegPhi | ( | const L1MuDTTrackSegPhi & | id | ) |
L1MuDTTrackSegPhi::~L1MuDTTrackSegPhi | ( | ) | [virtual] |
int L1MuDTTrackSegPhi::bx | ( | ) | const [inline] |
return bunch crossing
Definition at line 100 of file L1MuDTTrackSegPhi.h.
References m_bx.
00100 { return m_bx; }
is it an empty phi track segment?
Definition at line 106 of file L1MuDTTrackSegPhi.h.
References m_quality, and Null.
Referenced by L1MuDTSEU::run(), and L1MuDTExtrapolationUnit::run().
bool L1MuDTTrackSegPhi::etaFlag | ( | ) | const [inline] |
return eta flag
Definition at line 103 of file L1MuDTTrackSegPhi.h.
References m_etaFlag.
00103 { return m_etaFlag; }
bool L1MuDTTrackSegPhi::operator!= | ( | const L1MuDTTrackSegPhi & | id | ) | const |
unequal operator
Definition at line 181 of file L1MuDTTrackSegPhi.cc.
References m_bx, m_location, m_phi, m_phib, and m_quality.
00181 { 00182 00183 if ( m_location != id.m_location ) return true; 00184 if ( m_phi != id.m_phi ) return true; 00185 if ( m_phib != id.m_phib ) return true; 00186 if ( m_quality != id.m_quality ) return true; 00187 if ( m_bx != id.m_bx ) return true; 00188 return false; 00189 00190 }
L1MuDTTrackSegPhi & L1MuDTTrackSegPhi::operator= | ( | const L1MuDTTrackSegPhi & | id | ) |
assignment operator
Definition at line 147 of file L1MuDTTrackSegPhi.cc.
References m_bx, m_etaFlag, m_location, m_phi, m_phib, m_quality, and m_tag.
00147 { 00148 00149 if ( this != &id ) { 00150 m_location = id.m_location; 00151 m_phi = id.m_phi; 00152 m_phib = id.m_phib; 00153 m_quality = id.m_quality; 00154 m_tag = id.m_tag; 00155 m_bx = id.m_bx; 00156 m_etaFlag = id.m_etaFlag; 00157 } 00158 return *this; 00159 00160 }
bool L1MuDTTrackSegPhi::operator== | ( | const L1MuDTTrackSegPhi & | id | ) | const |
equal operator
Definition at line 166 of file L1MuDTTrackSegPhi.cc.
References m_bx, m_location, m_phi, m_phib, and m_quality.
00166 { 00167 00168 if ( m_location != id.m_location ) return false; 00169 if ( m_phi != id.m_phi ) return false; 00170 if ( m_phib != id.m_phib ) return false; 00171 if ( m_quality != id.m_quality ) return false; 00172 if ( m_bx != id.m_bx ) return false; 00173 return true; 00174 00175 }
return phi
Definition at line 88 of file L1MuDTTrackSegPhi.h.
References m_phi.
Referenced by L1MuDTAssignmentUnit::PhiAU(), L1MuDTAssignmentUnit::phiDiff(), and L1MuDTEUX::run().
00088 { return m_phi; }
int L1MuDTTrackSegPhi::phib | ( | ) | const [inline] |
return phib
Definition at line 91 of file L1MuDTTrackSegPhi.h.
References m_phib.
Referenced by L1MuDTAssignmentUnit::getPtMethod(), L1MuDTAssignmentUnit::PhiAU(), and L1MuDTEUX::run().
00091 { return m_phib; }
double L1MuDTTrackSegPhi::phibValue | ( | ) | const |
return phib-value in global coordinates [0,2pi]
Definition at line 137 of file L1MuDTTrackSegPhi.cc.
References m_phib.
00137 { 00138 00139 return static_cast<const double>(m_phib)/512; 00140 00141 }
double L1MuDTTrackSegPhi::phiValue | ( | ) | const |
return phi-value in global coordinates [0,2pi]
Definition at line 125 of file L1MuDTTrackSegPhi.cc.
References m_location, m_phi, L1MuDTTrackSegLoc::sector(), and tmp.
00125 { 00126 00127 double tmp = static_cast<double>(m_location.sector())*M_PI/6; 00128 tmp += static_cast<const double>(m_phi)/4096; 00129 return (tmp > 0 ) ? tmp : (2*M_PI + tmp); 00130 00131 }
return quality code
Definition at line 94 of file L1MuDTTrackSegPhi.h.
References m_quality.
Referenced by L1MuDTEUX::run().
00094 { return m_quality; }
reset phi track segment
Definition at line 110 of file L1MuDTTrackSegPhi.cc.
References m_bx, m_etaFlag, m_phi, m_phib, m_quality, m_tag, and Null.
Referenced by L1MuDTSEU::reset().
00110 { 00111 00112 m_phi = 0; 00113 m_phib = 0; 00114 m_quality = Null; 00115 m_tag = false; 00116 m_bx = 0; 00117 m_etaFlag = false; 00118 00119 }
return sector
Definition at line 79 of file L1MuDTTrackSegPhi.h.
References m_location, and L1MuDTTrackSegLoc::sector().
Referenced by L1MuDTAssignmentUnit::PhiAU(), L1MuDTAssignmentUnit::phiDiff(), and L1MuDTEUX::run().
00079 { return m_location.sector(); }
set eta flag
Definition at line 109 of file L1MuDTTrackSegPhi.h.
References m_etaFlag.
00109 { m_etaFlag = flag; }
int L1MuDTTrackSegPhi::station | ( | ) | const [inline] |
return station
Definition at line 82 of file L1MuDTTrackSegPhi.h.
References m_location, and L1MuDTTrackSegLoc::station().
00082 { return m_location.station(); }
return tag (second TS tag)
Definition at line 97 of file L1MuDTTrackSegPhi.h.
References m_tag.
00097 { return m_tag; }
int L1MuDTTrackSegPhi::wheel | ( | ) | const [inline] |
return wheel
Definition at line 76 of file L1MuDTTrackSegPhi.h.
References m_location, and L1MuDTTrackSegLoc::wheel().
Referenced by L1MuDTEUX::load(), and L1MuDTEUX::run().
00076 { return m_location.wheel(); }
const L1MuDTTrackSegLoc& L1MuDTTrackSegPhi::where | ( | ) | const [inline] |
return location of phi track segment
Definition at line 85 of file L1MuDTTrackSegPhi.h.
References m_location.
00085 { return m_location; }
std::ostream& operator<< | ( | std::ostream & | , | |
const L1MuDTTrackSegPhi & | ||||
) | [friend] |
overload output stream operator for phi track segments
std::ostream& operator<< | ( | std::ostream & | , | |
const TSQuality & | ||||
) | [friend] |
overload output stream operator for phi track segment quality
int L1MuDTTrackSegPhi::m_bx [private] |
Definition at line 133 of file L1MuDTTrackSegPhi.h.
Referenced by bx(), operator!=(), operator=(), operator==(), and reset().
bool L1MuDTTrackSegPhi::m_etaFlag [private] |
Definition at line 134 of file L1MuDTTrackSegPhi.h.
Referenced by etaFlag(), operator=(), reset(), and setEtaFlag().
Definition at line 128 of file L1MuDTTrackSegPhi.h.
Referenced by operator!=(), operator=(), operator==(), phiValue(), sector(), station(), wheel(), and where().
int L1MuDTTrackSegPhi::m_phi [private] |
Definition at line 129 of file L1MuDTTrackSegPhi.h.
Referenced by operator!=(), operator=(), operator==(), phi(), phiValue(), and reset().
int L1MuDTTrackSegPhi::m_phib [private] |
Definition at line 130 of file L1MuDTTrackSegPhi.h.
Referenced by operator!=(), operator=(), operator==(), phib(), phibValue(), and reset().
TSQuality L1MuDTTrackSegPhi::m_quality [private] |
Definition at line 131 of file L1MuDTTrackSegPhi.h.
Referenced by empty(), operator!=(), operator=(), operator==(), quality(), and reset().
bool L1MuDTTrackSegPhi::m_tag [private] |