CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 ()
 
 CSCStationIndex (int region, int station, int ring, int chamber)
 
 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

Definition at line 34 of file GEMCSCSegmentBuilder.h.

34 : _region(0), _station(0), _ring(0), _chamber(0), _layer(0){};

◆ CSCStationIndex() [2/4]

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

Definition at line 35 of file GEMCSCSegmentBuilder.h.

◆ ~CSCStationIndex()

CSCStationIndex::~CSCStationIndex ( )
inline

Definition at line 37 of file GEMCSCSegmentBuilder.h.

37 {}

◆ CSCStationIndex() [3/4]

CSCStationIndex::CSCStationIndex ( )
inline

Definition at line 6 of file CSCStationIndex.h.

6 : _region(0), _station(0), _ring(0), _chamber(0) {}

◆ CSCStationIndex() [4/4]

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

Definition at line 8 of file CSCStationIndex.h.

Member Function Documentation

◆ chamber() [1/2]

int CSCStationIndex::chamber ( ) const
inline

Definition at line 14 of file CSCStationIndex.h.

14 { return _chamber; }

References _chamber.

Referenced by geometryXMLparser.CSCAlignable::index().

◆ 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.

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  }

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

◆ operator<() [2/2]

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

Definition at line 45 of file GEMCSCSegmentBuilder.h.

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  }

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

◆ region() [1/2]

int CSCStationIndex::region ( ) const
inline

Definition at line 11 of file CSCStationIndex.h.

11 { return _region; }

References _region.

◆ region() [2/2]

int CSCStationIndex::region ( ) const
inline

Definition at line 39 of file GEMCSCSegmentBuilder.h.

39 { return _region; }

References _region.

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

◆ ring() [1/2]

int CSCStationIndex::ring ( ) const
inline

Definition at line 13 of file CSCStationIndex.h.

13 { return _ring; }

References _ring.

Referenced by geometryXMLparser.CSCAlignable::index().

◆ ring() [2/2]

int CSCStationIndex::ring ( ) const
inline

◆ station() [1/2]

int CSCStationIndex::station ( ) const
inline

Definition at line 12 of file CSCStationIndex.h.

12 { return _station; }

References _station.

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

◆ 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().

CSCStationIndex::station
int station() const
Definition: GEMCSCSegmentBuilder.h:40
CSCStationIndex::_station
int _station
Definition: GEMCSCSegmentBuilder.h:61
CSCStationIndex::_layer
int _layer
Definition: GEMCSCSegmentBuilder.h:64
CSCStationIndex::_chamber
int _chamber
Definition: GEMCSCSegmentBuilder.h:63
CSCStationIndex::_region
int _region
Definition: GEMCSCSegmentBuilder.h:60
CSCStationIndex::ring
int ring() const
Definition: GEMCSCSegmentBuilder.h:41
CSCStationIndex::region
int region() const
Definition: GEMCSCSegmentBuilder.h:39
CSCStationIndex::layer
int layer() const
Definition: GEMCSCSegmentBuilder.h:43
CSCStationIndex::_ring
int _ring
Definition: GEMCSCSegmentBuilder.h:62
CSCStationIndex::chamber
int chamber() const
Definition: GEMCSCSegmentBuilder.h:42