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
DTStationIndex::_station
int _station
Definition: DTStationIndex.h:32
DTStationIndex::region
int region() const
Definition: DTStationIndex.h:11
DTStationIndex::operator<
bool operator<(const DTStationIndex &dtind) const
Definition: DTStationIndex.h:16
DTStationIndex::station
int station() const
Definition: DTStationIndex.h:14
DTStationIndex
Definition: DTStationIndex.h:4
DTStationIndex::sector
int sector() const
Definition: DTStationIndex.h:13
DTStationIndex::wheel
int wheel() const
Definition: DTStationIndex.h:12
DTStationIndex::DTStationIndex
DTStationIndex()
Definition: DTStationIndex.h:6
DTStationIndex::DTStationIndex
DTStationIndex(int region, int wheel, int sector, int station)
Definition: DTStationIndex.h:8
DTStationIndex::_wheel
int _wheel
Definition: DTStationIndex.h:30
DTStationIndex::_region
int _region
Definition: DTStationIndex.h:29
DTStationIndex::_sector
int _sector
Definition: DTStationIndex.h:31