12 #include <Math/IFunction.h>
13 #include <Math/IntegratorMultiDim.h>
17 #include "Framework/Conventions/GBuild.h"
35 using namespace genie;
36 using namespace genie::constants;
65 LOG(
"ReinSehgalRESXSec",
pDEBUG) <<
"*** Below energy threshold";
124 <<
"Finding cache branch with key: " << key;
129 <<
"No cached RES v-production data for input neutrino"
130 <<
" (pdgc: " << nu_pdgc <<
")";
132 <<
"Wait while computing/caching RES production xsec first...";
136 LOG(
"ReinSehgalResT",
pINFO) <<
"Done caching resonance xsec data";
138 <<
"Finding newly created cache branch with key: " << key;
141 assert(cache_branch);
148 double rxsec = (Ev<
fEMax-1) ? cbranch(Ev) : cbranch(
fEMax-1);
169 <<
"*** Integrating d^2 XSec/dWdQ^2 for R: "
172 <<
"{W} = " << rW.
min <<
", " << rW.
max;
174 <<
"{Q^2} = " << rQ2.
min <<
", " << rQ2.
max;
176 ROOT::Math::IBaseFunctionMultiDim *
func =
178 ROOT::Math::IntegrationMultiDim::Type ig_type =
181 ig.SetFunction(*func);
182 double kine_min[2] = { rW.
min, rQ2.
min };
183 double kine_max[2] = { rW.
max, rQ2.
max };
184 double xsec = ig.Integral(kine_min, kine_max) * (1E-38 *
units::cm2);
218 GetParam(
"ResonanceNameList", resonances ) ;
Cross Section Calculation Interface.
bool fUsePauliBlocking
account for Pauli blocking?
const KPhaseSpace & PhaseSpace(void) const
InteractionType_t InteractionTypeId(void) const
string fGSLIntgType
name of GSL numerical integrator
ROOT::Math::IntegrationMultiDim::Type IntegrationNDimTypeFromString(string type)
int HitNucPdg(void) const
A simple [min,max] interval for doubles.
bool SplineExists(const XSecAlgorithmI *alg, const Interaction *i) const
A numeric analysis tool class for interpolating 1-D functions.
bool IsNucleus(void) const
void DecodeFromNameList(string list, string delimiter=",")
static XSecSplineList * Instance()
double Evaluate(double x) const
enum genie::EResonance Resonance_t
Range1D_t Limits(KineVar_t kvar) const
Return the kinematical variable limits.
Summary information for an interaction.
bool BareXSecPreCalc(void) const
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
static constexpr double cm2
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
string CacheBranchName(Resonance_t r, InteractionType_t it, int nu, int nuc) const
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
virtual void Configure(const Registry &config)
double func(double x, double y)
Resonance_t Resonance(void) const
void CacheResExcitationXSec(const Interaction *interaction) const
virtual bool ValidProcess(const Interaction *i) const =0
Can this cross section algorithm handle the input process?
CacheBranchI * FindCacheBranch(string key)
finding/adding cache branches
int fGSLMaxEval
GSL max evaluations.
static RunOpt * Instance(void)
double Integrate(const XSecAlgorithmI *model, const Interaction *i) const
A registry. Provides the container for algorithm configuration parameters.
const UInt_t kIAssumeFreeNucleon
const XclsTag & ExclTag(void) const
void Configure(const Registry &config)
Target * TgtPtr(void) const
bool IsAboveThreshold(void) const
Checks whether the interaction is above the energy threshold.
An ABC that caches resonance neutrinoproduction cross sections on free nucleons according to the Rein...
InitialState * InitStatePtr(void) const
const InitialState & InitState(void) const
const char * AsString(Resonance_t res)
resonance id -> string
const ProcessInfo & ProcInfo(void) const
bool GetParamDef(const RgKey &name, T &p, const T &def) const
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Target & Tgt(void) const
static Cache * Instance(void)
A simple cache branch storing the cached data in a TNtuple.
#define SLOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a short string (using the FUNCTION and...
const Spline * GetSpline(const XSecAlgorithmI *alg, const Interaction *i) const
List of cross section vs energy splines.
double ProbeE(RefFrame_t rf) const
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
enum genie::EInteractionType InteractionType_t
const XSecAlgorithmI * fSingleResXSecModel
Initial State information.
double fGSLRelTol
required relative tolerance (error)
virtual ~ReinSehgalRESXSec()