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

Public Member Functions

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

Private Attributes

const XSecAlgorithmIfModel
 
const InteractionfInteraction
 
double fx
 

Detailed Description

Definition at line 185 of file GSLXSecFunc.h.

Constructor & Destructor Documentation

genie::utils::gsl::d2XSec_dxdy_Ex::d2XSec_dxdy_Ex ( const XSecAlgorithmI m,
const Interaction i,
double  x 
)

Definition at line 322 of file GSLXSecFunc.cxx.

323  :
324 ROOT::Math::IBaseFunctionOneDim(),
325 fModel(m),
326 fInteraction(i),
327 fx(x)
328 {
329 
330 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:197
const Interaction * fInteraction
Definition: GSLXSecFunc.h:198
genie::utils::gsl::d2XSec_dxdy_Ex::~d2XSec_dxdy_Ex ( )

Definition at line 331 of file GSLXSecFunc.cxx.

332 {
333 
334 }

Member Function Documentation

ROOT::Math::IBaseFunctionOneDim * genie::utils::gsl::d2XSec_dxdy_Ex::Clone ( void  ) const

Definition at line 353 of file GSLXSecFunc.cxx.

References fInteraction, fModel, and fx.

double genie::utils::gsl::d2XSec_dxdy_Ex::DoEval ( double  xin) const

Definition at line 339 of file GSLXSecFunc.cxx.

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

340 {
341 // inputs:
342 // y [-]
343 // outputs:
344 // differential cross section [10^-38 cm^2]
345 //
346  double y = xin;
348  fInteraction->KinePtr()->Sety(y);
349  double xsec = fModel->XSec(fInteraction, kPSxyfE);
350  return xsec/(1E-38 * units::cm2);
351 }
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
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:197
Float_t E
Definition: plot.C:20
Double_t xsec[nknots]
Definition: testXsec.C:47
void Setx(double x, bool selected=false)
Definition: Kinematics.cxx:241
const Interaction * fInteraction
Definition: GSLXSecFunc.h:198
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:253
unsigned int genie::utils::gsl::d2XSec_dxdy_Ex::NDim ( void  ) const

Definition at line 335 of file GSLXSecFunc.cxx.

336 {
337  return 1;
338 }

Member Data Documentation

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

Definition at line 198 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().

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

Definition at line 197 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().

double genie::utils::gsl::d2XSec_dxdy_Ex::fx
private

Definition at line 199 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().


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