1 #ifndef __JFIT__JENERGY__
2 #define __JFIT__JENERGY__
16 namespace JPP {
using namespace JFIT; }
29 public JMath<JEnergy>,
58 return static_cast<const JEnergy&
>(*this);
69 static_cast<JEnergy&
>(*this) = energy;
194 return getE() * log(10.0);
205 return std::fabs(energy.
__X);
216 return JEnergy(std::numeric_limits<double>::lowest());
227 return JEnergy(std::numeric_limits<double>::max());
Base class for data structures with artithmetic capabilities.
Data structure for fit of energy.
const JEnergy & getEnergy() const
Get Energy.
JEnergy & add(const JEnergy &value)
Addition operator.
friend std::ostream & operator<<(std::ostream &out, const JEnergy &object)
Write object to output.
double getE() const
Get energy.
bool less(const JEnergy &X) const
Less than method.
JEnergy(const double X)
Constructor.
friend double fabs(const JEnergy &energy)
Get absolute value.
JEnergy()
Default constructor.
friend std::istream & operator>>(std::istream &in, JEnergy &object)
Read object from input.
void putE(const double E)
Put energy.
JEnergy & mul(const double value)
Multiplication operator.
void setEnergy(const JEnergy &energy)
Set Energy.
JEnergy & negate()
Prefix unary minus.
double JEnergy::* parameter_type
double getDE() const
Get derivative of energy.
JEnergy & sub(const JEnergy &value)
Subtraction operator.
static JEnergy max()
Get maximum possible value.
double getlog10E() const
Get energy.
JEnergy & div(const double value)
Division operator.
static JEnergy min()
Get minimum possible value.
static parameter_type pE()
Auxiliary classes and methods for linear and iterative data regression.
T pow(const T &x, const double y)
Power .
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Template definition of auxiliary base class for comparison of data structures.
Auxiliary base class for aritmetic operations of derived class types.