BOSS 7.0.9
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
 
 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)
 
virtual double myFunction (double x) const =0
 
void setRange (double x1, double x2)
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtItgAbsFunction() [1/2]

EvtItgAbsFunction::EvtItgAbsFunction ( double  lowerRange,
double  upperRange 
)

◆ ~EvtItgAbsFunction() [1/2]

EvtItgAbsFunction::~EvtItgAbsFunction ( )
virtual

◆ EvtItgAbsFunction() [2/2]

EvtItgAbsFunction::EvtItgAbsFunction ( double  lowerRange,
double  upperRange 
)

◆ ~EvtItgAbsFunction() [2/2]

virtual EvtItgAbsFunction::~EvtItgAbsFunction ( )
virtual

Member Function Documentation

◆ getCoeff() [1/2]

◆ getCoeff() [2/2]

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

◆ getRange() [1/2]

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

Definition at line 53 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

53{ lower = _lowerRange; upper = _upperRange; }

◆ getRange() [2/2]

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

Definition at line 53 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

53{ lower = _lowerRange; upper = _upperRange; }

◆ lowerRange() [1/2]

double EvtItgAbsFunction::lowerRange ( ) const
inline

Definition at line 52 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

52{return _lowerRange;}

Referenced by EvtItgAbsIntegrator::normalisation().

◆ lowerRange() [2/2]

double EvtItgAbsFunction::lowerRange ( ) const
inline

Definition at line 52 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

52{return _lowerRange;}

◆ myFunction() [1/2]

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

◆ myFunction() [2/2]

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

◆ operator()() [1/2]

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

Definition at line 54 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.cc.

54 {
55 return myFunction(x);
56}
virtual double myFunction(double x) const =0

◆ operator()() [2/2]

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

◆ setCoeff() [1/2]

◆ setCoeff() [2/2]

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

◆ setRange() [1/2]

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

Definition at line 60 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

60{ _lowerRange=x1; _upperRange=x2; };

◆ setRange() [2/2]

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

Definition at line 60 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

60{ _lowerRange=x1; _upperRange=x2; };

◆ upperRange() [1/2]

double EvtItgAbsFunction::upperRange ( ) const
inline

Definition at line 51 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

51{return _upperRange;}

Referenced by EvtItgAbsIntegrator::normalisation().

◆ upperRange() [2/2]

double EvtItgAbsFunction::upperRange ( ) const
inline

Definition at line 51 of file BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.hh.

51{return _upperRange;}

◆ value() [1/2]

double EvtItgAbsFunction::value ( double  x) const
virtual

Definition at line 45 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtItgAbsFunction.cc.

45 {
46 if (x >= _lowerRange && x <= _upperRange) return myFunction(x);
47 report(ERROR,"EvtGen") << "Error in EvtItgAbsFunction::value. Given co-ordinate " << x
48 << " is outside of allowed range [" << _lowerRange << ", "
49 << _upperRange << "]. Returning 0.0" << endl;
50 return 0.0; // Never get here
51}
Double_t x[10]
ostream & report(Severity severity, const char *facility)

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

◆ value() [2/2]

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

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