Public Member Functions | Private Attributes | List of all members
genie::utils::gsl::d2XSec_dQ2dydt_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_dQ2dydt_E:

Public Member Functions

 d2XSec_dQ2dydt_E (const XSecAlgorithmI *m, const Interaction *i)
 
 ~d2XSec_dQ2dydt_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 122 of file GSLXSecFunc.h.

Constructor & Destructor Documentation

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

Definition at line 189 of file GSLXSecFunc.cxx.

190  :
191 ROOT::Math::IBaseFunctionMultiDim(),
192 fModel(m),
193 fInteraction(i)
194 {
195 
196 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:134
const Interaction * fInteraction
Definition: GSLXSecFunc.h:135
genie::utils::gsl::d2XSec_dQ2dydt_E::~d2XSec_dQ2dydt_E ( )

Definition at line 197 of file GSLXSecFunc.cxx.

198 {
199 
200 }

Member Function Documentation

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

Definition at line 226 of file GSLXSecFunc.cxx.

References fInteraction, and fModel.

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

Definition at line 205 of file GSLXSecFunc.cxx.

References genie::units::cm2, E, fInteraction, fModel, genie::Interaction::KinePtr(), genie::kPSQ2yfE, genie::utils::kinematics::Q2(), genie::Kinematics::SetQ2(), genie::Kinematics::Sett(), genie::Kinematics::Sety(), confusionMatrixTree::t, genie::utils::kinematics::UpdateXFromQ2Y(), genie::XSecAlgorithmI::XSec(), xsec, and submit_syst::y.

206 {
207 // inputs:
208 // Q2 [-]
209 // y [-]
210 // t [-]
211 // outputs:
212 // differential cross section [10^-38 cm^2]
213 //
214  //double E = fInteraction->InitState().ProbeE(kRfLab);
215  double Q2 = xin[0];
216  double y = xin[1];
217  double t = xin[2];
218  fInteraction->KinePtr()->SetQ2(Q2);
219  fInteraction->KinePtr()->Sety(y);
220  fInteraction->KinePtr()->Sett(t);
222  double xsec = fModel->XSec(fInteraction, kPSQ2yfE);
223  return xsec/(1E-38 * units::cm2);
224 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
void SetQ2(double Q2, bool selected=false)
Definition: Kinematics.cxx:265
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
void Sett(double t, bool selected=false)
Definition: Kinematics.cxx:301
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:134
Double_t xsec[nknots]
Definition: testXsec.C:47
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:253
void UpdateXFromQ2Y(const Interaction *in)
Definition: KineUtils.cxx:1221
const Interaction * fInteraction
Definition: GSLXSecFunc.h:135
unsigned int genie::utils::gsl::d2XSec_dQ2dydt_E::NDim ( void  ) const

Definition at line 201 of file GSLXSecFunc.cxx.

202 {
203  return 3;
204 }

Member Data Documentation

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

Definition at line 135 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().

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

Definition at line 134 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().


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