#include <L1Trigger/DTTrackFinder/src/L1MuDTTrackSegEta.h>
Public Member Functions | |
int | bx () const |
return bunch crossing | |
bool | empty () const |
is it an empty eta track segment? | |
L1MuDTTrackSegEta (const L1MuDTTrackSegEta &) | |
copy constructor | |
L1MuDTTrackSegEta (const L1MuDTTrackSegLoc &, int position=0, int quality=0, int bx=17) | |
constructor | |
L1MuDTTrackSegEta (int wheel_id, int sector_id, int station_id, int position=0, int quality=0, int bx=17) | |
constructor | |
L1MuDTTrackSegEta () | |
default constructor | |
bool | operator!= (const L1MuDTTrackSegEta &) const |
unequal operator | |
L1MuDTTrackSegEta & | operator= (const L1MuDTTrackSegEta &) |
assignment operator | |
bool | operator== (const L1MuDTTrackSegEta &) const |
equal operator | |
unsigned int | position () const |
return position | |
unsigned int | quality () const |
return quality code | |
void | reset () |
reset eta track segment | |
int | sector () const |
return sector | |
int | station () const |
return station | |
int | wheel () const |
return wheel | |
const L1MuDTTrackSegLoc & | where () const |
return location of eta track segment | |
virtual | ~L1MuDTTrackSegEta () |
destructor | |
Private Attributes | |
int | m_bx |
L1MuDTTrackSegLoc | m_location |
unsigned int | m_position |
unsigned int | m_quality |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1MuDTTrackSegEta &) |
output stream operator |
N. Neumeister CERN EP
Definition at line 38 of file L1MuDTTrackSegEta.h.
L1MuDTTrackSegEta::L1MuDTTrackSegEta | ( | ) |
default constructor
Definition at line 47 of file L1MuDTTrackSegEta.cc.
00047 : 00048 m_location(), m_position(0), m_quality(0), m_bx(0) {}
L1MuDTTrackSegEta::L1MuDTTrackSegEta | ( | int | wheel_id, | |
int | sector_id, | |||
int | station_id, | |||
int | position = 0 , |
|||
int | quality = 0 , |
|||
int | bx = 17 | |||
) |
constructor
Definition at line 51 of file L1MuDTTrackSegEta.cc.
00052 : 00053 m_location(wheel_id, sector_id, station_id), 00054 m_position(pos), m_quality(quality), m_bx(bx) { 00055 00056 }
L1MuDTTrackSegEta::L1MuDTTrackSegEta | ( | const L1MuDTTrackSegLoc & | id, | |
int | position = 0 , |
|||
int | quality = 0 , |
|||
int | bx = 17 | |||
) |
constructor
Definition at line 59 of file L1MuDTTrackSegEta.cc.
00060 : 00061 m_location(id), m_position(pos), m_quality(quality), m_bx(bx) { 00062 00063 }
L1MuDTTrackSegEta::L1MuDTTrackSegEta | ( | const L1MuDTTrackSegEta & | id | ) |
copy constructor
Definition at line 66 of file L1MuDTTrackSegEta.cc.
00066 : 00067 m_location(id.m_location), 00068 m_position(id.m_position), m_quality(id.m_quality), m_bx(id.m_bx) {}
L1MuDTTrackSegEta::~L1MuDTTrackSegEta | ( | ) | [virtual] |
int L1MuDTTrackSegEta::bx | ( | ) | const [inline] |
return bunch crossing
Definition at line 81 of file L1MuDTTrackSegEta.h.
References m_bx.
00081 { return m_bx; }
is it an empty eta track segment?
Definition at line 84 of file L1MuDTTrackSegEta.h.
References m_position.
00084 { return m_position == 0; }
bool L1MuDTTrackSegEta::operator!= | ( | const L1MuDTTrackSegEta & | id | ) | const |
unequal operator
Definition at line 127 of file L1MuDTTrackSegEta.cc.
References m_bx, m_location, m_position, and m_quality.
00127 { 00128 00129 if ( m_location != id.m_location ) return true; 00130 if ( m_position != id.m_position ) return true; 00131 if ( m_quality != id.m_quality ) return true; 00132 if ( m_bx != id.m_bx ) return true; 00133 return false; 00134 00135 }
L1MuDTTrackSegEta & L1MuDTTrackSegEta::operator= | ( | const L1MuDTTrackSegEta & | id | ) |
assignment operator
Definition at line 97 of file L1MuDTTrackSegEta.cc.
References m_bx, m_location, m_position, and m_quality.
00097 { 00098 00099 if ( this != &id ) { 00100 m_location = id.m_location; 00101 m_position = id.m_position; 00102 m_quality = id.m_quality; 00103 m_bx = id.m_bx; 00104 } 00105 return *this; 00106 00107 }
bool L1MuDTTrackSegEta::operator== | ( | const L1MuDTTrackSegEta & | id | ) | const |
equal operator
Definition at line 113 of file L1MuDTTrackSegEta.cc.
References m_bx, m_location, m_position, and m_quality.
00113 { 00114 00115 if ( m_location != id.m_location ) return false; 00116 if ( m_position != id.m_position ) return false; 00117 if ( m_quality != id.m_quality ) return false; 00118 if ( m_bx != id.m_bx ) return false; 00119 return true; 00120 00121 }
return position
Definition at line 75 of file L1MuDTTrackSegEta.h.
References m_position.
Referenced by operator<<().
00075 { return m_position; }
return quality code
Definition at line 78 of file L1MuDTTrackSegEta.h.
References m_quality.
Referenced by operator<<().
00078 { return m_quality; }
reset eta track segment
Definition at line 85 of file L1MuDTTrackSegEta.cc.
References m_bx, m_position, and m_quality.
00085 { 00086 00087 m_position = 0; 00088 m_quality = 0; 00089 m_bx = 0; 00090 00091 }
return sector
Definition at line 66 of file L1MuDTTrackSegEta.h.
References m_location, and L1MuDTTrackSegLoc::sector().
00066 { return m_location.sector(); }
int L1MuDTTrackSegEta::station | ( | ) | const [inline] |
return station
Definition at line 69 of file L1MuDTTrackSegEta.h.
References m_location, and L1MuDTTrackSegLoc::station().
00069 { return m_location.station(); }
int L1MuDTTrackSegEta::wheel | ( | ) | const [inline] |
return wheel
Definition at line 63 of file L1MuDTTrackSegEta.h.
References m_location, and L1MuDTTrackSegLoc::wheel().
00063 { return m_location.wheel(); }
const L1MuDTTrackSegLoc& L1MuDTTrackSegEta::where | ( | ) | const [inline] |
return location of eta track segment
Definition at line 72 of file L1MuDTTrackSegEta.h.
References m_location.
00072 { return m_location; }
std::ostream& operator<< | ( | std::ostream & | , | |
const L1MuDTTrackSegEta & | ||||
) | [friend] |
output stream operator
int L1MuDTTrackSegEta::m_bx [private] |
Definition at line 103 of file L1MuDTTrackSegEta.h.
Referenced by bx(), operator!=(), operator=(), operator==(), and reset().
Definition at line 100 of file L1MuDTTrackSegEta.h.
Referenced by operator!=(), operator=(), operator==(), sector(), station(), wheel(), and where().
unsigned int L1MuDTTrackSegEta::m_position [private] |
Definition at line 101 of file L1MuDTTrackSegEta.h.
Referenced by empty(), operator!=(), operator=(), operator==(), position(), and reset().
unsigned int L1MuDTTrackSegEta::m_quality [private] |
Definition at line 102 of file L1MuDTTrackSegEta.h.
Referenced by operator!=(), operator=(), operator==(), quality(), and reset().