WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::Quantity Class Reference

#include <Quantity.h>

Public Member Functions

 Quantity ()
 
 Quantity (const double &mean, const double &sigma)
 
 Quantity (const double &mean)
 
 Quantity (const int &imean)
 
 Quantity (const Quantity &other)
 
 ~Quantity ()
 
Quantityoperator= (const Quantity &other)
 
 operator double () const
 
double mean () const
 
double sigma () const
 
Quantityoperator+= (const double &exact)
 
Quantityoperator-= (const double &exact)
 
Quantityoperator*= (const double &exact)
 
Quantityoperator/= (const double &exact)
 
Quantityoperator*= (const Quantity &other)
 
Quantityoperator/= (const Quantity &other)
 
Quantityoperator-= (const Quantity &other)
 
Quantityoperator+= (const Quantity &other)
 
bool operator< (const Quantity &other) const
 
bool operator> (const Quantity &other) const
 
bool operator== (const Quantity &other) const
 
bool operator!= (const Quantity &other) const
 

Detailed Description

Provide a quantity with a value and an uncertainty and all the little math operators.

Beware this assumes all quantities are uncorrelated!

Definition at line 16 of file Quantity.h.

Constructor & Destructor Documentation

◆ Quantity() [1/5]

WireCell::Quantity::Quantity ( )
inline

Definition at line 18 of file Quantity.h.

◆ Quantity() [2/5]

WireCell::Quantity::Quantity ( const double &  mean,
const double &  sigma 
)
inline

Definition at line 21 of file Quantity.h.

◆ Quantity() [3/5]

WireCell::Quantity::Quantity ( const double &  mean)
inline

Definition at line 24 of file Quantity.h.

◆ Quantity() [4/5]

WireCell::Quantity::Quantity ( const int &  imean)
inline

Definition at line 27 of file Quantity.h.

◆ Quantity() [5/5]

WireCell::Quantity::Quantity ( const Quantity other)
inline

Definition at line 30 of file Quantity.h.

◆ ~Quantity()

WireCell::Quantity::~Quantity ( )
inline

Definition at line 35 of file Quantity.h.

Member Function Documentation

◆ mean()

double WireCell::Quantity::mean ( ) const
inline

Definition at line 47 of file Quantity.h.

Here is the caller graph for this function:

◆ operator double()

WireCell::Quantity::operator double ( ) const
inline

Definition at line 45 of file Quantity.h.

◆ operator!=()

bool WireCell::Quantity::operator!= ( const Quantity other) const
inline

Definition at line 121 of file Quantity.h.

◆ operator*=() [1/2]

Quantity& WireCell::Quantity::operator*= ( const double &  exact)
inline

Definition at line 63 of file Quantity.h.

◆ operator*=() [2/2]

Quantity& WireCell::Quantity::operator*= ( const Quantity other)
inline

Definition at line 78 of file Quantity.h.

◆ operator+=() [1/2]

Quantity& WireCell::Quantity::operator+= ( const double &  exact)
inline

Definition at line 51 of file Quantity.h.

◆ operator+=() [2/2]

Quantity& WireCell::Quantity::operator+= ( const Quantity other)
inline

Definition at line 105 of file Quantity.h.

◆ operator-=() [1/2]

Quantity& WireCell::Quantity::operator-= ( const double &  exact)
inline

Definition at line 57 of file Quantity.h.

◆ operator-=() [2/2]

Quantity& WireCell::Quantity::operator-= ( const Quantity other)
inline

Definition at line 100 of file Quantity.h.

◆ operator/=() [1/2]

Quantity& WireCell::Quantity::operator/= ( const double &  exact)
inline

Definition at line 70 of file Quantity.h.

◆ operator/=() [2/2]

Quantity& WireCell::Quantity::operator/= ( const Quantity other)
inline

Definition at line 89 of file Quantity.h.

◆ operator<()

bool WireCell::Quantity::operator< ( const Quantity other) const
inline

Definition at line 112 of file Quantity.h.

◆ operator=()

Quantity& WireCell::Quantity::operator= ( const Quantity other)
inline

Definition at line 37 of file Quantity.h.

◆ operator==()

bool WireCell::Quantity::operator== ( const Quantity other) const
inline

Definition at line 118 of file Quantity.h.

◆ operator>()

bool WireCell::Quantity::operator> ( const Quantity other) const
inline

Definition at line 115 of file Quantity.h.

◆ sigma()

double WireCell::Quantity::sigma ( ) const
inline

Definition at line 48 of file Quantity.h.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: