BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtItgThreeCoeffFcn Class Reference

#include <EvtItgThreeCoeffFcn.hh>

+ Inheritance diagram for EvtItgThreeCoeffFcn:

Public Member Functions

 EvtItgThreeCoeffFcn (double(*theFunction)(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)
 
virtual ~EvtItgThreeCoeffFcn ()
 
virtual void setCoeff (int, int, double)
 
virtual double getCoeff (int, int)
 
 EvtItgThreeCoeffFcn (double(*theFunction)(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)
 
virtual ~EvtItgThreeCoeffFcn ()
 
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

◆ EvtItgThreeCoeffFcn() [1/2]

EvtItgThreeCoeffFcn::EvtItgThreeCoeffFcn ( double(*)(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 
)

◆ ~EvtItgThreeCoeffFcn() [1/2]

EvtItgThreeCoeffFcn::~EvtItgThreeCoeffFcn ( )
virtual

◆ EvtItgThreeCoeffFcn() [2/2]

EvtItgThreeCoeffFcn::EvtItgThreeCoeffFcn ( double(*)(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 
)

◆ ~EvtItgThreeCoeffFcn() [2/2]

virtual EvtItgThreeCoeffFcn::~EvtItgThreeCoeffFcn ( )
virtual

Member Function Documentation

◆ getCoeff() [1/2]

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

Implements EvtItgAbsFunction.

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

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

◆ getCoeff() [2/2]

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

Implements EvtItgAbsFunction.

◆ myFunction() [1/2]

double EvtItgThreeCoeffFcn::myFunction ( double  x) const
protectedvirtual

Implements EvtItgAbsFunction.

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

45 {
46 return _myFunction(x, _coeffs1, _coeffs2, _coeffs3);
47}

◆ myFunction() [2/2]

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

Implements EvtItgAbsFunction.

◆ setCoeff() [1/2]

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

Implements EvtItgAbsFunction.

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

51{
52 if (vect == 1) _coeffs1[which] = value;
53 else if (vect == 2) _coeffs2[which] = value;
54 else if (vect == 3) _coeffs3[which] = value;
55}

Referenced by EvtBtoXsgammaKagan::computeHadronicMass().

◆ setCoeff() [2/2]

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

Implements EvtItgAbsFunction.


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