10#include <Math/IFunction.h>
11#include <Math/IntegratorMultiDim.h>
12#include "Math/AdaptiveIntegratorMultiDim.h"
15#include "Framework/Conventions/GBuild.h"
65 LOG(
"MECXSec",
pDEBUG) <<
"*** Below energy threshold";
76 double TMax = Enu - LepMass;
78 double CosthMax = 1.0;
79 double CosthMin = -1.0;
84 TMin = TMath::Sqrt(TMath::Power(LepMass, 2) + TMath::Power((Enu -
fQ3Max), 2)) - LepMass;
85 CosthMin = TMath::Sqrt(1 - TMath::Power((
fQ3Max / Enu ), 2));
88 double kine_min[2] = { TMin, CosthMin };
89 double kine_max[2] = { TMax, CosthMax };
95 ROOT::Math::IntegrationMultiDim::Type ig_type =
99 xsec = ig.Integral(kine_min, kine_max);
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils.
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
double ProbeE(RefFrame_t rf) const
Summary information for an interaction.
TParticlePDG * FSPrimLepton(void) const
final state primary lepton
const KPhaseSpace & PhaseSpace(void) const
const InitialState & InitState(void) const
bool IsAboveThreshold(void) const
Checks whether the interaction is above the energy threshold.
void Configure(const Registry &config)
double Integrate(const XSecAlgorithmI *model, const Interaction *i) const
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?
string fGSLIntgType
name of GSL numerical integrator
int fGSLMaxEval
GSL max evaluations.
double fGSLRelTol
required relative tolerance (error)
double func(double x, double y)
Misc GENIE control constants.
Simple functions for loading and reading nucleus dependent keys from config files.
ROOT::Math::IntegrationMultiDim::Type IntegrationNDimTypeFromString(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