1 #ifndef WIRECELL_QUANTITY 2 #define WIRECELL_QUANTITY 39 if (
this == &other)
return *
this;
45 operator double()
const {
return m_mean; }
133 os <<
"(" << q.
mean() <<
" +/- " << q.
sigma() <<
")";
175 {
return lhs.
mean() == scalar; }
178 {
return lhs.
mean() != scalar; }
181 {
return lhs.
mean() < scalar; }
184 {
return lhs.
mean() > scalar; }
188 {
return scalar == rhs.
mean(); }
191 {
return scalar != rhs.
mean(); }
194 {
return scalar < rhs.
mean(); }
197 {
return scalar > rhs.
mean(); }
bool operator!=(const Quantity &other) const
D3Vector< T > operator*(const D3Vector< T > a, T s)
Quantity & operator/=(const double &exact)
Quantity & operator+=(const double &exact)
Quantity & operator-=(const double &exact)
Quantity & operator*=(const Quantity &other)
Quantity(const double &mean)
Quantity & operator=(const Quantity &other)
std::enable_if_t< std::is_arithmetic_v< T >, T > hypot(T x, T y)
Quantity(const Quantity &other)
bool operator<(const Quantity &other) const
Quantity & operator/=(const Quantity &other)
Quantity(const double &mean, const double &sigma)
Quantity(const int &imean)
D3Vector< T > operator/(const D3Vector< T > a, T s)
std::ostream & operator<<(std::ostream &os, const WireCell::WirePlaneId &wpid)
Quantity & operator*=(const double &exact)
bool operator>(const Quantity &other) const
Quantity & operator-=(const Quantity &other)
Quantity & operator+=(const Quantity &other)
bool operator==(const Quantity &other) const
D3Vector< T > operator-(const D3Vector< T > a, const D3Vector< T > b)
D3Vector< T > operator+(const D3Vector< T > a, const D3Vector< T > b)