CMS 3D CMS Logo

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

#include <GEMCSCSegmentBuilder.h>

Public Member Functions

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

Private Attributes

int _chamber
 
int _layer
 
int _region
 
int _ring
 
int _station
 

Detailed Description

Definition at line 32 of file GEMCSCSegmentBuilder.h.

Constructor & Destructor Documentation

CSCStationIndex::CSCStationIndex ( )
inline
CSCStationIndex::CSCStationIndex ( int  region,
int  station,
int  ring,
int  chamber,
int  layer 
)
inline
CSCStationIndex::~CSCStationIndex ( )
inline

Definition at line 37 of file GEMCSCSegmentBuilder.h.

37 {}
CSCStationIndex::CSCStationIndex ( )
inline
CSCStationIndex::CSCStationIndex ( int  region,
int  station,
int  ring,
int  chamber 
)
inline

Member Function Documentation

int CSCStationIndex::chamber ( ) const
inline

Definition at line 14 of file CSCStationIndex.h.

References _chamber.

Referenced by geometryXMLparser.CSCAlignable::index().

14 { return _chamber; }
int CSCStationIndex::chamber ( ) const
inline
int CSCStationIndex::layer ( ) const
inline
bool CSCStationIndex::operator< ( const CSCStationIndex cscind) const
inline

Definition at line 16 of file CSCStationIndex.h.

References _chamber, _region, _ring, _station, chamber(), region(), ring(), and station().

16  {
17  if (cscind.region() != this->region())
18  return cscind.region() < this->region();
19  else if (cscind.station() != this->station())
20  return cscind.station() < this->station();
21  else if (cscind.ring() != this->ring())
22  return cscind.ring() < this->ring();
23  else if (cscind.chamber() != this->chamber())
24  return cscind.chamber() < this->chamber();
25  return false;
26  }
bool CSCStationIndex::operator< ( const CSCStationIndex cscind) const
inline

Definition at line 45 of file GEMCSCSegmentBuilder.h.

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

45  {
46  if (cscind.region() != this->region())
47  return cscind.region() < this->region();
48  else if (cscind.station() != this->station())
49  return cscind.station() < this->station();
50  else if (cscind.ring() != this->ring())
51  return cscind.ring() < this->ring();
52  else if (cscind.chamber() != this->chamber())
53  return cscind.chamber() < this->chamber();
54  else if (cscind.layer() != this->layer())
55  return cscind.layer() < this->layer();
56  return false;
57  }
int CSCStationIndex::region ( ) const
inline

Definition at line 11 of file CSCStationIndex.h.

References _region.

11 { return _region; }
int CSCStationIndex::region ( ) const
inline

Definition at line 39 of file GEMCSCSegmentBuilder.h.

References _region.

Referenced by GEMCSCSegmentBuilder::LinkGEMRollsToCSCChamberIndex(), and operator<().

39 { return _region; }
int CSCStationIndex::ring ( ) const
inline

Definition at line 13 of file CSCStationIndex.h.

References _ring.

Referenced by geometryXMLparser.CSCAlignable::index().

13 { return _ring; }
int CSCStationIndex::ring ( ) const
inline
int CSCStationIndex::station ( ) const
inline
int CSCStationIndex::station ( ) const
inline

Member Data Documentation

int CSCStationIndex::_chamber
private

Definition at line 63 of file GEMCSCSegmentBuilder.h.

Referenced by chamber(), and operator<().

int CSCStationIndex::_layer
private

Definition at line 64 of file GEMCSCSegmentBuilder.h.

Referenced by layer().

int CSCStationIndex::_region
private

Definition at line 60 of file GEMCSCSegmentBuilder.h.

Referenced by operator<(), and region().

int CSCStationIndex::_ring
private

Definition at line 62 of file GEMCSCSegmentBuilder.h.

Referenced by operator<(), and ring().

int CSCStationIndex::_station
private

Definition at line 61 of file GEMCSCSegmentBuilder.h.

Referenced by operator<(), and station().