cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator

A scalar value with its uncertainty. More...

#include <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

Member Function Documentation

◆ operator double()

operator double ( ) const

Definition at line 32 of file Value.h.

◆ operator*() [1/2]

Value operator* ( const Value & ) const

◆ operator*() [2/2]

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

Definition at line 52 of file Value.h.

◆ operator+() [1/2]

Value operator+ ( const Value & ) const

◆ operator+() [2/2]

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

Definition at line 42 of file Value.h.

◆ operator-() [1/2]

Value operator- ( const Value & ) const

◆ operator-() [2/2]

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

Definition at line 47 of file Value.h.

◆ operator/() [1/2]

Value operator/ ( const Value & ) const

◆ operator/() [2/2]

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

Definition at line 57 of file Value.h.

◆ operator<()

bool operator< ( const Value & oth) const

Definition at line 36 of file Value.h.

◆ relativeUncertainty()

double relativeUncertainty ( ) const

◆ uncertainty()

double uncertainty ( ) const

Definition at line 33 of file Value.h.

Friends And Related Symbol Documentation

◆ operator<<

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