Contains the value, measurement uncertainty and statistical uncertainty of a variable.
More...
#include <Variable.hh>
Contains the value, measurement uncertainty and statistical uncertainty of a variable.
| Beam::Variable::Variable |
( |
| ) |
|
Default constructor, initilizes everything to 0.
| Beam::Variable::Variable |
( |
const double & |
val, |
|
|
const double |
merr = 0., |
|
|
const double |
serr = 0. |
|
) |
| |
Normal constructor, sets the value and uncertainties.
- Parameters
-
| val | Value of the variable |
| merr | Measurement error on the variable |
| serr | Statistical error on the variable |
| Beam::Variable::Variable |
( |
const Variable & |
var | ) |
|
| Beam::Variable::~Variable |
( |
| ) |
|
| double Beam::Variable::GetError |
( |
| ) |
const |
|
inline |
Returns the total quadratic error on the variable.
| const double& Beam::Variable::GetMError |
( |
| ) |
const |
|
inline |
Returns the measurement uncertainty of the variable.
| const double& Beam::Variable::GetSError |
( |
| ) |
const |
|
inline |
Returns the value of the variable.
| const double& Beam::Variable::GetValue |
( |
| ) |
const |
|
inline |
Returns the value of the variable.
| Beam::Variable::operator double |
( |
| ) |
const |
|
explicit |
Overloads the double cast operator.
| void Beam::Variable::SetMError |
( |
const double & |
merr | ) |
|
|
inline |
Sets the measurement uncertainty of the variable.
| void Beam::Variable::SetSError |
( |
const double & |
serr | ) |
|
|
inline |
Returns the reference to the statistical error on the variable to set it.
| void Beam::Variable::SetValue |
( |
const double & |
val | ) |
|
|
inline |
Sets the value of the variable.
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Variable & |
var |
|
) |
| |
|
friend |
Overloads the ostream operator.
| double Beam::Variable::_merr |
|
private |
Value of the measurement uncertainty.
| double Beam::Variable::_serr |
|
private |
Value of the statistical uncertainty.
| double Beam::Variable::_val |
|
private |
The documentation for this class was generated from the following files: