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

#include <GSLXSecFunc.h>

Inheritance diagram for genie::utils::gsl::d2XSec_dWdQ2_EW:

Public Member Functions

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

Private Attributes

const XSecAlgorithmIfModel
 
const InteractionfInteraction
 
double fW
 

Detailed Description

Definition at line 280 of file GSLXSecFunc.h.

Constructor & Destructor Documentation

genie::utils::gsl::d2XSec_dWdQ2_EW::d2XSec_dWdQ2_EW ( const XSecAlgorithmI m,
const Interaction i,
double  W 
)

Definition at line 521 of file GSLXSecFunc.cxx.

522  :
523 ROOT::Math::IBaseFunctionOneDim(),
524 fModel(m),
525 fInteraction(i),
526 fW(W)
527 {
528 
529 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:292
const Interaction * fInteraction
Definition: GSLXSecFunc.h:293
genie::utils::gsl::d2XSec_dWdQ2_EW::~d2XSec_dWdQ2_EW ( )

Definition at line 530 of file GSLXSecFunc.cxx.

531 {
532 
533 }

Member Function Documentation

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

Definition at line 538 of file GSLXSecFunc.cxx.

539 {
540 // inputs:
541 // Q2 [GeV^2]
542 // outputs:
543 // differential cross section [10^-38 cm^2/GeV^3]
544 //
545  double Q2 = xin;
547  fInteraction->KinePtr()->SetQ2(Q2);
548  double xsec = fModel->XSec(fInteraction, kPSWQ2fE);
549  return xsec/(1E-38 * units::cm2);
550 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:1064
void SetQ2(double Q2, bool selected=false)
Definition: Kinematics.cxx:255
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:292
static constexpr double cm2
Definition: Units.h:69
void SetW(double W, bool selected=false)
Definition: Kinematics.cxx:279
const Interaction * fInteraction
Definition: GSLXSecFunc.h:293
unsigned int genie::utils::gsl::d2XSec_dWdQ2_EW::NDim ( void  ) const

Definition at line 534 of file GSLXSecFunc.cxx.

535 {
536  return 1;
537 }

Member Data Documentation

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

Definition at line 293 of file GSLXSecFunc.h.

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

Definition at line 292 of file GSLXSecFunc.h.

double genie::utils::gsl::d2XSec_dWdQ2_EW::fW
private

Definition at line 294 of file GSLXSecFunc.h.


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