Go to the documentation of this file. 1 #ifndef __JFIT__JENERGY__
2 #define __JFIT__JENERGY__
16 namespace JPP {
using namespace JFIT; }
146 return pow(10.0,
__X);
168 return getE() * log(10.0);
179 return std::fabs(energy.
__X);
190 return JEnergy(-std::numeric_limits<double>::max());
201 return JEnergy(+std::numeric_limits<double>::max());
Data structure for fit of energy.
JEnergy()
Default constructor.
Auxiliary classes and methods for linear and iterative data regression.
double getX() const
Get energy.
double getE() const
Get energy.
JEnergy & mul(const double value)
Multiplication operator.
static JEnergy max()
Get maximum possible value.
double JEnergy::* parameter_type
Auxiliary base class for aritmetic operations of derived class types.
static parameter_type pE()
static JEnergy min()
Get minimum possible value.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool less(const JEnergy &X) const
Less than method.
friend double fabs(const JEnergy &energy)
Get absolute value.
friend std::ostream & operator<<(std::ostream &out, const JEnergy &object)
Write object to output.
friend std::istream & operator>>(std::istream &in, JEnergy &object)
Read object from input.
JEnergy & negate()
Prefix unary minus.
JEnergy & sub(const JEnergy &value)
Subtraction operator.
Template definition of auxiliary base class for comparison of data structures.
void putE(const double E)
Put energy.
JEnergy & div(const double value)
Division operator.
double getDE() const
Get derivative of energy.
JEnergy(const double X)
Constructor.
JEnergy & add(const JEnergy &value)
Addition operator.