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

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Physics/XSectionIntegration/GSLXSecFunc.h"

Inheritance diagram for genie::utils::gsl::dXSec_dy_E:

Public Member Functions

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

Private Attributes

const XSecAlgorithmIfModel
 
const InteractionfInteraction
 

Detailed Description

Definition at line 59 of file GSLXSecFunc.h.

Constructor & Destructor Documentation

genie::utils::gsl::dXSec_dy_E::dXSec_dy_E ( const XSecAlgorithmI m,
const Interaction i 
)

Definition at line 73 of file GSLXSecFunc.cxx.

74  :
75 ROOT::Math::IBaseFunctionOneDim(),
76 fModel(m),
77 fInteraction(i)
78 {
79 
80 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:71
const Interaction * fInteraction
Definition: GSLXSecFunc.h:72
genie::utils::gsl::dXSec_dy_E::~dXSec_dy_E ( )

Definition at line 81 of file GSLXSecFunc.cxx.

82 {
83 
84 }

Member Function Documentation

ROOT::Math::IBaseFunctionOneDim * genie::utils::gsl::dXSec_dy_E::Clone ( void  ) const

Definition at line 105 of file GSLXSecFunc.cxx.

References fInteraction, and fModel.

106 {
107  return
109 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:71
const Interaction * fInteraction
Definition: GSLXSecFunc.h:72
double genie::utils::gsl::dXSec_dy_E::DoEval ( double  xin) const

Definition at line 89 of file GSLXSecFunc.cxx.

References genie::units::cm2, E, fInteraction, fModel, genie::Interaction::KinePtr(), genie::kPSyfE, LOG, pDEBUG, genie::Kinematics::Sety(), genie::XSecAlgorithmI::XSec(), xsec, and submit_syst::y.

90 {
91 // inputs:
92 // y [-]
93 // outputs:
94 // differential cross section [10^-38 cm^2]
95 //
96  double y = xin;
97  fInteraction->KinePtr()->Sety(y);
98  double xsec = fModel->XSec(fInteraction, kPSyfE);
99 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
100  LOG("GXSecFunc", pDEBUG) << "xsec(y = " << y << ") = " << xsec;
101 #endif
102  return xsec/(1E-38 * units::cm2);
103 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:71
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 Interaction * fInteraction
Definition: GSLXSecFunc.h:72
static const double cm2
Definition: Units.h:77
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
Float_t E
Definition: plot.C:20
Double_t xsec[nknots]
Definition: testXsec.C:47
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:253
#define pDEBUG
Definition: Messenger.h:64
unsigned int genie::utils::gsl::dXSec_dy_E::NDim ( void  ) const

Definition at line 85 of file GSLXSecFunc.cxx.

86 {
87  return 1;
88 }

Member Data Documentation

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

Definition at line 72 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().

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

Definition at line 71 of file GSLXSecFunc.h.

Referenced by Clone(), and DoEval().


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