/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoMuon/Navigation/interface/MuonEtaRange.h
41 строка
1 KB
Cms Build
Clang-Format
24 май 2019, 00:16
24 май 2019, 00:16
876d1ce
Код
Авторство
О чём код?
#ifndef Navigation_MuonEtaRange_H #define Navigation_MuonEtaRange_H /** \class MuonEtaRange * * a class to define eta range used in Muon Navigation * * * \author : Stefano Lacaprara - INFN Padova <stefano.lacaprara@pd.infn.it> * * Modification: * */ class MuonEtaRange { public: MuonEtaRange(); MuonEtaRange(float max, float min); MuonEtaRange(const MuonEtaRange&); ~MuonEtaRange() {} MuonEtaRange& operator=(const MuonEtaRange&); inline float min() const { return theMin; } inline float max() const { return theMax; } bool isInside(float eta, float error = 0.) const; bool isInside(const MuonEtaRange& range) const; bool isCompatible(const MuonEtaRange& range) const; MuonEtaRange add(const MuonEtaRange&) const; MuonEtaRange minRange(const MuonEtaRange&) const; MuonEtaRange subtract(const MuonEtaRange&) const; private: float theMin; float theMax; }; #include <iostream> inline std::ostream& operator<<(std::ostream& os, const MuonEtaRange& range) { os << "(" << range.min() << " : " << range.max() << ")"; return os; } #endif