CMS 3D CMS Logo

CSCStationIndex.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_RPCRecHit_CSCStationIndex_h
2 #define RecoLocalMuon_RPCRecHit_CSCStationIndex_h
3 
4 class CSCStationIndex {
5 public:
7 
10 
11  int region() const { return _region; }
12  int station() const { return _station; }
13  int ring() const { return _ring; }
14  int chamber() const { return _chamber; }
15 
16  bool operator<(const CSCStationIndex& cscind) const {
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  }
27 
28 private:
29  int _region;
30  int _station;
31  int _ring;
32  int _chamber;
33 };
34 
35 #endif // RecoLocalMuon_RPCRecHit_CSCStationIndex_h
bool operator<(const CSCStationIndex &cscind) const
CSCStationIndex(int region, int station, int ring, int chamber)