34 int HistPlotVar::m_class_key = 0;
36 HistPlotVar::HistPlotVar() : RFBase()
38 m_Log.SetSource(
"HistPlotVar "+
GetName());
41 HistPlotVar::HistPlotVar(
const std::string& name,
42 const std::string& title,
43 double minval,
double maxval,
44 const std::string& unit =
"")
45 : RFBase(name, title, HistPlotVar::m_class_key++),
46 m_Min(minval), m_Max(maxval), m_Unit(unit), m_Val(0.)
48 m_Log.SetSource(
"HistPlotVar "+
GetName());
51 HistPlotVar::~HistPlotVar() {}
53 HistPlotVar& HistPlotVar::Empty(){
54 return HistPlotVar::m_Empty;
57 void HistPlotVar::operator = (
double val)
const {
61 void HistPlotVar::operator += (
double val)
const {
65 void HistPlotVar::operator -= (
double val)
const {
69 void HistPlotVar::operator *= (
double val)
const {
73 void HistPlotVar::operator /= (
double val)
const {
77 HistPlotVar::operator double()
const {
81 double HistPlotVar::GetVal()
const {
85 std::string HistPlotVar::GetUnit()
const {
89 double HistPlotVar::GetMin()
const {
93 double HistPlotVar::GetMax()
const {
97 HistPlotVar HistPlotVar::m_Empty;
std::string GetName() const
Returns object name.