evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.

#include <EvtGenModels/EvtItgPtrFunction.hh>

Inheritance diagram for EvtItgPtrFunction:
EvtItgAbsFunction

Public Member Functions

 EvtItgPtrFunction (double(*theFunction)(double, const std::vector< double > &), double lowerRange, double upperRange, const std::vector< double > &coeffs1)
 
void setCoeff (int, int, double) override
 
double getCoeff (int, int) override
 
- Public Member Functions inherited from EvtItgAbsFunction
 EvtItgAbsFunction (double lowerRange, double upperRange)
 
virtual ~EvtItgAbsFunction ()=default
 
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

double myFunction (double x) const override
 
- Protected Member Functions inherited from EvtItgAbsFunction
void setRange (double x1, double x2)
 

Private Attributes

double(* _myFunction )(double x, const std::vector< double > &coeffs1)
 
std::vector< double > _coeffs1
 

Detailed Description

Definition at line 32 of file EvtItgPtrFunction.hh.

Constructor & Destructor Documentation

◆ EvtItgPtrFunction()

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

Definition at line 34 of file EvtItgPtrFunction.cpp.

Member Function Documentation

◆ getCoeff()

double EvtItgPtrFunction::getCoeff ( int  vect,
int  which 
)
overridevirtual

Implements EvtItgAbsFunction.

Definition at line 54 of file EvtItgPtrFunction.cpp.

◆ myFunction()

double EvtItgPtrFunction::myFunction ( double  x) const
overrideprotectedvirtual

Implements EvtItgAbsFunction.

Definition at line 43 of file EvtItgPtrFunction.cpp.

◆ setCoeff()

void EvtItgPtrFunction::setCoeff ( int  vect,
int  which,
double  value 
)
overridevirtual

Implements EvtItgAbsFunction.

Definition at line 48 of file EvtItgPtrFunction.cpp.

Member Data Documentation

◆ _coeffs1

std::vector<double> EvtItgPtrFunction::_coeffs1
private

Definition at line 49 of file EvtItgPtrFunction.hh.

◆ _myFunction

double( * EvtItgPtrFunction::_myFunction) (double x, const std::vector< double > &coeffs1)
private

Definition at line 47 of file EvtItgPtrFunction.hh.


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