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

Public Member Functions

 d3XSec_dxdydt_E (const XSecAlgorithmI *m, const Interaction *i)
 
 ~d3XSec_dxdydt_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 143 of file GSLXSecFunc.h.

Constructor & Destructor Documentation

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

Definition at line 232 of file GSLXSecFunc.cxx.

233  :
234 ROOT::Math::IBaseFunctionMultiDim(),
235 fModel(m),
236 fInteraction(i)
237 {
238 
239 }
const Interaction * fInteraction
Definition: GSLXSecFunc.h:156
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:155
genie::utils::gsl::d3XSec_dxdydt_E::~d3XSec_dxdydt_E ( )

Definition at line 240 of file GSLXSecFunc.cxx.

241 {
242 
243 }

Member Function Documentation

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

Definition at line 268 of file GSLXSecFunc.cxx.

References fInteraction, and fModel.

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

Definition at line 248 of file GSLXSecFunc.cxx.

References genie::units::cm2, E, fInteraction, fModel, genie::Interaction::KinePtr(), genie::kPSxytfE, genie::Kinematics::Sett(), genie::Kinematics::Setx(), genie::Kinematics::Sety(), confusionMatrixTree::t, submit_syst::x, genie::XSecAlgorithmI::XSec(), xsec, and submit_syst::y.

249 {
250 // inputs:
251 // x [-]
252 // y [-]
253 // t [-]
254 // outputs:
255 // differential cross section [10^-38 cm^2]
256 //
257  //double E = fInteraction->InitState().ProbeE(kRfLab);
258  double x = xin[0];
259  double y = xin[1];
260  double t = xin[2];
261  fInteraction->KinePtr()->Setx(x);
262  fInteraction->KinePtr()->Sety(y);
263  fInteraction->KinePtr()->Sett(t);
264  double xsec = fModel->XSec(fInteraction, kPSxytfE);
265  return xsec/(1E-38 * units::cm2);
266 }
const Interaction * fInteraction
Definition: GSLXSecFunc.h:156
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:155
Double_t xsec[nknots]
Definition: testXsec.C:47
void Setx(double x, bool selected=false)
Definition: Kinematics.cxx:241
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:253
unsigned int genie::utils::gsl::d3XSec_dxdydt_E::NDim ( void  ) const

Definition at line 244 of file GSLXSecFunc.cxx.

245 {
246  return 3;
247 }

Member Data Documentation

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

Definition at line 156 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().

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

Definition at line 155 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().


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