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
L1MuDTTrackSegLoc Class Reference

#include <L1MuDTTrackSegLoc.h>

Public Member Functions

 L1MuDTTrackSegLoc ()
 default constructor More...
 
 L1MuDTTrackSegLoc (int wheel_id, int sector_id, int station_id)
 constructor More...
 
 L1MuDTTrackSegLoc (const L1MuDTTrackSegLoc &)
 copy constructor More...
 
bool operator!= (const L1MuDTTrackSegLoc &) const
 unequal operator More...
 
bool operator< (const L1MuDTTrackSegLoc &) const
 less operator More...
 
L1MuDTTrackSegLocoperator= (const L1MuDTTrackSegLoc &)
 assignment operator More...
 
bool operator== (const L1MuDTTrackSegLoc &) const
 equal operator More...
 
int sector () const
 return sector (30 deg) More...
 
int station () const
 return station More...
 
int wheel () const
 return wheel More...
 
virtual ~L1MuDTTrackSegLoc ()
 destructor More...
 

Private Attributes

int m_sector
 
int m_station
 
int m_wheel
 

Friends

std::ostream & operator<< (std::ostream &, const L1MuDTTrackSegLoc &)
 output stream operator More...
 

Detailed Description

Logical location of a Track Segment:

The location of a track segment is given by a triple (wheel, sector, station) with wheel: -3, -2, -1, 0, +1, +2, +3 ( -3, +3 : are forward- and backward-endcaps),
sector: 0-11 (30 deg sectors!)
station: 1-5 (station 5=ME13)

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

N. Neumeister CERN EP

Definition at line 44 of file L1MuDTTrackSegLoc.h.

Constructor & Destructor Documentation

L1MuDTTrackSegLoc::L1MuDTTrackSegLoc ( )

default constructor

Definition at line 45 of file L1MuDTTrackSegLoc.cc.

L1MuDTTrackSegLoc::L1MuDTTrackSegLoc ( int  wheel_id,
int  sector_id,
int  station_id 
)

constructor

Definition at line 48 of file L1MuDTTrackSegLoc.cc.

References abs.

50  :
51  m_wheel(wheel_id), m_sector(sector_id), m_station(station_id) {
52 
53  // assert(wheel_id >= -3 && wheel_id <= 3);
54  // assert(sector_id >= 0 && sector_id < 12);
55 
56  if ( abs(wheel_id) == 3 ) {
57  // assert(station_id >= 3 && station_id <= 4);
58  }
59  else {
60  // assert(station_id >= 1 && station_id <= 4);
61  }
62 
63 }
#define abs(x)
Definition: mlp_lapack.h:159
L1MuDTTrackSegLoc::L1MuDTTrackSegLoc ( const L1MuDTTrackSegLoc id)

copy constructor

Definition at line 66 of file L1MuDTTrackSegLoc.cc.

L1MuDTTrackSegLoc::~L1MuDTTrackSegLoc ( )
virtual

destructor

Definition at line 74 of file L1MuDTTrackSegLoc.cc.

74 {}

Member Function Documentation

bool L1MuDTTrackSegLoc::operator!= ( const L1MuDTTrackSegLoc id) const

unequal operator

Definition at line 112 of file L1MuDTTrackSegLoc.cc.

References m_sector, m_station, m_wheel, sector(), station(), and wheel().

112  {
113 
114  if ( m_wheel != id.wheel() ) return true;
115  if ( m_sector != id.sector() ) return true;
116  if ( m_station != id.station() ) return true;
117  return false;
118 
119 }
int sector() const
return sector (30 deg)
int station() const
return station
int wheel() const
return wheel
bool L1MuDTTrackSegLoc::operator< ( const L1MuDTTrackSegLoc id) const

less operator

Definition at line 125 of file L1MuDTTrackSegLoc.cc.

References sector(), station(), and wheel().

125  {
126 
127  if ( wheel() < id.wheel() ) return true;
128  if ( wheel() > id.wheel() ) return false;
129  if ( sector() < id.sector() ) return true;
130  if ( sector() > id.sector() ) return false;
131  if ( station() < id.station() ) return true;
132  if ( station() > id.station() ) return false;
133  return false;
134 
135 }
int sector() const
return sector (30 deg)
int station() const
return station
int wheel() const
return wheel
L1MuDTTrackSegLoc & L1MuDTTrackSegLoc::operator= ( const L1MuDTTrackSegLoc id)

assignment operator

Definition at line 84 of file L1MuDTTrackSegLoc.cc.

References m_sector, m_station, and m_wheel.

84  {
85 
86  if ( this != &id ) {
87  m_wheel = id.m_wheel;
88  m_sector = id.m_sector;
89  m_station = id.m_station;
90  }
91  return *this;
92 
93 }
bool L1MuDTTrackSegLoc::operator== ( const L1MuDTTrackSegLoc id) const

equal operator

Definition at line 99 of file L1MuDTTrackSegLoc.cc.

References m_sector, m_station, m_wheel, sector(), station(), and wheel().

99  {
100 
101  if ( m_wheel != id.wheel() ) return false;
102  if ( m_sector != id.sector() ) return false;
103  if ( m_station != id.station() ) return false;
104  return true;
105 
106 }
int sector() const
return sector (30 deg)
int station() const
return station
int wheel() const
return wheel
int L1MuDTTrackSegLoc::sector ( void  ) const
inline
int L1MuDTTrackSegLoc::station ( ) const
inline
int L1MuDTTrackSegLoc::wheel ( ) const
inline

Friends And Related Function Documentation

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

output stream operator

Member Data Documentation

int L1MuDTTrackSegLoc::m_sector
private

Definition at line 89 of file L1MuDTTrackSegLoc.h.

Referenced by operator!=(), operator=(), operator==(), and sector().

int L1MuDTTrackSegLoc::m_station
private

Definition at line 90 of file L1MuDTTrackSegLoc.h.

Referenced by operator!=(), operator=(), operator==(), and station().

int L1MuDTTrackSegLoc::m_wheel
private

Definition at line 88 of file L1MuDTTrackSegLoc.h.

Referenced by operator!=(), operator=(), operator==(), and wheel().