intercalibration coefficient More...
#include <CalibCoeff.h>
Public Member Functions | |
CalibCoeff (const double &value=1., const bool &isGood=0) | |
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 = 0 |
||
) |
ctor
Definition at line 7 of file CalibCoeff.cc.
CalibCoeff::~CalibCoeff | ( | ) |
double CalibCoeff::difference | ( | ) | const |
the abs difference wrt prev value
Definition at line 35 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 79 of file CalibCoeff.cc.
References m_difference, m_isGood, m_value, funct::true, and MetTreeProducer::var().
void CalibCoeff::setStatus | ( | const bool & | stat | ) |
set its value and turn into good the coefficient
Definition at line 68 of file CalibCoeff.cc.
References m_isGood, and mathSSE::return().
void CalibCoeff::setValue | ( | const double & | val | ) |
set its value and turn into good the coefficient
Definition at line 55 of file CalibCoeff.cc.
References m_difference, m_isGood, m_value, mathSSE::return(), and funct::true.
Referenced by Vispa.Views.PropertyView.StringProperty::buttonClicked(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Vispa.Views.PropertyView.FileVectorProperty::buttonClicked(), Vispa.Views.PropertyView.TextEditWithButtonProperty::keyPressEvent(), and Vispa.Views.PropertyView.TextEditWithButtonProperty::setMultiline().
bool CalibCoeff::status | ( | ) | const |
double CalibCoeff::value | ( | ) | const |
its value
Definition at line 25 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(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::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(), Types.vstring::insertInto(), and Vispa.Views.PropertyView.FileProperty::labelDoubleClicked().
|
private |
the difference with the previous value
Definition at line 39 of file CalibCoeff.h.
Referenced by difference(), operator*=(), and setValue().
|
private |
if it is good
Definition at line 37 of file CalibCoeff.h.
Referenced by difference(), operator*=(), setStatus(), setValue(), status(), and value().
|
private |
the actual value
Definition at line 35 of file CalibCoeff.h.
Referenced by operator*=(), setValue(), and value().