16 #include <Math/IFunction.h>
17 #include <Math/Integrator.h>
21 #include "Framework/Conventions/GBuild.h"
39 using namespace genie;
40 using namespace genie::constants;
41 using namespace genie::controls;
64 LOG(
"DMELXSec",
pDEBUG) <<
"Beginning integrate";
69 LOG(
"DMELXSec",
pDEBUG) <<
"*** Below energy threshold";
74 if(rQ2.
min<0 || rQ2.
max<0)
return 0;
76 <<
"Q2 integration range = (" << rQ2.
min <<
", " << rQ2.
max <<
")";
82 ROOT::Math::IBaseFunctionOneDim *
func =
new
84 ROOT::Math::IntegrationOneDim::Type ig_type =
Cross Section Calculation Interface.
const KPhaseSpace & PhaseSpace(void) const
ROOT::Math::IntegrationOneDim::Type Integration1DimTypeFromString(string type)
string fGSLIntgType
name of GSL numerical integrator
Cross Section Integrator Interface.
A simple [min,max] interval for doubles.
void Configure(const Registry &config)
Range1D_t Limits(KineVar_t kvar) const
Return the kinematical variable limits.
Summary information for an interaction.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
static constexpr double cm2
virtual void Configure(const Registry &config)
double func(double x, double y)
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
virtual bool ValidProcess(const Interaction *i) const =0
Can this cross section algorithm handle the input process?
int fGSLMaxEval
GSL max evaluations.
double Integrate(const XSecAlgorithmI *model, const Interaction *i) const
XSecIntegratorI interface implementation.
A registry. Provides the container for algorithm configuration parameters.
bool IsAboveThreshold(void) const
Checks whether the interaction is above the energy threshold.
bool GetParamDef(const RgKey &name, T &p, const T &def) const
const UInt_t kISkipProcessChk
if set, skip process validity checks
double fGSLRelTol
required relative tolerance (error)