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::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:
Inheritance graph
[legend]
Collaboration diagram for genie::utils::gsl::wrap::KovQELCharmIntegrand:
Collaboration graph
[legend]

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 <c.andreopoulos cern.ch> University of Liverpool
Created:
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.

References fPDF, fPdgC, and fQ2.

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:1077
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.

References genie::pdg::IsProton(), LOG, and pDEBUG.

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:336
#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.

Referenced by KovQELCharmIntegrand().

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

Definition at line 120 of file KovalenkoQELCharmPXSec.h.

Referenced by KovQELCharmIntegrand().

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

Definition at line 119 of file KovalenkoQELCharmPXSec.h.

Referenced by KovQELCharmIntegrand().


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