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

Auxiliary scalar function for the internal integration in Kovalenko QEL charm production cross section algorithm. More...

#include <KovalenkoQELCharmPXSec.h>

Inheritance diagram for genie::utils::gsl::wrap::KovQELCharmIntegrand:

Public Member Functions

 KovQELCharmIntegrand (PDF *pdf, double Q2, int nucleon_pdgc)
 
 ~KovQELCharmIntegrand ()
 
unsigned int NDim (void) const
 
double DoEval (double xin) const
 
ROOT::Math::IBaseFunctionOneDim * Clone (void) const
 

Private Attributes

PDFfPDF
 
double fQ2
 
int fPdgC
 

Detailed Description

Auxiliary scalar function for the internal integration in Kovalenko QEL charm production cross section algorithm.

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

February 20, 2006

Definition at line 108 of file KovalenkoQELCharmPXSec.h.

Constructor & Destructor Documentation

utils::gsl::wrap::KovQELCharmIntegrand::KovQELCharmIntegrand ( PDF pdf,
double  Q2,
int  nucleon_pdgc 
)

Definition at line 331 of file KovalenkoQELCharmPXSec.cxx.

332  :
333 ROOT::Math::IBaseFunctionOneDim()
334 {
335  fPDF = pdf;
336  fQ2 = TMath::Max(0.3, Q2);
337  fPdgC = nucleon_pdgc;
338 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:1064
utils::gsl::wrap::KovQELCharmIntegrand::~KovQELCharmIntegrand ( )

Definition at line 340 of file KovalenkoQELCharmPXSec.cxx.

341 {
342 
343 }

Member Function Documentation

ROOT::Math::IBaseFunctionOneDim * utils::gsl::wrap::KovQELCharmIntegrand::Clone ( void  ) const
double utils::gsl::wrap::KovQELCharmIntegrand::DoEval ( double  xin) const

Definition at line 350 of file KovalenkoQELCharmPXSec.cxx.

351 {
352  if(xin<0 || xin>1) return 0.;
353 
354  fPDF->Calculate(xin, fQ2);
355  bool isP = pdg::IsProton(fPdgC);
356  double f = (isP) ? fPDF->DownValence() : fPDF->UpValence();
357 
358  LOG("QELCharmXSec", pDEBUG)
359  << "f(xin = " << xin << ", Q2 = " << fQ2 << ") = " << f;
360 
361  return f;
362 }
double DownValence(void) const
Definition: PDF.h:51
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:333
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
void Calculate(double x, double q2)
Definition: PDF.cxx:49
double UpValence(void) const
Definition: PDF.h:50
#define pDEBUG
Definition: Messenger.h:63
unsigned int utils::gsl::wrap::KovQELCharmIntegrand::NDim ( void  ) const

Definition at line 345 of file KovalenkoQELCharmPXSec.cxx.

346 {
347  return 1;
348 }

Member Data Documentation

PDF* genie::utils::gsl::wrap::KovQELCharmIntegrand::fPDF
private

Definition at line 118 of file KovalenkoQELCharmPXSec.h.

int genie::utils::gsl::wrap::KovQELCharmIntegrand::fPdgC
private

Definition at line 120 of file KovalenkoQELCharmPXSec.h.

double genie::utils::gsl::wrap::KovQELCharmIntegrand::fQ2
private

Definition at line 119 of file KovalenkoQELCharmPXSec.h.


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