test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
8  CSCStationIndex(int region, int station, int ring, int chamber):
9  _region(region),
10  _station(station),
11  _ring(ring),
12  _chamber(chamber){}
13 
14  int region() const {return _region;}
15  int station() const {return _station;}
16  int ring() const {return _ring;}
17  int chamber() const {return _chamber;}
18 
19  bool operator<(const CSCStationIndex& cscind) const{
20  if(cscind.region()!=this->region())
21  return cscind.region()<this->region();
22  else if(cscind.station()!=this->station())
23  return cscind.station()<this->station();
24  else if(cscind.ring()!=this->ring())
25  return cscind.ring()<this->ring();
26  else if(cscind.chamber()!=this->chamber())
27  return cscind.chamber()<this->chamber();
28  return false;
29  }
30 
31 private:
32  int _region;
33  int _station;
34  int _ring;
35  int _chamber;
36 };
37 
38 #endif // RecoLocalMuon_RPCRecHit_CSCStationIndex_h
int chamber() const
Definition: RPCEfficiency.h:74
CSCStationIndex(int region, int station, int ring, int chamber)
int station() const
Definition: RPCEfficiency.h:72
int ring() const
Definition: RPCEfficiency.h:73
bool operator<(const CSCStationIndex &cscind) const
int region() const
Definition: RPCEfficiency.h:71