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/EvtItgFunction.hh>

Inheritance diagram for EvtItgFunction:
EvtItgAbsFunction

Public Member Functions

 EvtItgFunction (double(*theFunction)(double), double lowerRange, double upperRange)
 
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)
 

Detailed Description

Generic function where the pointer to the function is available.

The function is taken as type pointer to function returning double and taking a double (the abscissa) and a const RWTValVector<double> reference (the parameter values of the function) as arguments.

Definition at line 34 of file EvtItgFunction.hh.

Constructor & Destructor Documentation

◆ EvtItgFunction()

EvtItgFunction::EvtItgFunction ( double(*)(double)  theFunction,
double  lowerRange,
double  upperRange 
)

Definition at line 34 of file EvtItgFunction.cpp.

Member Function Documentation

◆ getCoeff()

double EvtItgFunction::getCoeff ( int  ,
int   
)
inlineoverridevirtual

Implements EvtItgAbsFunction.

Definition at line 41 of file EvtItgFunction.hh.

◆ myFunction()

double EvtItgFunction::myFunction ( double  x) const
overrideprotectedvirtual

Implements EvtItgAbsFunction.

Definition at line 40 of file EvtItgFunction.cpp.

◆ setCoeff()

void EvtItgFunction::setCoeff ( int  ,
int  ,
double   
)
inlineoverridevirtual

Implements EvtItgAbsFunction.

Definition at line 40 of file EvtItgFunction.hh.

Member Data Documentation

◆ _myFunction

double( * EvtItgFunction::_myFunction) (double x)
private

Definition at line 50 of file EvtItgFunction.hh.


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