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

#include <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 63 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 76 of file GSLXSecFunc.cxx.

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

Definition at line 84 of file GSLXSecFunc.cxx.

85 {
86 
87 }

Member Function Documentation

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

Definition at line 108 of file GSLXSecFunc.cxx.

109 {
110  return
112 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:75
const Interaction * fInteraction
Definition: GSLXSecFunc.h:76
double genie::utils::gsl::dXSec_dy_E::DoEval ( double  xin) const

Definition at line 92 of file GSLXSecFunc.cxx.

93 {
94 // inputs:
95 // y [-]
96 // outputs:
97 // differential cross section [10^-38 cm^2]
98 //
99  double y = xin;
100  fInteraction->KinePtr()->Sety(y);
101  double xsec = fModel->XSec(fInteraction, kPSyfE);
102 #ifdef __GENIE_LOW_LEVEL_MESG_ENABLED__
103  LOG("GXSecFunc", pDEBUG) << "xsec(y = " << y << ") = " << xsec;
104 #endif
105  return xsec/(1E-38 * units::cm2);
106 }
const XSecAlgorithmI * fModel
Definition: GSLXSecFunc.h:75
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:76
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
static constexpr double cm2
Definition: Units.h:69
void Sety(double y, bool selected=false)
Definition: Kinematics.cxx:243
#define pDEBUG
Definition: Messenger.h:63
unsigned int genie::utils::gsl::dXSec_dy_E::NDim ( void  ) const

Definition at line 88 of file GSLXSecFunc.cxx.

89 {
90  return 1;
91 }

Member Data Documentation

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

Definition at line 76 of file GSLXSecFunc.h.

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

Definition at line 75 of file GSLXSecFunc.h.


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