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

Detailed Description

Constructor & Destructor Documentation

◆ EvtItgPtrFunction() [1/2]

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

◆ ~EvtItgPtrFunction() [1/2]

EvtItgPtrFunction::~EvtItgPtrFunction ( )
virtual

◆ EvtItgPtrFunction() [2/2]

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

◆ ~EvtItgPtrFunction() [2/2]

virtual EvtItgPtrFunction::~EvtItgPtrFunction ( )
virtual

Member Function Documentation

◆ getCoeff() [1/2]

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

Implements EvtItgAbsFunction.

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

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

◆ getCoeff() [2/2]

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

Implements EvtItgAbsFunction.

◆ myFunction() [1/2]

double EvtItgPtrFunction::myFunction ( double  x) const
protectedvirtual

Implements EvtItgAbsFunction.

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

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

◆ myFunction() [2/2]

virtual double EvtItgPtrFunction::myFunction ( double  x) const
protectedvirtual

Implements EvtItgAbsFunction.

◆ setCoeff() [1/2]

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

Implements EvtItgAbsFunction.

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

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

◆ setCoeff() [2/2]

virtual void EvtItgPtrFunction::setCoeff ( int  ,
int  ,
double   
)
virtual

Implements EvtItgAbsFunction.


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