Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:23

0001 #ifndef __CINT__
0002 #ifndef CalibCoeff_H
0003 #define CalibCoeff_H
0004 
0005 /** \class CalibCoeff
0006  
0007     \brief intercalibration coefficient
0008 
0009 */
0010 class CalibCoeff {
0011 public:
0012   //! ctor
0013   CalibCoeff(const double& value = 1., const bool& isGood = false);
0014   //! dtor
0015   ~CalibCoeff();
0016 
0017   //! its value
0018   double value() const;
0019   //! the abs difference wrt prev value
0020   double difference() const;
0021   //! its status
0022   bool status() const;
0023   //! set its value and turn into good the coefficient
0024   void setValue(const double& val);
0025   //! set its value and turn into good the coefficient
0026   void setStatus(const bool& stat);
0027   //! update the value and turn into good the coefficient
0028   double operator*=(const double& var);
0029 
0030 private:
0031   //! the actual value
0032   double m_value;
0033   //! if it is good
0034   bool m_isGood;
0035   //! the difference with the previous value
0036   double m_difference;
0037 };
0038 
0039 #endif
0040 #endif