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

#include <TracktoRPC.h>

Public Member Functions

int chamber () const
 
 CSCStationIndex2 ()
 
 CSCStationIndex2 (int region, int station, int ring, int chamber)
 
bool operator< (const CSCStationIndex2 &cscind) const
 
int region () const
 
int ring () const
 
int station () const
 
 ~CSCStationIndex2 ()
 

Private Attributes

int _chamber
 
int _region
 
int _ring
 
int _station
 

Detailed Description

Definition at line 122 of file TracktoRPC.h.

Constructor & Destructor Documentation

CSCStationIndex2::CSCStationIndex2 ( )
inline

Definition at line 124 of file TracktoRPC.h.

CSCStationIndex2::CSCStationIndex2 ( int  region,
int  station,
int  ring,
int  chamber 
)
inline

Definition at line 125 of file TracktoRPC.h.

125  :
126  _region(region),
127  _station(station),
128  _ring(ring),
129  _chamber(chamber){}
int ring() const
Definition: TracktoRPC.h:133
int region() const
Definition: TracktoRPC.h:131
int chamber() const
Definition: TracktoRPC.h:134
int station() const
Definition: TracktoRPC.h:132
CSCStationIndex2::~CSCStationIndex2 ( )
inline

Definition at line 130 of file TracktoRPC.h.

130 {}

Member Function Documentation

int CSCStationIndex2::chamber ( ) const
inline

Definition at line 134 of file TracktoRPC.h.

References _chamber.

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

134 {return _chamber;}
bool CSCStationIndex2::operator< ( const CSCStationIndex2 cscind) const
inline

Definition at line 135 of file TracktoRPC.h.

References chamber(), region(), ring(), and station().

135  {
136  if(cscind.region()!=this->region())
137  return cscind.region()<this->region();
138  else if(cscind.station()!=this->station())
139  return cscind.station()<this->station();
140  else if(cscind.ring()!=this->ring())
141  return cscind.ring()<this->ring();
142  else if(cscind.chamber()!=this->chamber())
143  return cscind.chamber()<this->chamber();
144  return false;
145  }
int ring() const
Definition: TracktoRPC.h:133
int region() const
Definition: TracktoRPC.h:131
int chamber() const
Definition: TracktoRPC.h:134
int station() const
Definition: TracktoRPC.h:132
int CSCStationIndex2::region ( ) const
inline

Definition at line 131 of file TracktoRPC.h.

References _region.

Referenced by operator<().

131 {return _region;}
int CSCStationIndex2::ring ( ) const
inline

Definition at line 133 of file TracktoRPC.h.

References _ring.

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

133 {return _ring;}
int CSCStationIndex2::station ( ) const
inline

Definition at line 132 of file TracktoRPC.h.

References _station.

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

132 {return _station;}

Member Data Documentation

int CSCStationIndex2::_chamber
private

Definition at line 151 of file TracktoRPC.h.

Referenced by chamber().

int CSCStationIndex2::_region
private

Definition at line 148 of file TracktoRPC.h.

Referenced by region().

int CSCStationIndex2::_ring
private

Definition at line 150 of file TracktoRPC.h.

Referenced by ring().

int CSCStationIndex2::_station
private

Definition at line 149 of file TracktoRPC.h.

Referenced by station().