/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoLocalMuon/RPCRecHit/plugins/DTStationIndex.h
35 строк
1 KB
Shahzad Malik Muzaffar
[Reco] Fixes needed to avoid exposing private headers via interface dir
17 авг 2021, 19:18
17 авг 2021, 19:18
f613a65
Код
Авторство
О чём код?
#ifndef RecoLocalMuon_RPCRecHit_DTStationIndex_h #define RecoLocalMuon_RPCRecHit_DTStationIndex_h class DTStationIndex { public: DTStationIndex() : _region(0), _wheel(0), _sector(0), _station(0) {} DTStationIndex(int region, int wheel, int sector, int station) : _region(region), _wheel(wheel), _sector(sector), _station(station) {} int region() const { return _region; } int wheel() const { return _wheel; } int sector() const { return _sector; } int station() const { return _station; } bool operator<(const DTStationIndex& dtind) const { if (dtind.region() != this->region()) return dtind.region() < this->region(); else if (dtind.wheel() != this->wheel()) return dtind.wheel() < this->wheel(); else if (dtind.sector() != this->sector()) return dtind.sector() < this->sector(); else if (dtind.station() != this->station()) return dtind.station() < this->station(); return false; } private: int _region; int _wheel; int _sector; int _station; }; #endif // RecoLocalMuon_RPCRecHit_DTStationIndex_h