17#include <Math/IFunction.h>
18#include <Math/Integrator.h>
59 ROOT::Math::IntegrationOneDim::Type ig_type =
66 double xsec = ig.Integral(DNuEnergy.
min, DNuEnergy.
max) * (1E-38 *
units::cm2);
71 <<
"XSec[COHDNu] (E = " << Ev <<
" GeV) = " << xsec/(
units::cm2) <<
" cm^2";
99 this->
GetParamDef(
"gsl-max-subintervals", max_subint, 500);
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
virtual void Configure(const Registry &config)
bool GetParamDef(const RgKey &name, T &p, const T &def) const
void Configure(const Registry &config)
double Integrate(const XSecAlgorithmI *model, const Interaction *i) const
Initial State information.
double ProbeE(RefFrame_t rf) const
Summary information for an interaction.
const KPhaseSpace & PhaseSpace(void) const
const InitialState & InitState(void) const
bool IsAboveThreshold(void) const
Checks whether the interaction is above the energy threshold.
A simple [min,max] interval for doubles.
A registry. Provides the container for algorithm configuration parameters.
Cross Section Calculation Interface.
virtual bool ValidProcess(const Interaction *i) const =0
Can this cross section algorithm handle the input process?
int fGSLMinEval
GSL min evaluations. Ignored by some integrators.
string fGSLIntgType
name of GSL numerical integrator
unsigned int fGSLMaxSizeOfSubintervals
GSL maximum number of sub-intervals for 1D integrator.
int fGSLMaxEval
GSL max evaluations.
double fGSLRelTol
required relative tolerance (error)
double func(double x, double y)
static constexpr double cm2
Simple functions for loading and reading nucleus dependent keys from config files.
ROOT::Math::IntegrationOneDim::Type Integration1DimTypeFromString(string type)
Root of GENIE utility namespaces.
THE MAIN GENIE PROJECT NAMESPACE
const UInt_t kISkipKinematicChk
if set, skip kinematic validity checks
const UInt_t kISkipProcessChk
if set, skip process validity checks