/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondTools/DT/interface/DTHVAbstractCheck.h
85 строк
2 KB
Cms Build
Clang-Format
11 май 2019, 12:07
11 май 2019, 12:07
699822e
Код
Авторство
О чём код?
#ifndef DTHVAbstractCheck_H #define DTHVAbstractCheck_H /** \class DTHVAbstractCheck * * Description: * * * $Date: 2010/04/02 10:30:58 $ * $Revision: 1.2 $ * \author Paolo Ronchese INFN Padova * */ //---------------------- // Base Class Headers -- //---------------------- //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ //--------------- // C++ Headers -- //--------------- #include <map> // --------------------- // -- Class Interface -- // --------------------- class DTHVAbstractCheck { public: /** Constructor */ DTHVAbstractCheck(); /** Destructor */ virtual ~DTHVAbstractCheck(); /** Operations */ /// check HV status static DTHVAbstractCheck* getInstance(); /// check HV status typedef std::pair<long long int, float> timedMeasurement; struct flag { int a; int c; int s; }; static bool chkFlag(const DTHVAbstractCheck::flag& f); static bool compare(const DTHVAbstractCheck::flag& fl, const DTHVAbstractCheck::flag& fr); virtual DTHVAbstractCheck::flag checkCurrentStatus(int rawId, int type, float valueA, float valueC, float valueS, const std::map<int, timedMeasurement>& snapshotValues, const std::map<int, int>& aliasMap, const std::map<int, int>& layerMap) = 0; virtual void setValue(int rawId, int type, float valueA, float valueC, float valueS, const std::map<int, timedMeasurement>& snapshotValues, const std::map<int, int>& aliasMap, const std::map<int, int>& layerMap); virtual void setStatus(int rawId, int flagA, int flagC, int flagS, const std::map<int, timedMeasurement>& snapshotValues, const std::map<int, int>& aliasMap, const std::map<int, int>& layerMap); protected: static DTHVAbstractCheck* instance; private: }; #endif // DTHVAbstractCheck_H