g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::histo::measurement Class Reference

Public Member Functions

 measurement ()
 
 measurement (double a_value, double a_error_plus, double a_error_minus)
 
virtual ~measurement ()
 
 measurement (const measurement &a_from)
 
measurementoperator= (const measurement &a_from)
 
double value () const
 
double error_plus () const
 
double error_minus () const
 
void set_value (double a_v)
 
void set_error_plus (double a_v)
 
void set_error_minus (double a_v)
 

Protected Attributes

double m_value
 
double m_error_plus
 
double m_error_minus
 

Detailed Description

Definition at line 20 of file dps.

Constructor & Destructor Documentation

◆ measurement() [1/3]

tools::histo::measurement::measurement ( )
inline

Definition at line 26 of file dps.

27 #ifdef TOOLS_MEM
28  mem::increment(s_class().c_str());
29 #endif
30  }

◆ measurement() [2/3]

tools::histo::measurement::measurement ( double  a_value,
double  a_error_plus,
double  a_error_minus 
)
inline

Definition at line 31 of file dps.

32  :m_value(a_value)
33  ,m_error_plus(a_error_plus)
34  ,m_error_minus(a_error_minus)
35  {
36 #ifdef TOOLS_MEM
37  mem::increment(s_class().c_str());
38 #endif
39  }

◆ ~measurement()

virtual tools::histo::measurement::~measurement ( )
inlinevirtual

Definition at line 40 of file dps.

40  {
41 #ifdef TOOLS_MEM
42  mem::decrement(s_class().c_str());
43 #endif
44  }

◆ measurement() [3/3]

tools::histo::measurement::measurement ( const measurement a_from)
inline

Definition at line 46 of file dps.

47  :m_value(a_from.m_value)
48  ,m_error_plus(a_from.m_error_plus)
49  ,m_error_minus(a_from.m_error_minus)
50  {
51 #ifdef TOOLS_MEM
52  mem::increment(s_class().c_str());
53 #endif
54  }

Member Function Documentation

◆ error_minus()

double tools::histo::measurement::error_minus ( ) const
inline

Definition at line 65 of file dps.

65 {return m_error_minus;}

◆ error_plus()

double tools::histo::measurement::error_plus ( ) const
inline

Definition at line 64 of file dps.

64 {return m_error_plus;}

◆ operator=()

measurement& tools::histo::measurement::operator= ( const measurement a_from)
inline

Definition at line 55 of file dps.

55  {
56  if(&a_from==this) return *this;
57  m_value = a_from.m_value;
58  m_error_plus = a_from.m_error_plus;
59  m_error_minus = a_from.m_error_minus;
60  return *this;
61  }

◆ set_error_minus()

void tools::histo::measurement::set_error_minus ( double  a_v)
inline

Definition at line 68 of file dps.

68 {m_error_minus = a_v;}

◆ set_error_plus()

void tools::histo::measurement::set_error_plus ( double  a_v)
inline

Definition at line 67 of file dps.

67 {m_error_plus = a_v;}

◆ set_value()

void tools::histo::measurement::set_value ( double  a_v)
inline

Definition at line 66 of file dps.

66 {m_value = a_v;}

◆ value()

double tools::histo::measurement::value ( ) const
inline

Definition at line 63 of file dps.

63 {return m_value;}

Member Data Documentation

◆ m_error_minus

double tools::histo::measurement::m_error_minus
protected

Definition at line 72 of file dps.

◆ m_error_plus

double tools::histo::measurement::m_error_plus
protected

Definition at line 71 of file dps.

◆ m_value

double tools::histo::measurement::m_value
protected

Definition at line 70 of file dps.


The documentation for this class was generated from the following file:
tools::histo::measurement::m_value
double m_value
Definition: dps:70
tools::histo::measurement::m_error_minus
double m_error_minus
Definition: dps:72
tools::histo::measurement::m_error_plus
double m_error_plus
Definition: dps:71