BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgPtrFunction Class Reference

#include <EvtItgPtrFunction.hh>

+ Inheritance diagram for EvtItgPtrFunction:

Public Member Functions

 EvtItgPtrFunction (double(*theFunction)(double, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1)
 
virtual ~EvtItgPtrFunction ()
 
virtual void setCoeff (int, int, double)
 
virtual double getCoeff (int, int)
 
- Public Member Functions inherited from EvtItgAbsFunction
 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
 
- Protected Member Functions inherited from EvtItgAbsFunction
virtual double myFunction (double x) const =0
 
void setRange (double x1, double x2)
 

Detailed Description

Definition at line 30 of file EvtItgPtrFunction.hh.

Constructor & Destructor Documentation

◆ EvtItgPtrFunction()

EvtItgPtrFunction::EvtItgPtrFunction ( double(*)(double, const std::vector< double > &)  theFunction,
double  lowerRange,
double  upperRange,
const std::vector< double > &  coeffs1 
)

Definition at line 35 of file EvtItgPtrFunction.cc.

35 :
37 _myFunction(theFunction),
38 _coeffs1(coeffs1)
39{}
double lowerRange() const
double upperRange() const

◆ ~EvtItgPtrFunction()

EvtItgPtrFunction::~EvtItgPtrFunction ( )
virtual

Definition at line 46 of file EvtItgPtrFunction.cc.

47{}

Member Function Documentation

◆ getCoeff()

double EvtItgPtrFunction::getCoeff ( int  vect,
int  which 
)
virtual

Implements EvtItgAbsFunction.

Definition at line 62 of file EvtItgPtrFunction.cc.

63{
64 if (vect == 1) return _coeffs1[which];
65 else {return 0;}
66}

◆ myFunction()

double EvtItgPtrFunction::myFunction ( double  x) const
protectedvirtual

Implements EvtItgAbsFunction.

Definition at line 51 of file EvtItgPtrFunction.cc.

51 {
52 return _myFunction(x, _coeffs1);
53}

◆ setCoeff()

void EvtItgPtrFunction::setCoeff ( int  vect,
int  which,
double  value 
)
virtual

Implements EvtItgAbsFunction.

Definition at line 56 of file EvtItgPtrFunction.cc.

57{
58 if (vect == 1) _coeffs1[which] = value;
59}
virtual double value(double x) const

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