CMS 3D CMS Logo

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