BOSS 8.0.0
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

Protected Member Functions

virtual double myFunction (double x) const
Protected Member Functions inherited from EvtItgAbsFunction
void setRange (double x1, double x2)

Detailed Description

Definition at line 30 of file EvtItgPtrFunction.hh.

Constructor & Destructor Documentation

◆ EvtItgPtrFunction()

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

Definition at line 34 of file EvtItgPtrFunction.cc.

39 , _myFunction( theFunction )
40 , _coeffs1( coeffs1 ) {}
EvtItgAbsFunction(double lowerRange, double upperRange)
double lowerRange() const
double upperRange() const

◆ ~EvtItgPtrFunction()

EvtItgPtrFunction::~EvtItgPtrFunction ( )
virtual

Definition at line 46 of file EvtItgPtrFunction.cc.

46{}

Member Function Documentation

◆ getCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 54 of file EvtItgPtrFunction.cc.

54 {
55 if ( vect == 1 ) return _coeffs1[which];
56 else { return 0; }
57}

◆ myFunction()

double EvtItgPtrFunction::myFunction ( double x) const
protectedvirtual

Implements EvtItgAbsFunction.

Definition at line 48 of file EvtItgPtrFunction.cc.

48{ return _myFunction( x, _coeffs1 ); }
Double_t x[10]

◆ setCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 50 of file EvtItgPtrFunction.cc.

50 {
51 if ( vect == 1 ) _coeffs1[which] = value;
52}
virtual double value(double x) const

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