BOSS 7.0.9
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)
 
 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
 
 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

◆ EvtItgTwoCoeffFcn() [1/2]

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 
)

◆ ~EvtItgTwoCoeffFcn() [1/2]

EvtItgTwoCoeffFcn::~EvtItgTwoCoeffFcn ( )
virtual

◆ EvtItgTwoCoeffFcn() [2/2]

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 
)

◆ ~EvtItgTwoCoeffFcn() [2/2]

virtual EvtItgTwoCoeffFcn::~EvtItgTwoCoeffFcn ( )
virtual

Member Function Documentation

◆ getCoeff() [1/2]

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

Implements EvtItgAbsFunction.

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

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

◆ getCoeff() [2/2]

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

Implements EvtItgAbsFunction.

◆ myFunction() [1/2]

double EvtItgTwoCoeffFcn::myFunction ( double  x) const
protectedvirtual

Implements EvtItgAbsFunction.

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

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

◆ myFunction() [2/2]

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

Implements EvtItgAbsFunction.

◆ setCoeff() [1/2]

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

Implements EvtItgAbsFunction.

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

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

Referenced by EvtBtoXsgammaKagan::computeHadronicMass().

◆ setCoeff() [2/2]

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

Implements EvtItgAbsFunction.


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