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 "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Physics/Charm/XSection/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 <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

February 20, 2006

Definition at line 102 of file KovalenkoQELCharmPXSec.h.

Constructor & Destructor Documentation

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

Definition at line 345 of file KovalenkoQELCharmPXSec.cxx.

References fPDF, fPdgC, fQ2, and RunSnowGlobes::pdf.

346  :
347 ROOT::Math::IBaseFunctionOneDim()
348 {
349  fPDF = pdf;
350  fQ2 = TMath::Max(0.3, Q2);
351  fPdgC = nucleon_pdgc;
352 }
double Q2(const Interaction *const i)
Definition: KineUtils.cxx:991
utils::gsl::wrap::KovQELCharmIntegrand::~KovQELCharmIntegrand ( )

Definition at line 354 of file KovalenkoQELCharmPXSec.cxx.

355 {
356 
357 }

Member Function Documentation

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

Definition at line 379 of file KovalenkoQELCharmPXSec.cxx.

References fPDF, fPdgC, and fQ2.

double utils::gsl::wrap::KovQELCharmIntegrand::DoEval ( double  xin) const

Definition at line 364 of file KovalenkoQELCharmPXSec.cxx.

References genie::PDF::Calculate(), genie::PDF::DownValence(), MakeMiniprodValidationCuts::f, fPDF, fPdgC, fQ2, genie::pdg::IsProton(), LOG, pDEBUG, and genie::PDF::UpValence().

365 {
366  if(xin<0 || xin>1) return 0.;
367 
368  fPDF->Calculate(xin, fQ2);
369  bool isP = pdg::IsProton(fPdgC);
370  double f = (isP) ? fPDF->DownValence() : fPDF->UpValence();
371 
372  LOG("QELCharmXSec", pDEBUG)
373  << "f(xin = " << xin << ", Q2 = " << fQ2 << ") = " << f;
374 
375  return f;
376 }
double DownValence(void) const
Definition: PDF.h:52
bool IsProton(int pdgc)
Definition: PDGUtils.cxx:299
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:97
void Calculate(double x, double q2)
Definition: PDF.cxx:55
double UpValence(void) const
Definition: PDF.h:51
#define pDEBUG
Definition: Messenger.h:64
unsigned int utils::gsl::wrap::KovQELCharmIntegrand::NDim ( void  ) const

Definition at line 359 of file KovalenkoQELCharmPXSec.cxx.

360 {
361  return 1;
362 }

Member Data Documentation

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

Definition at line 112 of file KovalenkoQELCharmPXSec.h.

Referenced by Clone(), DoEval(), and KovQELCharmIntegrand().

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

Definition at line 114 of file KovalenkoQELCharmPXSec.h.

Referenced by Clone(), DoEval(), and KovQELCharmIntegrand().

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

Definition at line 113 of file KovalenkoQELCharmPXSec.h.

Referenced by Clone(), DoEval(), and KovQELCharmIntegrand().


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