CMS 3D CMS Logo

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)
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 sector() const
bool operator<(const DTStationIndex &dtind) const
int wheel() const
int region() const
DTStationIndex(int region, int wheel, int sector, int station)
Definition: DTStationIndex.h:8
int station() const