Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:14

0001 #ifndef RecoLocalMuon_RPCRecHit_CSCStationIndex_h
0002 #define RecoLocalMuon_RPCRecHit_CSCStationIndex_h
0003 
0004 class CSCStationIndex {
0005 public:
0006   CSCStationIndex() : _region(0), _station(0), _ring(0), _chamber(0) {}
0007 
0008   CSCStationIndex(int region, int station, int ring, int chamber)
0009       : _region(region), _station(station), _ring(ring), _chamber(chamber) {}
0010 
0011   int region() const { return _region; }
0012   int station() const { return _station; }
0013   int ring() const { return _ring; }
0014   int chamber() const { return _chamber; }
0015 
0016   bool operator<(const CSCStationIndex& cscind) const {
0017     if (cscind.region() != this->region())
0018       return cscind.region() < this->region();
0019     else if (cscind.station() != this->station())
0020       return cscind.station() < this->station();
0021     else if (cscind.ring() != this->ring())
0022       return cscind.ring() < this->ring();
0023     else if (cscind.chamber() != this->chamber())
0024       return cscind.chamber() < this->chamber();
0025     return false;
0026   }
0027 
0028 private:
0029   int _region;
0030   int _station;
0031   int _ring;
0032   int _chamber;
0033 };
0034 
0035 #endif  // RecoLocalMuon_RPCRecHit_CSCStationIndex_h