BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgTwoCoeffFcn Class Reference

#include <EvtItgTwoCoeffFcn.hh>

+ Inheritance diagram for EvtItgTwoCoeffFcn:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtItgTwoCoeffFcn()

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

Definition at line 31 of file EvtItgTwoCoeffFcn.cc.

31 :
33 _myFunction(theFunction),
34 _coeffs1(coeffs1),
35 _coeffs2(coeffs2)
36{}
double lowerRange() const
double upperRange() const

◆ ~EvtItgTwoCoeffFcn()

EvtItgTwoCoeffFcn::~EvtItgTwoCoeffFcn ( )
virtual

Definition at line 38 of file EvtItgTwoCoeffFcn.cc.

39{}

Member Function Documentation

◆ getCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 54 of file EvtItgTwoCoeffFcn.cc.

55{
56 if (vect == 1) return _coeffs1[which];
57 else if (vect == 2) return _coeffs2[which];
58 else {return 0;}
59}

◆ myFunction()

double EvtItgTwoCoeffFcn::myFunction ( double  x) const
protectedvirtual

Implements EvtItgAbsFunction.

Definition at line 42 of file EvtItgTwoCoeffFcn.cc.

42 {
43 return _myFunction(x, _coeffs1, _coeffs2);
44}

◆ setCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 47 of file EvtItgTwoCoeffFcn.cc.

48{
49 if (vect == 1) _coeffs1[which] = value;
50 else if (vect == 2) _coeffs2[which] = value;
51}
virtual double value(double x) const

Referenced by EvtBtoXsgammaKagan::computeHadronicMass().


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