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

#include <TracktoRPC.h>

Public Member Functions

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

Private Attributes

int _region
 
int _sector
 
int _station
 
int _wheel
 

Detailed Description

Definition at line 80 of file TracktoRPC.h.

Constructor & Destructor Documentation

DTStationIndex2::DTStationIndex2 ( )
inline

Definition at line 82 of file TracktoRPC.h.

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

Definition at line 83 of file TracktoRPC.h.

83  :
84  _region(region),
85  _wheel(wheel),
86  _sector(sector),
87  _station(station){}
int station() const
Definition: TracktoRPC.h:92
int sector() const
Definition: TracktoRPC.h:91
int wheel() const
Definition: TracktoRPC.h:90
int region() const
Definition: TracktoRPC.h:89
DTStationIndex2::~DTStationIndex2 ( )
inline

Definition at line 88 of file TracktoRPC.h.

88 {}

Member Function Documentation

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

Definition at line 93 of file TracktoRPC.h.

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

93  {
94  if(dtind.region()!=this->region())
95  return dtind.region()<this->region();
96  else if(dtind.wheel()!=this->wheel())
97  return dtind.wheel()<this->wheel();
98  else if(dtind.sector()!=this->sector())
99  return dtind.sector()<this->sector();
100  else if(dtind.station()!=this->station())
101  return dtind.station()<this->station();
102  return false;
103  }
int station() const
Definition: TracktoRPC.h:92
int sector() const
Definition: TracktoRPC.h:91
int wheel() const
Definition: TracktoRPC.h:90
int region() const
Definition: TracktoRPC.h:89
int DTStationIndex2::region ( ) const
inline

Definition at line 89 of file TracktoRPC.h.

References _region.

Referenced by operator<().

89 {return _region;}
int DTStationIndex2::sector ( void  ) const
inline

Definition at line 91 of file TracktoRPC.h.

References _sector.

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

91 {return _sector;}
int DTStationIndex2::station ( ) const
inline

Definition at line 92 of file TracktoRPC.h.

References _station.

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

92 {return _station;}
int DTStationIndex2::wheel ( ) const
inline

Definition at line 90 of file TracktoRPC.h.

References _wheel.

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

90 {return _wheel;}

Member Data Documentation

int DTStationIndex2::_region
private

Definition at line 106 of file TracktoRPC.h.

Referenced by region().

int DTStationIndex2::_sector
private

Definition at line 108 of file TracktoRPC.h.

Referenced by sector().

int DTStationIndex2::_station
private

Definition at line 109 of file TracktoRPC.h.

Referenced by station().

int DTStationIndex2::_wheel
private

Definition at line 107 of file TracktoRPC.h.

Referenced by wheel().