13 #include "Framework/Conventions/GBuild.h"
34 using namespace genie;
35 using namespace genie::constants;
36 using namespace genie::utils::gsl;
51 LOG(
"NewQELXSec",
pDEBUG) <<
"Beginning integrate";
59 model->
SubAlg(
"IntegralNuclearModel") );
72 std::string bind_mode_str = model->
GetConfig()
73 .
GetString(
"IntegralNucleonBindingMode" );
79 ROOT::Math::IntegrationMultiDim::Type ig_type =
90 double abstol = 1
e-16;
99 double kine_min[2] = { cos_theta_0_lim.
min, phi_0_lim.
min };
100 double kine_max[2] = { cos_theta_0_lim.
max, phi_0_lim.
max };
105 double xsec_total = ig.Integral(kine_min, kine_max);
119 .
GetDouble(
"IntegralNuclearInfluenceCutoffEnergy");
122 if ( !tgt->
IsNucleus() || probeE > E_lab_cutoff ) {
132 double xsec_total = ig.Integral(kine_min, kine_max);
142 double xsec_sum = 0.;
148 TVector3 vertex_pos = vtx_gen->
GenerateVertex( interaction, tgt->
A() );
149 double radius = vertex_pos.Mag();
159 double xsec = ig.Integral(kine_min, kine_max);
194 GetParamDef(
"VertexGenAlg", vertexGenID,
RgAlg(
"genie::VertexGenerator",
"Default") );
211 : fXSecModel( xsec_model ), fInteraction( new
Interaction(*interaction) ),
212 fHitNucleonBindingMode( binding_mode ), fMinAngleEM( min_angle_EM )
230 return *fInteraction;
235 return new FullQELdXSec(fXSecModel, fInteraction, fHitNucleonBindingMode, fMinAngleEM);
254 double cos_theta0 = xin[0];
255 double phi0 = xin[1];
258 double dummy_Eb = 0.;
262 fXSecModel, cos_theta0, phi0, dummy_Eb, fHitNucleonBindingMode, fMinAngleEM,
true);
Cross Section Calculation Interface.
TVector3 GenerateVertex(const Interaction *in, double A) const
bool fAverageOverNucleons
Interaction * GetInteractionPtr()
Cross Section Integrator Interface.
ROOT::Math::IntegrationMultiDim::Type IntegrationNDimTypeFromString(string type)
A simple [min,max] interval for doubles.
double Integrate(const XSecAlgorithmI *model, const Interaction *i) const
XSecIntegratorI interface implementation.
bool IsNucleus(void) const
Pure abstract base class. Defines the NuclearModelI interface to be implemented by any physics model ...
void SetHitNucPosition(double r)
RgDbl GetDouble(RgKey key) const
double DoEval(const double *xin) const
double ComputeFullQELPXSec(Interaction *interaction, const NuclearModelI *nucl_model, const XSecAlgorithmI *xsec_model, double cos_theta_0, double phi_0, double &Eb, QELEvGen_BindingMode_t hitNucleonBindingMode, double min_angle_EM=0., bool bind_nucleon=true)
enum genie::EQELEvGenBindingMode QELEvGen_BindingMode_t
void Configure(const Registry &config)
virtual const Registry & GetConfig(void) const
unsigned int NDim(void) const
Summary information for an interaction.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
const Interaction & GetInteraction() const
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
virtual void Configure(const Registry &config)
const Algorithm * GetAlgorithm(const AlgId &algid)
double func(double x, double y)
virtual bool ValidProcess(const Interaction *i) const =0
Can this cross section algorithm handle the input process?
const NuclearModelI * fNuclModel
Algorithm ID (algorithm name + configuration set name)
const XSecAlgorithmI * fXSecModel
void SetRemovalEnergy(double E) const
FullQELdXSec(const XSecAlgorithmI *xsec_model, const Interaction *interaction, QELEvGen_BindingMode_t binding_mode, double min_angle_EM)
RgStr GetString(RgKey key) const
static AlgFactory * Instance()
void SetMomentum3(const TVector3 &mom) const
A registry. Provides the container for algorithm configuration parameters.
const UInt_t kIAssumeFreeNucleon
QELEvGen_BindingMode_t StringToQELBindingMode(const std::string &mode_str)
Target * TgtPtr(void) const
const InitialState & InitState(void) const
bool GetParamDef(const RgKey &name, T &p, const T &def) const
The GENIE Algorithm Factory.
virtual bool GenerateNucleon(const Target &) const =0
ROOT::Math::IBaseFunctionMultiDim * Clone(void) const
double ProbeE(RefFrame_t rf) const
const UInt_t kISkipProcessChk
if set, skip process validity checks
const Algorithm * SubAlg(const RgKey ®istry_key) const