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

CSCStationIndex::CSCStationIndex ( )
inline

◆ CSCStationIndex() [2/4]

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

◆ ~CSCStationIndex()

CSCStationIndex::~CSCStationIndex ( )
inline

Definition at line 37 of file GEMCSCSegmentBuilder.h.

37 {}

◆ CSCStationIndex() [3/4]

CSCStationIndex::CSCStationIndex ( )
inline

◆ CSCStationIndex() [4/4]

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

Member Function Documentation

◆ chamber() [1/2]

int CSCStationIndex::chamber ( ) const
inline

Definition at line 14 of file CSCStationIndex.h.

References _chamber.

Referenced by geometryXMLparser.CSCAlignable::index().

14 { return _chamber; }

◆ chamber() [2/2]

int CSCStationIndex::chamber ( ) const
inline

◆ layer()

int CSCStationIndex::layer ( ) const
inline

◆ operator<() [1/2]

bool CSCStationIndex::operator< ( const CSCStationIndex cscind) const
inline

Definition at line 16 of file CSCStationIndex.h.

References 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  }

◆ operator<() [2/2]

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  }

◆ region() [1/2]

int CSCStationIndex::region ( ) const
inline

Definition at line 11 of file CSCStationIndex.h.

References _region.

11 { return _region; }

◆ region() [2/2]

int CSCStationIndex::region ( ) const
inline

Definition at line 39 of file GEMCSCSegmentBuilder.h.

References _region.

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

39 { return _region; }

◆ ring() [1/2]

int CSCStationIndex::ring ( ) const
inline

Definition at line 13 of file CSCStationIndex.h.

References _ring.

Referenced by geometryXMLparser.CSCAlignable::index().

13 { return _ring; }

◆ ring() [2/2]

int CSCStationIndex::ring ( ) const
inline

◆ station() [1/2]

int CSCStationIndex::station ( ) const
inline

◆ station() [2/2]

int CSCStationIndex::station ( ) const
inline

Member Data Documentation

◆ _chamber

int CSCStationIndex::_chamber
private

Definition at line 63 of file GEMCSCSegmentBuilder.h.

Referenced by chamber().

◆ _layer

int CSCStationIndex::_layer
private

Definition at line 64 of file GEMCSCSegmentBuilder.h.

Referenced by layer().

◆ _region

int CSCStationIndex::_region
private

Definition at line 60 of file GEMCSCSegmentBuilder.h.

Referenced by region().

◆ _ring

int CSCStationIndex::_ring
private

Definition at line 62 of file GEMCSCSegmentBuilder.h.

Referenced by ring().

◆ _station

int CSCStationIndex::_station
private

Definition at line 61 of file GEMCSCSegmentBuilder.h.

Referenced by station().