intercalibration coefficient More...
#include <CalibCoeff.h>
Public Member Functions | |
CalibCoeff (const double &value=1., const bool &isGood=false) | |
ctor More... | |
double | difference () const |
the abs difference wrt prev value More... | |
double | operator*= (const double &var) |
update the value and turn into good the coefficient More... | |
void | setStatus (const bool &stat) |
set its value and turn into good the coefficient More... | |
void | setValue (const double &val) |
set its value and turn into good the coefficient More... | |
bool | status () const |
its status More... | |
double | value () const |
its value More... | |
~CalibCoeff () | |
dtor More... | |
Private Attributes | |
double | m_difference |
the difference with the previous value More... | |
bool | m_isGood |
if it is good More... | |
double | m_value |
the actual value More... | |
intercalibration coefficient
Definition at line 10 of file CalibCoeff.h.
CalibCoeff::CalibCoeff | ( | const double & | value = 1. , |
const bool & | isGood = false |
||
) |
ctor
Definition at line 7 of file CalibCoeff.cc.
CalibCoeff::~CalibCoeff | ( | ) |
double CalibCoeff::difference | ( | ) | const |
the abs difference wrt prev value
Definition at line 20 of file CalibCoeff.cc.
References m_difference, and m_isGood.
double CalibCoeff::operator*= | ( | const double & | var | ) |
update the value and turn into good the coefficient
Definition at line 44 of file CalibCoeff.cc.
References m_difference, m_isGood, m_value, and ALCARECOEcalPhiSym_cff::var.
void CalibCoeff::setStatus | ( | const bool & | stat | ) |
set its value and turn into good the coefficient
Definition at line 37 of file CalibCoeff.cc.
References m_isGood, and edm_modernize_messagelogger::stat.
void CalibCoeff::setValue | ( | const double & | val | ) |
set its value and turn into good the coefficient
Definition at line 28 of file CalibCoeff.cc.
References m_difference, m_isGood, m_value, and hgcalPerformanceValidation::val.
bool CalibCoeff::status | ( | ) | const |
double CalibCoeff::value | ( | ) | const |
its value
Definition at line 16 of file CalibCoeff.cc.
References m_isGood, and m_value.
Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), average.Average::average(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), and Types.vstring::insertInto().
|
private |
the difference with the previous value
Definition at line 36 of file CalibCoeff.h.
Referenced by difference(), operator*=(), and setValue().
|
private |
if it is good
Definition at line 34 of file CalibCoeff.h.
Referenced by difference(), operator*=(), setStatus(), setValue(), status(), and value().
|
private |
the actual value
Definition at line 32 of file CalibCoeff.h.
Referenced by operator*=(), setValue(), and value().