/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Calibration/Tools/interface/CalibCoeff.h
40 строк
866 B
Cms Build
Clang-Format
16 май 2019, 15:48
16 май 2019, 15:48
99a83f0
Код
Авторство
О чём код?
#ifndef __CINT__ #ifndef CalibCoeff_H #define CalibCoeff_H /** \class CalibCoeff \brief intercalibration coefficient */ class CalibCoeff { public: //! ctor CalibCoeff(const double& value = 1., const bool& isGood = false); //! dtor ~CalibCoeff(); //! its value double value() const; //! the abs difference wrt prev value double difference() const; //! its status bool status() const; //! set its value and turn into good the coefficient void setValue(const double& val); //! set its value and turn into good the coefficient void setStatus(const bool& stat); //! update the value and turn into good the coefficient double operator*=(const double& var); private: //! the actual value double m_value; //! if it is good bool m_isGood; //! the difference with the previous value double m_difference; }; #endif #endif