12#include <Math/IFunction.h>
13#include <Math/Integrator.h>
52 LOG(
"CEvNS",
pDEBUG) <<
"*** Below energy threshold";
58 <<
"Q2 integration range = [" << Q2.min <<
", " << Q2.max <<
"] GeV^2";
59 assert(Q2.min > 0. && Q2.min < Q2.max);
65 ROOT::Math::IntegrationOneDim::Type ig_type =
67 ROOT::Math::IBaseFunctionOneDim *
func =
71 double xsec = ig.Integral(Q2.min, Q2.max) * (1E-38 *
units::cm2);
78 <<
"XSec[CEvNS] (E = " << Ev <<
" GeV) = " << xsec/(
units::cm2) <<
" cm^2";
104 int max_eval, min_eval ;
105 this->
GetParamDef(
"gsl-max-eval", max_eval, 500000);
106 this->
GetParamDef(
"gsl-min-eval", min_eval, 5000 );
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
virtual void Configure(const Registry &config)
bool GetParamDef(const RgKey &name, T &p, const T &def) const
double Integrate(const XSecAlgorithmI *model, const Interaction *i) const
void Configure(const Registry &config)
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.
Range1D_t Q2Lim(void) const
Q2 limits.
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
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