1#ifndef __JTOOLS__JELEMENT__
2#define __JTOOLS__JELEMENT__
46 template<
class JAbscissa_t,
class JOrdinate_t>
153 template<
class JAbscissa_t,
class JOrdinate_t>
219 template<
class JAbscissa_t,
class JOrdinate_t>
285 template<
class JAbscissa_t,
class JOrdinate_t>
351 template<
class JAbscissa_t,
class JOrdinate_t>
354 public JMath< JBin1D<JAbscissa_t, JOrdinate_t> >
391 if (w2 < getZero<ordinate_type>()) {
431 if (this->
__y != getZero<ordinate_type>())
432 return this->
__u / this->
__y;
456 return sqrt(this->
__w2);
474 if (ey > getZero<ordinate_type>()) {
477 THROW(
JDivisionByZero,
"JBin1D::getEffectiveBinContent(): Invalid effective bin content (bin content error is zero)");
538 this->
__w2 *= value*value;
554 this->
__w2 /= value*value;
576 this->
__w2 = ((ey1 * ey1 * y2 * y2) +
577 (ey2 * ey2 * y1 * y1));
592 template<
class JAbscissa_t,
class JOrdinate_t>
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Base class for data structures with artithmetic capabilities.
Definition of zero value for any class.
Interface for binary input.
Interface for binary output.
Exception for division by zero.
Exception for accessing a value in a collection that is outside of its range.
T getZero()
Get zero value for a given data type.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JArgument< T >::argument_type argument_type
Auxiliary base class for aritmetic operations of derived class types.