CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTStationIndex Class Reference

#include <DTStationIndex.h>

Public Member Functions

 DTStationIndex ()
 
 DTStationIndex (int region, int wheel, int sector, int station)
 
bool operator< (const DTStationIndex &dtind) const
 
int region () const
 
int sector () const
 
int station () const
 
int wheel () const
 

Private Attributes

int _region
 
int _sector
 
int _station
 
int _wheel
 

Detailed Description

Definition at line 4 of file DTStationIndex.h.

Constructor & Destructor Documentation

DTStationIndex::DTStationIndex ( )
inline

Definition at line 6 of file DTStationIndex.h.

DTStationIndex::DTStationIndex ( int  region,
int  wheel,
int  sector,
int  station 
)
inline

Definition at line 8 of file DTStationIndex.h.

Member Function Documentation

bool DTStationIndex::operator< ( const DTStationIndex dtind) const
inline

Definition at line 16 of file DTStationIndex.h.

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

16  {
17  if (dtind.region() != this->region())
18  return dtind.region() < this->region();
19  else if (dtind.wheel() != this->wheel())
20  return dtind.wheel() < this->wheel();
21  else if (dtind.sector() != this->sector())
22  return dtind.sector() < this->sector();
23  else if (dtind.station() != this->station())
24  return dtind.station() < this->station();
25  return false;
26  }
int wheel() const
int station() const
int region() const
int sector() const
int DTStationIndex::region ( ) const
inline

Definition at line 11 of file DTStationIndex.h.

References _region.

Referenced by operator<().

11 { return _region; }
int DTStationIndex::sector ( void  ) const
inline

Definition at line 13 of file DTStationIndex.h.

References _sector.

Referenced by geometryXMLparser.DTAlignable::index(), and operator<().

13 { return _sector; }
int DTStationIndex::station ( ) const
inline
int DTStationIndex::wheel ( ) const
inline

Definition at line 12 of file DTStationIndex.h.

References _wheel.

Referenced by geometryXMLparser.DTAlignable::index(), and operator<().

12 { return _wheel; }

Member Data Documentation

int DTStationIndex::_region
private

Definition at line 29 of file DTStationIndex.h.

Referenced by region().

int DTStationIndex::_sector
private

Definition at line 31 of file DTStationIndex.h.

Referenced by sector().

int DTStationIndex::_station
private

Definition at line 32 of file DTStationIndex.h.

Referenced by station().

int DTStationIndex::_wheel
private

Definition at line 30 of file DTStationIndex.h.

Referenced by wheel().