GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
genie::utils::gsl::d2XSec_dxdy_Ey Class Reference

#include <GSLXSecFunc.h>

Inheritance diagram for genie::utils::gsl::d2XSec_dxdy_Ey:
Inheritance graph
[legend]
Collaboration diagram for genie::utils::gsl::d2XSec_dxdy_Ey:
Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

const XSecAlgorithmIfModel
 
const InteractionfInteraction
 
double fy
 

Detailed Description

Definition at line 258 of file GSLXSecFunc.h.

Constructor & Destructor Documentation

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

Definition at line 484 of file GSLXSecFunc.cxx.

485  :
486 ROOT::Math::IBaseFunctionOneDim(),
487 fModel(m),
488 fInteraction(i),
489 fy(y)
490 {
491 
492 }
const Interaction * fInteraction
Definition: GSLXSecFunc.h:271
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:270
genie::utils::gsl::d2XSec_dxdy_Ey::~d2XSec_dxdy_Ey ( )

Definition at line 493 of file GSLXSecFunc.cxx.

494 {
495 
496 }

Member Function Documentation

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

Definition at line 501 of file GSLXSecFunc.cxx.

References genie::units::cm2, and genie::kPSxyfE.

502 {
503 // inputs:
504 // x [-]
505 // outputs:
506 // differential cross section [10^-38 cm^2]
507 //
508  double x = xin;
509  fInteraction->KinePtr()->Setx(x);
511  double xsec = fModel->XSec(fInteraction, kPSxyfE);
512  return xsec/(1E-38 * units::cm2);
513 }
Kinematics * KinePtr(void) const
Definition: Interaction.h:76
const Interaction * fInteraction
Definition: GSLXSecFunc.h:271
static constexpr double cm2
Definition: Units.h:69
virtual double XSec(const Interaction *i, KinePhaseSpace_t k=kPSfE) const =0
Compute the cross section for the input interaction.
void Setx(double x, bool selected=false)
Definition: Kinematics.cxx:231
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:270
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:243
unsigned int genie::utils::gsl::d2XSec_dxdy_Ey::NDim ( void  ) const

Definition at line 497 of file GSLXSecFunc.cxx.

498 {
499  return 1;
500 }

Member Data Documentation

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

Definition at line 271 of file GSLXSecFunc.h.

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

Definition at line 270 of file GSLXSecFunc.h.

double genie::utils::gsl::d2XSec_dxdy_Ey::fy
private

Definition at line 272 of file GSLXSecFunc.h.


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