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

#include <QELEventGeneratorSM.h>

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

Public Member Functions

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

Private Attributes

const XSecAlgorithmIfModel
 
const InteractionfInteraction
 

Detailed Description

Definition at line 112 of file QELEventGeneratorSM.h.

Constructor & Destructor Documentation

d1XSecSM_dQ2_E::d1XSecSM_dQ2_E ( const XSecAlgorithmI m,
const Interaction i 
)

Definition at line 687 of file QELEventGeneratorSM.cxx.

Referenced by Clone().

689  : ROOT::Math::IBaseFunctionMultiDim(),
690  fModel(m),
691  fInteraction(i)
692 {
693 }
d1XSecSM_dQ2_E::~d1XSecSM_dQ2_E ( )

Definition at line 694 of file QELEventGeneratorSM.cxx.

695 {
696 }

Member Function Documentation

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

Definition at line 711 of file QELEventGeneratorSM.cxx.

References d1XSecSM_dQ2_E(), fInteraction, and fModel.

712 {
713  return new d1XSecSM_dQ2_E(fModel, fInteraction);
714 }
d1XSecSM_dQ2_E(const XSecAlgorithmI *, const Interaction *)
double d1XSecSM_dQ2_E::DoEval ( const double *  xin) const

Definition at line 701 of file QELEventGeneratorSM.cxx.

References fInteraction, fModel, genie::Interaction::KinePtr(), genie::kKVQ2, genie::kPSQ2fE, genie::Kinematics::SetKV(), and genie::XSecAlgorithmI::XSec().

702 {
703 // outputs:
704 // differential cross section
705 //
706  fInteraction->KinePtr()->SetKV(kKVQ2, xin[0]);
707  double xsec = -fModel->XSec(fInteraction, kPSQ2fE);
708  return xsec;
709 }
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 d1XSecSM_dQ2_E::NDim ( void  ) const

Definition at line 697 of file QELEventGeneratorSM.cxx.

698 {
699  return 1;
700 }

Member Data Documentation

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

Definition at line 125 of file QELEventGeneratorSM.h.

Referenced by Clone(), and DoEval().

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

Definition at line 124 of file QELEventGeneratorSM.h.

Referenced by Clone(), and DoEval().


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