PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Wrapper for integration routines. More...
Public Member Functions | |
MathIntegratorModule () | |
Default constructor. More... | |
virtual | ~MathIntegratorModule () |
Default destructor. More... | |
Static Public Attributes | |
static const std::string | PARAM_NAME_INTEGRATOR_TYPE |
Parameter used in configureIntegrator() or XML automation to set the type of integrator. More... | |
Protected Member Functions | |
MathIntegratorModule (const MathIntegratorModule &other) | |
Copy constructor. More... | |
void | setIntegrator (NumA::IntegratorType1D::Type integratorType) |
Sets a given integrator available in NumA++. More... | |
double | integrate (NumA::FunctionType1D *pFunction, double a, double b, std::vector< double > ¶meters) |
Computes the integral of a function defined via a functor. More... | |
void | configureIntegrator (const ElemUtils::Parameters ¶meters) |
Provides a generic method to configure all types of integration routines by passing a Parameters object. More... | |
NumA::Integrator1D * | getMathIntegrator () |
Private Attributes | |
NumA::Integrator1D * | m_mathIntegrator |
Integration routine. Pointer to NumA::Integrator1D object. More... | |
Wrapper for integration routines.
Can be inherited by a module that uses integration.
PARTONS::MathIntegratorModule::MathIntegratorModule | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
protected |
Copy constructor.
other |
|
protected |
Provides a generic method to configure all types of integration routines by passing a Parameters object.
Parameters class represents a list of couples key/value (see Parameters class documentation for more info). Can also be used to set the integrator via the key PARAM_NAME_INTEGRATOR_TYPE.
parameters |
|
protected |
|
protected |
Computes the integral of a function defined via a functor.
pFunction | Functor. |
a | Lower bound. |
b | Upper bound. |
parameters | List of parameters needed by the function. |
|
protected |
Sets a given integrator available in NumA++.
integratorType |
|
private |
Integration routine. Pointer to NumA::Integrator1D object.
|
static |
Parameter used in configureIntegrator() or XML automation to set the type of integrator.