CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTStationIndex.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_RPCRecHit_DTStationIndex_h
2 #define RecoLocalMuon_RPCRecHit_DTStationIndex_h
3 
5 public:
7 
8  DTStationIndex(int region, int wheel, int sector, int station)
9  : _region(region), _wheel(wheel), _sector(sector), _station(station) {}
10 
11  int region() const { return _region; }
12  int wheel() const { return _wheel; }
13  int sector() const { return _sector; }
14  int station() const { return _station; }
15 
16  bool operator<(const DTStationIndex& dtind) const {
17  if (dtind.region() != this->region())
18  return dtind.region() < this->region();
19  else if (dtind.wheel() != this->wheel())
20  return dtind.wheel() < this->wheel();
21  else if (dtind.sector() != this->sector())
22  return dtind.sector() < this->sector();
23  else if (dtind.station() != this->station())
24  return dtind.station() < this->station();
25  return false;
26  }
27 
28 private:
29  int _region;
30  int _wheel;
31  int _sector;
32  int _station;
33 };
34 
35 #endif // RecoLocalMuon_RPCRecHit_DTStationIndex_h
int wheel() const
DTStationIndex(int region, int wheel, int sector, int station)
Definition: DTStationIndex.h:8
int station() const
int region() const
bool operator<(const DTStationIndex &dtind) const
int sector() const