CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Friends
L1MuDTTrackSegEta Class Reference

#include <L1MuDTTrackSegEta.h>

Public Member Functions

int bx () const
 return bunch crossing More...
 
bool empty () const
 is it an empty eta track segment? More...
 
 L1MuDTTrackSegEta ()
 default constructor More...
 
 L1MuDTTrackSegEta (int wheel_id, int sector_id, int station_id, int position=0, int quality=0, int bx=17)
 constructor More...
 
 L1MuDTTrackSegEta (const L1MuDTTrackSegLoc &, int position=0, int quality=0, int bx=17)
 constructor More...
 
 L1MuDTTrackSegEta (const L1MuDTTrackSegEta &)
 copy constructor More...
 
bool operator!= (const L1MuDTTrackSegEta &) const
 unequal operator More...
 
L1MuDTTrackSegEtaoperator= (const L1MuDTTrackSegEta &)
 assignment operator More...
 
bool operator== (const L1MuDTTrackSegEta &) const
 equal operator More...
 
unsigned int position () const
 return position More...
 
unsigned int quality () const
 return quality code More...
 
void reset ()
 reset eta track segment More...
 
int sector () const
 return sector More...
 
int station () const
 return station More...
 
int wheel () const
 return wheel More...
 
const L1MuDTTrackSegLocwhere () const
 return location of eta track segment More...
 
virtual ~L1MuDTTrackSegEta ()
 destructor More...
 

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 More...
 

Detailed Description

ETA Track Segment

Date:
2007/02/27 11:44:00
Revision:
1.2

N. Neumeister CERN EP

Definition at line 38 of file L1MuDTTrackSegEta.h.

Constructor & Destructor Documentation

L1MuDTTrackSegEta::L1MuDTTrackSegEta ( )

default constructor

Definition at line 47 of file L1MuDTTrackSegEta.cc.

47  :
48  m_location(), m_position(0), m_quality(0), m_bx(0) {}
unsigned int m_position
unsigned int m_quality
L1MuDTTrackSegLoc m_location
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.

52  :
53  m_location(wheel_id, sector_id, station_id),
55 
56 }
unsigned int quality() const
return quality code
unsigned int m_position
int bx() const
return bunch crossing
unsigned int m_quality
L1MuDTTrackSegLoc m_location
L1MuDTTrackSegEta::L1MuDTTrackSegEta ( const L1MuDTTrackSegLoc id,
int  position = 0,
int  quality = 0,
int  bx = 17 
)

constructor

Definition at line 59 of file L1MuDTTrackSegEta.cc.

60  :
62 
63 }
unsigned int quality() const
return quality code
unsigned int m_position
int bx() const
return bunch crossing
unsigned int m_quality
L1MuDTTrackSegLoc m_location
L1MuDTTrackSegEta::L1MuDTTrackSegEta ( const L1MuDTTrackSegEta id)

copy constructor

Definition at line 66 of file L1MuDTTrackSegEta.cc.

66  :
unsigned int m_position
unsigned int m_quality
L1MuDTTrackSegLoc m_location
L1MuDTTrackSegEta::~L1MuDTTrackSegEta ( )
virtual

destructor

Definition at line 75 of file L1MuDTTrackSegEta.cc.

75 {}

Member Function Documentation

int L1MuDTTrackSegEta::bx ( ) const
inline

return bunch crossing

Definition at line 81 of file L1MuDTTrackSegEta.h.

References m_bx.

81 { return m_bx; }
bool L1MuDTTrackSegEta::empty ( void  ) const
inline

is it an empty eta track segment?

Definition at line 84 of file L1MuDTTrackSegEta.h.

References m_position.

84 { return m_position == 0; }
unsigned int m_position
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.

127  {
128 
129  if ( m_location != id.m_location ) return true;
130  if ( m_position != id.m_position ) return true;
131  if ( m_quality != id.m_quality ) return true;
132  if ( m_bx != id.m_bx ) return true;
133  return false;
134 
135 }
unsigned int m_position
unsigned int m_quality
L1MuDTTrackSegLoc m_location
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.

97  {
98 
99  if ( this != &id ) {
100  m_location = id.m_location;
101  m_position = id.m_position;
102  m_quality = id.m_quality;
103  m_bx = id.m_bx;
104  }
105  return *this;
106 
107 }
unsigned int m_position
unsigned int m_quality
L1MuDTTrackSegLoc m_location
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.

113  {
114 
115  if ( m_location != id.m_location ) return false;
116  if ( m_position != id.m_position ) return false;
117  if ( m_quality != id.m_quality ) return false;
118  if ( m_bx != id.m_bx ) return false;
119  return true;
120 
121 }
unsigned int m_position
unsigned int m_quality
L1MuDTTrackSegLoc m_location
unsigned int L1MuDTTrackSegEta::position ( ) const
inline

return position

Definition at line 75 of file L1MuDTTrackSegEta.h.

References m_position.

75 { return m_position; }
unsigned int m_position
unsigned int L1MuDTTrackSegEta::quality ( void  ) const
inline

return quality code

Definition at line 78 of file L1MuDTTrackSegEta.h.

References m_quality.

78 { return m_quality; }
unsigned int m_quality
void L1MuDTTrackSegEta::reset ( void  )

reset eta track segment

Definition at line 85 of file L1MuDTTrackSegEta.cc.

References m_bx, m_position, and m_quality.

85  {
86 
87  m_position = 0;
88  m_quality = 0;
89  m_bx = 0;
90 
91 }
unsigned int m_position
unsigned int m_quality
int L1MuDTTrackSegEta::sector ( void  ) const
inline

return sector

Definition at line 66 of file L1MuDTTrackSegEta.h.

References m_location, and L1MuDTTrackSegLoc::sector().

Referenced by geometryXMLparser.DTAlignable::index().

66 { return m_location.sector(); }
int sector() const
return sector (30 deg)
L1MuDTTrackSegLoc m_location
int L1MuDTTrackSegEta::station ( ) const
inline

return station

Definition at line 69 of file L1MuDTTrackSegEta.h.

References m_location, and L1MuDTTrackSegLoc::station().

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

69 { return m_location.station(); }
int station() const
return station
L1MuDTTrackSegLoc m_location
int L1MuDTTrackSegEta::wheel ( ) const
inline

return wheel

Definition at line 63 of file L1MuDTTrackSegEta.h.

References m_location, and L1MuDTTrackSegLoc::wheel().

Referenced by geometryXMLparser.DTAlignable::index().

63 { return m_location.wheel(); }
L1MuDTTrackSegLoc m_location
int wheel() const
return wheel
const L1MuDTTrackSegLoc& L1MuDTTrackSegEta::where ( ) const
inline

return location of eta track segment

Definition at line 72 of file L1MuDTTrackSegEta.h.

References m_location.

72 { return m_location; }
L1MuDTTrackSegLoc m_location

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const L1MuDTTrackSegEta  
)
friend

output stream operator

Member Data Documentation

int L1MuDTTrackSegEta::m_bx
private

Definition at line 103 of file L1MuDTTrackSegEta.h.

Referenced by bx(), operator!=(), operator=(), operator==(), and reset().

L1MuDTTrackSegLoc L1MuDTTrackSegEta::m_location
private

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().