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() [1/2]

DTStationIndex::DTStationIndex ( )
inline

Definition at line 6 of file DTStationIndex.h.

6 : _region(0), _wheel(0), _sector(0), _station(0) {}

◆ DTStationIndex() [2/2]

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

Definition at line 8 of file DTStationIndex.h.

Member Function Documentation

◆ operator<()

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

Definition at line 16 of file DTStationIndex.h.

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  }

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

◆ region()

int DTStationIndex::region ( ) const
inline

Definition at line 11 of file DTStationIndex.h.

11 { return _region; }

References _region.

Referenced by operator<().

◆ sector()

int DTStationIndex::sector ( void  ) const
inline

Definition at line 13 of file DTStationIndex.h.

13 { return _sector; }

References _sector.

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

◆ station()

int DTStationIndex::station ( ) const
inline

Definition at line 14 of file DTStationIndex.h.

14 { return _station; }

References _station.

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

◆ wheel()

int DTStationIndex::wheel ( ) const
inline

Definition at line 12 of file DTStationIndex.h.

12 { return _wheel; }

References _wheel.

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

Member Data Documentation

◆ _region

int DTStationIndex::_region
private

Definition at line 29 of file DTStationIndex.h.

Referenced by region().

◆ _sector

int DTStationIndex::_sector
private

Definition at line 31 of file DTStationIndex.h.

Referenced by sector().

◆ _station

int DTStationIndex::_station
private

Definition at line 32 of file DTStationIndex.h.

Referenced by station().

◆ _wheel

int DTStationIndex::_wheel
private

Definition at line 30 of file DTStationIndex.h.

Referenced by wheel().

DTStationIndex::_station
int _station
Definition: DTStationIndex.h:32
DTStationIndex::region
int region() const
Definition: DTStationIndex.h:11
DTStationIndex::station
int station() const
Definition: DTStationIndex.h:14
DTStationIndex::sector
int sector() const
Definition: DTStationIndex.h:13
DTStationIndex::wheel
int wheel() const
Definition: DTStationIndex.h:12
DTStationIndex::_wheel
int _wheel
Definition: DTStationIndex.h:30
DTStationIndex::_region
int _region
Definition: DTStationIndex.h:29
DTStationIndex::_sector
int _sector
Definition: DTStationIndex.h:31