cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches

A scalar value with its uncertainty. More...

#include <CepGen/Utils/Value.h>

Public Member Functions

 Value (double val=0., double unc=0.)
 
 operator double () const
 Central value extraction.
 
double uncertainty () const
 Absolute uncertainty around the central value.
 
double relativeUncertainty () const
 Relative uncertainty around the central value.
 
bool operator< (const Value &oth) const
 Comparison operator.
 
Value operator+ (const Value &) const
 
template<typename T >
Value operator+ (T cst) const
 
Value operator- (const Value &) const
 
template<typename T >
Value operator- (T cst) const
 
Value operator* (const Value &) const
 
template<typename T >
Value operator* (T cst) const
 
Value operator/ (const Value &) const
 
template<typename T >
Value operator/ (T cst) const
 

Friends

std::ostream & operator<< (std::ostream &, const Value &)
 

Detailed Description

Definition at line 26 of file Value.h.

Constructor & Destructor Documentation

◆ Value()

Value ( double  val = 0.,
double  unc = 0. 
)
explicit

Definition at line 26 of file Value.cpp.

Member Function Documentation

◆ operator double()

operator double ( ) const

Definition at line 33 of file Value.h.

◆ operator*() [1/2]

Value operator* ( const Value oth) const

Definition at line 34 of file Value.cpp.

◆ operator*() [2/2]

template<typename T >
Value operator* ( cst) const

Definition at line 56 of file Value.h.

◆ operator+() [1/2]

Value operator+ ( const Value oth) const

Definition at line 30 of file Value.cpp.

◆ operator+() [2/2]

template<typename T >
Value operator+ ( cst) const

Definition at line 46 of file Value.h.

◆ operator-() [1/2]

Value operator- ( const Value oth) const

Definition at line 32 of file Value.cpp.

◆ operator-() [2/2]

template<typename T >
Value operator- ( cst) const

Definition at line 51 of file Value.h.

◆ operator/() [1/2]

Value operator/ ( const Value oth) const

Definition at line 39 of file Value.cpp.

◆ operator/() [2/2]

template<typename T >
Value operator/ ( cst) const

Definition at line 61 of file Value.h.

◆ operator<()

bool operator< ( const Value oth) const

Definition at line 40 of file Value.h.

◆ relativeUncertainty()

double relativeUncertainty ( ) const

Definition at line 28 of file Value.cpp.

◆ uncertainty()

double uncertainty ( ) const

Definition at line 35 of file Value.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Value value 
)
friend

Definition at line 44 of file Value.cpp.