CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

L1MuDTTrackSegLoc Class Reference

#include <L1MuDTTrackSegLoc.h>

List of all members.

Public Member Functions

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

Private Attributes

int m_sector
int m_station
int m_wheel

Friends

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

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.

                                     :
  m_wheel(0), m_sector(0), m_station(0) {}
L1MuDTTrackSegLoc::L1MuDTTrackSegLoc ( int  wheel_id,
int  sector_id,
int  station_id 
)

constructor

Definition at line 48 of file L1MuDTTrackSegLoc.cc.

References abs.

                                                     : 
  m_wheel(wheel_id), m_sector(sector_id), m_station(station_id) { 
  
  //  assert(wheel_id   >= -3 && wheel_id   <=  3);
  //  assert(sector_id  >=  0 && sector_id  <  12);

  if ( abs(wheel_id) == 3 ) { 
    //    assert(station_id >= 3 && station_id <= 4);
  }
  else {
    //    assert(station_id >= 1 && station_id <= 4);
  }

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

{}

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

                                                                    {

  if ( m_wheel   != id.wheel() )   return true;
  if ( m_sector  != id.sector() )  return true;
  if ( m_station != id.station() ) return true;
  return false;
  
}
bool L1MuDTTrackSegLoc::operator< ( const L1MuDTTrackSegLoc id) const

less operator

Definition at line 125 of file L1MuDTTrackSegLoc.cc.

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

                                                                   { 

  if ( wheel()   < id.wheel()   ) return true;
  if ( wheel()   > id.wheel()   ) return false;
  if ( sector()  < id.sector()  ) return true;
  if ( sector()  > id.sector()  ) return false;
  if ( station() < id.station() ) return true;
  if ( station() > id.station() ) return false;
  return false;
  
}
L1MuDTTrackSegLoc & L1MuDTTrackSegLoc::operator= ( const L1MuDTTrackSegLoc id)

assignment operator

Definition at line 84 of file L1MuDTTrackSegLoc.cc.

References m_sector, m_station, and m_wheel.

                                                                           {

  if ( this != &id ) {
    m_wheel   = id.m_wheel;
    m_sector  = id.m_sector;
    m_station = id.m_station; 
  }
  return *this; 
  
}
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().

                                                                    { 

  if ( m_wheel   != id.wheel() )   return false;
  if ( m_sector  != id.sector() )  return false;
  if ( m_station != id.station() ) return false;
  return true;
  
}
int L1MuDTTrackSegLoc::sector ( void  ) const [inline]

return sector (30 deg)

Definition at line 66 of file L1MuDTTrackSegLoc.h.

References m_sector.

Referenced by operator!=(), operator<(), operator==(), L1MuDTTrackSegPhi::phiValue(), L1MuDTTrackSegEta::sector(), and L1MuDTTrackSegPhi::sector().

{ return m_sector; }
int L1MuDTTrackSegLoc::station ( ) const [inline]

return station

Definition at line 69 of file L1MuDTTrackSegLoc.h.

References m_station.

Referenced by operator!=(), operator<(), operator==(), L1MuDTTrackSegEta::station(), and L1MuDTTrackSegPhi::station().

{ return m_station; }
int L1MuDTTrackSegLoc::wheel ( ) const [inline]

return wheel

Definition at line 63 of file L1MuDTTrackSegLoc.h.

References m_wheel.

Referenced by operator!=(), operator<(), operator==(), L1MuDTTrackSegEta::wheel(), and L1MuDTTrackSegPhi::wheel().

{ return m_wheel; }

Friends And Related Function Documentation

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

output stream operator


Member Data Documentation

Definition at line 89 of file L1MuDTTrackSegLoc.h.

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

Definition at line 90 of file L1MuDTTrackSegLoc.h.

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

Definition at line 88 of file L1MuDTTrackSegLoc.h.

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