EvtGen 2.2.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
Loading...
Searching...
No Matches
EvtItgFunction Class Reference

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

Definition at line 32 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 38 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

◆ m_myFunction

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

Definition at line 50 of file EvtItgFunction.hh.


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