BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgFourCoeffFcn Class Reference

#include <EvtItgFourCoeffFcn.hh>

+ Inheritance diagram for EvtItgFourCoeffFcn:

Public Member Functions

 EvtItgFourCoeffFcn (double(*theFunction)(double, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1, const std::vector< double > &coeffs2, const std::vector< double > &coeffs3, const std::vector< double > &coeffs4)
 
virtual ~EvtItgFourCoeffFcn ()
 
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 28 of file EvtItgFourCoeffFcn.hh.

Constructor & Destructor Documentation

◆ EvtItgFourCoeffFcn()

EvtItgFourCoeffFcn::EvtItgFourCoeffFcn ( double(*)(double, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &, const std::vector< double > &)  theFunction,
double  lowerRange,
double  upperRange,
const std::vector< double > &  coeffs1,
const std::vector< double > &  coeffs2,
const std::vector< double > &  coeffs3,
const std::vector< double > &  coeffs4 
)

Definition at line 29 of file EvtItgFourCoeffFcn.cc.

29 :
31 _myFunction(theFunction),
32 _coeffs1(coeffs1),
33 _coeffs2(coeffs2),
34 _coeffs3(coeffs3),
35 _coeffs4(coeffs4)
36{}
double lowerRange() const
double upperRange() const

◆ ~EvtItgFourCoeffFcn()

EvtItgFourCoeffFcn::~EvtItgFourCoeffFcn ( )
virtual

Definition at line 38 of file EvtItgFourCoeffFcn.cc.

39{}

Member Function Documentation

◆ getCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 57 of file EvtItgFourCoeffFcn.cc.

58{
59 if (vect == 1) return _coeffs1[which];
60 else if (vect == 2) return _coeffs2[which];
61 else if (vect == 3) return _coeffs3[which];
62 else if (vect == 4) return _coeffs4[which];
63 else {return 0;}
64}

◆ myFunction()

double EvtItgFourCoeffFcn::myFunction ( double  x) const
protectedvirtual

Implements EvtItgAbsFunction.

Definition at line 43 of file EvtItgFourCoeffFcn.cc.

43 {
44 return _myFunction(x, _coeffs1, _coeffs2, _coeffs3, _coeffs4);
45}

◆ setCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 48 of file EvtItgFourCoeffFcn.cc.

49{
50 if (vect == 1) _coeffs1[which] = value;
51 else if (vect == 2) _coeffs2[which] = value;
52 else if (vect == 3) _coeffs3[which] = value;
53 else if (vect == 4) _coeffs4[which] = value;
54}
virtual double value(double x) const

Referenced by EvtBtoXsgammaKagan::computeHadronicMass().


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