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::d3XSecSM_dQ2dvdkF_E Class Reference

#include <QELEventGeneratorSM.h>

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

Public Member Functions

 d3XSecSM_dQ2dvdkF_E (const XSecAlgorithmI *, const Interaction *, double pF)
 
 ~d3XSecSM_dQ2dvdkF_E ()
 
unsigned int NDim (void) const
 
double DoEval (const double *) const
 
ROOT::Math::IBaseFunctionMultiDim * Clone (void) const
 

Private Attributes

const XSecAlgorithmIfModel
 
const InteractionfInteraction
 
const double fpF
 

Detailed Description

Definition at line 92 of file QELEventGeneratorSM.h.

Constructor & Destructor Documentation

d3XSecSM_dQ2dvdkF_E::d3XSecSM_dQ2dvdkF_E ( const XSecAlgorithmI m,
const Interaction i,
double  pF 
)

Definition at line 654 of file QELEventGeneratorSM.cxx.

Referenced by Clone().

657  : ROOT::Math::IBaseFunctionMultiDim(),
658  fModel(m),
659  fInteraction(i),
660  fpF(pF)
661 {
662 }
d3XSecSM_dQ2dvdkF_E::~d3XSecSM_dQ2dvdkF_E ( )

Definition at line 663 of file QELEventGeneratorSM.cxx.

664 {
665 }

Member Function Documentation

ROOT::Math::IBaseFunctionMultiDim * d3XSecSM_dQ2dvdkF_E::Clone ( void  ) const

Definition at line 682 of file QELEventGeneratorSM.cxx.

References d3XSecSM_dQ2dvdkF_E(), fInteraction, fModel, and fpF.

683 {
685 }
d3XSecSM_dQ2dvdkF_E(const XSecAlgorithmI *, const Interaction *, double pF)
double d3XSecSM_dQ2dvdkF_E::DoEval ( const double *  xin) const

Definition at line 670 of file QELEventGeneratorSM.cxx.

References fInteraction, fModel, fpF, genie::Interaction::KinePtr(), genie::kKVPn, genie::kKVQ2, genie::kKVv, genie::kPSQ2vpfE, genie::Kinematics::SetKV(), and genie::XSecAlgorithmI::XSec().

671 {
672 // outputs:
673 // differential cross section
674 //
675  fInteraction->KinePtr()->SetKV(kKVQ2, xin[0]);
676  fInteraction->KinePtr()->SetKV(kKVv, xin[1]);
678  double xsec = -fModel->XSec(fInteraction, kPSQ2vpfE);
679  return xsec;
680 }
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.
void SetKV(KineVar_t kv, double value)
Definition: Kinematics.cxx:335
unsigned int d3XSecSM_dQ2dvdkF_E::NDim ( void  ) const

Definition at line 666 of file QELEventGeneratorSM.cxx.

667 {
668  return 2;
669 }

Member Data Documentation

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

Definition at line 105 of file QELEventGeneratorSM.h.

Referenced by Clone(), and DoEval().

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

Definition at line 104 of file QELEventGeneratorSM.h.

Referenced by Clone(), and DoEval().

const double genie::utils::gsl::d3XSecSM_dQ2dvdkF_E::fpF
private

Definition at line 106 of file QELEventGeneratorSM.h.

Referenced by Clone(), and DoEval().


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