Public Member Functions | Private Attributes | List of all members
genie::utils::gsl::d2XSec_dxdy_E Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Physics/XSectionIntegration/GSLXSecFunc.h"

Inheritance diagram for genie::utils::gsl::d2XSec_dxdy_E:

Public Member Functions

 d2XSec_dxdy_E (const XSecAlgorithmI *m, const Interaction *i)
 
 ~d2XSec_dxdy_E ()
 
unsigned int NDim (void) const
 
double DoEval (const double *xin) const
 
ROOT::Math::IBaseFunctionMultiDim * Clone (void) const
 

Private Attributes

const XSecAlgorithmIfModel
 
const InteractionfInteraction
 

Detailed Description

Definition at line 80 of file GSLXSecFunc.h.

Constructor & Destructor Documentation

genie::utils::gsl::d2XSec_dxdy_E::d2XSec_dxdy_E ( const XSecAlgorithmI m,
const Interaction i 
)

Definition at line 111 of file GSLXSecFunc.cxx.

112  :
113 ROOT::Math::IBaseFunctionMultiDim(),
114 fModel(m),
115 fInteraction(i)
116 {
117 
118 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:92
const Interaction * fInteraction
Definition: GSLXSecFunc.h:93
genie::utils::gsl::d2XSec_dxdy_E::~d2XSec_dxdy_E ( )

Definition at line 119 of file GSLXSecFunc.cxx.

120 {
121 
122 }

Member Function Documentation

ROOT::Math::IBaseFunctionMultiDim * genie::utils::gsl::d2XSec_dxdy_E::Clone ( void  ) const

Definition at line 144 of file GSLXSecFunc.cxx.

References fInteraction, and fModel.

double genie::utils::gsl::d2XSec_dxdy_E::DoEval ( const double *  xin) const

Definition at line 127 of file GSLXSecFunc.cxx.

References genie::units::cm2, E, fInteraction, fModel, genie::Interaction::KinePtr(), genie::kPSxyfE, genie::Kinematics::Setx(), genie::Kinematics::Sety(), genie::utils::kinematics::UpdateWQ2FromXY(), submit_syst::x, genie::XSecAlgorithmI::XSec(), xsec, and submit_syst::y.

128 {
129 // inputs:
130 // x [-]
131 // y [-]
132 // outputs:
133 // differential cross section [10^-38 cm^2]
134 //
135  double x = xin[0];
136  double y = xin[1];
137  fInteraction->KinePtr()->Setx(x);
138  fInteraction->KinePtr()->Sety(y);
140  double xsec = fModel->XSec(fInteraction, kPSxyfE);
141  return xsec/(1E-38 * units::cm2);
142 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:92
Kinematics * KinePtr(void) const
Definition: Interaction.h:76
virtual double XSec(const Interaction *i, KinePhaseSpace_t k=kPSfE) const =0
Compute the cross section for the input interaction.
static const double cm2
Definition: Units.h:77
Float_t E
Definition: plot.C:20
const Interaction * fInteraction
Definition: GSLXSecFunc.h:93
Double_t xsec[nknots]
Definition: testXsec.C:47
void Setx(double x, bool selected=false)
Definition: Kinematics.cxx:241
void UpdateWQ2FromXY(const Interaction *in)
Definition: KineUtils.cxx:1185
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:253
unsigned int genie::utils::gsl::d2XSec_dxdy_E::NDim ( void  ) const

Definition at line 123 of file GSLXSecFunc.cxx.

124 {
125  return 2;
126 }

Member Data Documentation

const Interaction* genie::utils::gsl::d2XSec_dxdy_E::fInteraction
private

Definition at line 93 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().

const XSecAlgorithmI* genie::utils::gsl::d2XSec_dxdy_E::fModel
private

Definition at line 92 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().


The documentation for this class was generated from the following files: