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

#include <QELEventGeneratorSM.h>

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

Public Member Functions

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

Private Attributes

const InteractionfInteraction
 
SmithMonizUtilssm_utils
 

Detailed Description

Definition at line 131 of file QELEventGeneratorSM.h.

Constructor & Destructor Documentation

dv_dQ2_E::dv_dQ2_E ( const Interaction i)

Definition at line 716 of file QELEventGeneratorSM.cxx.

References fInteraction, genie::AlgFactory::GetAlgorithm(), genie::AlgFactory::Instance(), genie::SmithMonizUtils::SetInteraction(), and sm_utils.

Referenced by Clone().

716  : ROOT::Math::IBaseFunctionMultiDim(),
717  fInteraction(i)
718 {
719  AlgFactory * algf = AlgFactory::Instance();
720  sm_utils = const_cast<SmithMonizUtils *>(dynamic_cast<const SmithMonizUtils *>(algf->GetAlgorithm("genie::SmithMonizUtils","Default")));
722 }
void SetInteraction(const Interaction *i)
const Interaction * fInteraction
const Algorithm * GetAlgorithm(const AlgId &algid)
Definition: AlgFactory.cxx:75
Contains auxiliary functions for Smith-Moniz model. .
static AlgFactory * Instance()
Definition: AlgFactory.cxx:64
The GENIE Algorithm Factory.
Definition: AlgFactory.h:39
dv_dQ2_E::~dv_dQ2_E ( )

Definition at line 723 of file QELEventGeneratorSM.cxx.

724 {
725 }

Member Function Documentation

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

Definition at line 740 of file QELEventGeneratorSM.cxx.

References dv_dQ2_E(), and fInteraction.

741 {
742  return new dv_dQ2_E(fInteraction);
743 }
const Interaction * fInteraction
double dv_dQ2_E::DoEval ( const double *  xin) const

Definition at line 730 of file QELEventGeneratorSM.cxx.

References genie::Range1D_t::max, genie::Range1D_t::min, genie::utils::kinematics::Q2(), sm_utils, and genie::SmithMonizUtils::vQES_SM_lim().

731 {
732 // outputs:
733 // differential cross section
734 //
735  double Q2 = xin[0];
736  Range1D_t rv = sm_utils->vQES_SM_lim(Q2);
737  return rv.min-rv.max;
738 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:1077
A simple [min,max] interval for doubles.
Definition: Range1.h:42
Range1D_t vQES_SM_lim(double Q2) const
double max
Definition: Range1.h:53
double min
Definition: Range1.h:52
unsigned int dv_dQ2_E::NDim ( void  ) const

Definition at line 726 of file QELEventGeneratorSM.cxx.

727 {
728  return 1;
729 }

Member Data Documentation

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

Definition at line 143 of file QELEventGeneratorSM.h.

Referenced by Clone(), and dv_dQ2_E().

SmithMonizUtils* genie::utils::gsl::dv_dQ2_E::sm_utils
mutableprivate

Definition at line 144 of file QELEventGeneratorSM.h.

Referenced by DoEval(), and dv_dQ2_E().


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