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

#include <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 236 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 447 of file GSLXSecFunc.cxx.

448  :
449 ROOT::Math::IBaseFunctionOneDim(),
450 fModel(m),
451 fInteraction(i),
452 fx(x)
453 {
454 
455 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:248
const Interaction * fInteraction
Definition: GSLXSecFunc.h:249
list x
Definition: train.py:276
genie::utils::gsl::d2XSec_dxdy_Ex::~d2XSec_dxdy_Ex ( )

Definition at line 456 of file GSLXSecFunc.cxx.

457 {
458 
459 }

Member Function Documentation

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

Definition at line 464 of file GSLXSecFunc.cxx.

465 {
466 // inputs:
467 // y [-]
468 // outputs:
469 // differential cross section [10^-38 cm^2]
470 //
471  double y = xin;
473  fInteraction->KinePtr()->Sety(y);
474  double xsec = fModel->XSec(fInteraction, kPSxyfE);
475  return xsec/(1E-38 * units::cm2);
476 }
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.
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:248
static constexpr double cm2
Definition: Units.h:69
void Setx(double x, bool selected=false)
Definition: Kinematics.cxx:231
const Interaction * fInteraction
Definition: GSLXSecFunc.h:249
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:243
unsigned int genie::utils::gsl::d2XSec_dxdy_Ex::NDim ( void  ) const

Definition at line 460 of file GSLXSecFunc.cxx.

461 {
462  return 1;
463 }

Member Data Documentation

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

Definition at line 249 of file GSLXSecFunc.h.

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

Definition at line 248 of file GSLXSecFunc.h.

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

Definition at line 250 of file GSLXSecFunc.h.


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