#include <EvtItgAbsFunction.hh>
Inheritance diagram for EvtItgAbsFunction:
Public Member Functions | |
EvtItgAbsFunction (double lowerRange, double upperRange) | |
virtual | ~EvtItgAbsFunction () |
virtual double | value (double x) const |
virtual double | operator() (double x) const |
double | upperRange () const |
double | lowerRange () const |
void | getRange (double &lower, double &upper) const |
virtual void | setCoeff (int, int, double)=0 |
virtual double | getCoeff (int, int)=0 |
Protected Member Functions | |
virtual double | myFunction (double x) const =0 |
void | setRange (double x1, double x2) |
Private Member Functions | |
EvtItgAbsFunction (const EvtItgAbsFunction &) | |
EvtItgAbsFunction & | operator= (const EvtItgAbsFunction &) |
Private Attributes | |
double | _upperRange |
double | _lowerRange |
Definition at line 34 of file EvtItgAbsFunction.hh.
EvtItgAbsFunction::EvtItgAbsFunction | ( | double | lowerRange, | |
double | upperRange | |||
) |
Definition at line 36 of file EvtItgAbsFunction.cc.
00036 : 00037 _upperRange(upperRange), 00038 _lowerRange(lowerRange){}
EvtItgAbsFunction::~EvtItgAbsFunction | ( | ) | [virtual] |
EvtItgAbsFunction::EvtItgAbsFunction | ( | const EvtItgAbsFunction & | ) | [private] |
virtual double EvtItgAbsFunction::getCoeff | ( | int | , | |
int | ||||
) | [pure virtual] |
Implemented in EvtItgFourCoeffFcn, EvtItgFunction, EvtItgPtrFunction, EvtItgThreeCoeffFcn, and EvtItgTwoCoeffFcn.
Referenced by EvtBtoXsgammaRootFinder::GetGaussIntegFcnRoot().
void EvtItgAbsFunction::getRange | ( | double & | lower, | |
double & | upper | |||
) | const [inline] |
Definition at line 53 of file EvtItgAbsFunction.hh.
References _lowerRange, and _upperRange.
00053 { lower = _lowerRange; upper = _upperRange; }
double EvtItgAbsFunction::lowerRange | ( | ) | const [inline] |
Definition at line 52 of file EvtItgAbsFunction.hh.
References _lowerRange.
Referenced by EvtItgAbsIntegrator::boundsCheck(), and EvtItgAbsIntegrator::normalisation().
00052 {return _lowerRange;}
virtual double EvtItgAbsFunction::myFunction | ( | double | x | ) | const [protected, pure virtual] |
Implemented in EvtItgFourCoeffFcn, EvtItgFunction, EvtItgPtrFunction, EvtItgThreeCoeffFcn, and EvtItgTwoCoeffFcn.
Referenced by operator()(), and value().
double EvtItgAbsFunction::operator() | ( | double | x | ) | const [virtual] |
Definition at line 54 of file EvtItgAbsFunction.cc.
References myFunction().
00054 { 00055 return myFunction(x); 00056 }
EvtItgAbsFunction& EvtItgAbsFunction::operator= | ( | const EvtItgAbsFunction & | ) | [private] |
virtual void EvtItgAbsFunction::setCoeff | ( | int | , | |
int | , | |||
double | ||||
) | [pure virtual] |
Implemented in EvtItgFourCoeffFcn, EvtItgFunction, EvtItgPtrFunction, EvtItgThreeCoeffFcn, and EvtItgTwoCoeffFcn.
Referenced by EvtBtoXsgammaRootFinder::GetGaussIntegFcnRoot().
void EvtItgAbsFunction::setRange | ( | double | x1, | |
double | x2 | |||
) | [inline, protected] |
Definition at line 60 of file EvtItgAbsFunction.hh.
References _lowerRange, and _upperRange.
00060 { _lowerRange=x1; _upperRange=x2; };
double EvtItgAbsFunction::upperRange | ( | ) | const [inline] |
Definition at line 51 of file EvtItgAbsFunction.hh.
References _upperRange.
Referenced by EvtItgAbsIntegrator::boundsCheck(), and EvtItgAbsIntegrator::normalisation().
00051 {return _upperRange;}
double EvtItgAbsFunction::value | ( | double | x | ) | const [virtual] |
Definition at line 45 of file EvtItgAbsFunction.cc.
References _lowerRange, _upperRange, calibUtil::ERROR, myFunction(), and report().
Referenced by EvtBtoXsgammaRootFinder::GetRootSingleFunc().
00045 { 00046 if (x >= _lowerRange && x <= _upperRange) return myFunction(x); 00047 report(ERROR,"EvtGen") << "Error in EvtItgAbsFunction::value. Given co-ordinate " << x 00048 << " is outside of allowed range [" << _lowerRange << ", " 00049 << _upperRange << "]. Returning 0.0" << endl; 00050 return 0.0; // Never get here 00051 }
double EvtItgAbsFunction::_lowerRange [private] |
Definition at line 65 of file EvtItgAbsFunction.hh.
Referenced by getRange(), lowerRange(), setRange(), and value().
double EvtItgAbsFunction::_upperRange [private] |
Definition at line 60 of file EvtItgAbsFunction.hh.
Referenced by getRange(), setRange(), upperRange(), and value().