BOSS 8.0.0
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)
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 34 of file EvtItgThreeCoeffFcn.hh.

Constructor & Destructor Documentation

◆ EvtItgThreeCoeffFcn()

EvtItgThreeCoeffFcn::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 )

Definition at line 30 of file EvtItgThreeCoeffFcn.cc.

36 , _myFunction( theFunction )
37 , _coeffs1( coeffs1 )
38 , _coeffs2( coeffs2 )
39 , _coeffs3( coeffs3 ) {}
EvtItgAbsFunction(double lowerRange, double upperRange)
double lowerRange() const
double upperRange() const

◆ ~EvtItgThreeCoeffFcn()

EvtItgThreeCoeffFcn::~EvtItgThreeCoeffFcn ( )
virtual

Definition at line 41 of file EvtItgThreeCoeffFcn.cc.

41{}

Member Function Documentation

◆ getCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 53 of file EvtItgThreeCoeffFcn.cc.

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

◆ myFunction()

double EvtItgThreeCoeffFcn::myFunction ( double x) const
protectedvirtual

Implements EvtItgAbsFunction.

Definition at line 43 of file EvtItgThreeCoeffFcn.cc.

43 {
44 return _myFunction( x, _coeffs1, _coeffs2, _coeffs3 );
45}
Double_t x[10]

◆ setCoeff()

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

Implements EvtItgAbsFunction.

Definition at line 47 of file EvtItgThreeCoeffFcn.cc.

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

Referenced by EvtBtoXsgammaKagan::computeHadronicMass().


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