BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgAbsFunction Class Referenceabstract

#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)

Detailed Description

Definition at line 33 of file EvtItgAbsFunction.hh.

Constructor & Destructor Documentation

◆ EvtItgAbsFunction()

EvtItgAbsFunction::EvtItgAbsFunction ( double lowerRange,
double upperRange )

◆ ~EvtItgAbsFunction()

EvtItgAbsFunction::~EvtItgAbsFunction ( )
virtual

Definition at line 38 of file EvtItgAbsFunction.cc.

38{}

Member Function Documentation

◆ getCoeff()

virtual double EvtItgAbsFunction::getCoeff ( int ,
int  )
pure virtual

◆ getRange()

void EvtItgAbsFunction::getRange ( double & lower,
double & upper ) const
inline

Definition at line 51 of file EvtItgAbsFunction.hh.

51 {
52 lower = _lowerRange;
53 upper = _upperRange;
54 }

◆ lowerRange()

◆ myFunction()

virtual double EvtItgAbsFunction::myFunction ( double x) const
protectedpure virtual

◆ operator()()

double EvtItgAbsFunction::operator() ( double x) const
virtual

Definition at line 48 of file EvtItgAbsFunction.cc.

48{ return myFunction( x ); }
Double_t x[10]
virtual double myFunction(double x) const =0

◆ setCoeff()

virtual void EvtItgAbsFunction::setCoeff ( int ,
int ,
double  )
pure virtual

◆ setRange()

void EvtItgAbsFunction::setRange ( double x1,
double x2 )
inlineprotected

Definition at line 60 of file EvtItgAbsFunction.hh.

60 {
61 _lowerRange = x1;
62 _upperRange = x2;
63 };

◆ upperRange()

◆ value()

double EvtItgAbsFunction::value ( double x) const
virtual

Definition at line 40 of file EvtItgAbsFunction.cc.

40 {
41 if ( x >= _lowerRange && x <= _upperRange ) return myFunction( x );
42 report( ERROR, "EvtGen" ) << "Error in EvtItgAbsFunction::value. Given co-ordinate " << x
43 << " is outside of allowed range [" << _lowerRange << ", "
44 << _upperRange << "]. Returning 0.0" << endl;
45 return 0.0; // Never get here
46}
ostream & report(Severity severity, const char *facility)
Definition EvtReport.cc:34
@ ERROR
Definition EvtReport.hh:49

Referenced by EvtBtoXsgammaRootFinder::GetRootSingleFunc(), EvtItgFourCoeffFcn::setCoeff(), EvtItgPtrFunction::setCoeff(), EvtItgThreeCoeffFcn::setCoeff(), and EvtItgTwoCoeffFcn::setCoeff().


The documentation for this class was generated from the following files: