CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CalibCoeff.h
Go to the documentation of this file.
1 #ifndef __CINT__
2 #ifndef CalibCoeff_H
3 #define CalibCoeff_H
4 
10 class CalibCoeff {
11 public:
13  CalibCoeff(const double& value = 1., const bool& isGood = false);
15  ~CalibCoeff();
16 
18  double value() const;
20  double difference() const;
22  bool status() const;
24  void setValue(const double& val);
26  void setStatus(const bool& stat);
28  double operator*=(const double& var);
29 
30 private:
32  double m_value;
34  bool m_isGood;
36  double m_difference;
37 };
38 
39 #endif
40 #endif
void setValue(const double &val)
set its value and turn into good the coefficient
Definition: CalibCoeff.cc:28
bool status() const
its status
Definition: CalibCoeff.cc:24
double value() const
its value
Definition: CalibCoeff.cc:16
double difference() const
the abs difference wrt prev value
Definition: CalibCoeff.cc:20
double operator*=(const double &var)
update the value and turn into good the coefficient
Definition: CalibCoeff.cc:44
list var
if using global norm cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal'] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() > 0) else 1.0/200.0)
double m_difference
the difference with the previous value
Definition: CalibCoeff.h:36
bool m_isGood
if it is good
Definition: CalibCoeff.h:34
CalibCoeff(const double &value=1., const bool &isGood=false)
ctor
Definition: CalibCoeff.cc:7
double m_value
the actual value
Definition: CalibCoeff.h:32
void setStatus(const bool &stat)
set its value and turn into good the coefficient
Definition: CalibCoeff.cc:37
~CalibCoeff()
dtor
Definition: CalibCoeff.cc:12
intercalibration coefficient
Definition: CalibCoeff.h:10