StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
HepMC::PdfInfo Class Reference

The PdfInfo class stores PDF information. More...

#include <PdfInfo.h>

Public Member Functions

 PdfInfo ()
 default constructor
 
 PdfInfo (int i1, int i2, double x1, double x2, double q, double p1, double p2, int pdf_id1=0, int pdf_id2=0)
 all values EXCEPT pdf_id1 and pdf_id2 must be provided
 
 PdfInfo (PdfInfo const &orig)
 copy constructor
 
PdfInfooperator= (PdfInfo const &rhs)
 make a copy
 
void swap (PdfInfo &other)
 swap two PdfInfo objects
 
bool operator== (const PdfInfo &) const
 check for equality More...
 
bool operator!= (const PdfInfo &) const
 check for inequality More...
 
int id1 () const
 flavour code of first parton
 
int id2 () const
 flavour code of second parton
 
int pdf_id1 () const
 LHAPDF set id of first parton.
 
int pdf_id2 () const
 LHAPDF set id of second parton.
 
double x1 () const
 fraction of beam momentum carried by first parton ("beam side")
 
double x2 () const
 fraction of beam momentum carried by second parton ("target side")
 
double scalePDF () const
 Q-scale used in evaluation of PDF's (in GeV)
 
double pdf1 () const
 PDF (id1, x1, Q) - x*f(x)
 
double pdf2 () const
 PDF (id2, x2, Q) - x*f(x)
 
bool is_valid () const
 verify that the instance contains non-zero information
 
void set_id1 (const int &i)
 set flavour code of first parton
 
void set_id2 (const int &i)
 set flavour code of second parton
 
void set_pdf_id1 (const int &i)
 set LHAPDF set id of first parton
 
void set_pdf_id2 (const int &i)
 set LHAPDF set id of second parton
 
void set_x1 (const double &f)
 set fraction of beam momentum carried by first parton ("beam side")
 
void set_x2 (const double &f)
 set fraction of beam momentum carried by second parton ("target side")
 
void set_scalePDF (const double &f)
 set Q-scale used in evaluation of PDF's (in GeV)
 
void set_pdf1 (const double &f)
 set x*f(x) of first parton
 
void set_pdf2 (const double &f)
 set x*f(x) of second parton
 

Detailed Description

The PdfInfo class stores PDF information.

HepMC::PdfInfo stores additional PDF information for a GenEvent. Creation and use of this information is optional.

Input parton flavour codes id1 & id2 are expected to obey the PDG code conventions, especially g = 21.

The contents of pdf1 and pdf2 are expected to be x*f(x). The LHAPDF set ids are the entries in the first column of http:///projects.hepforge.org/lhapdf/PDFsets.index

Definition at line 37 of file PdfInfo.h.

Member Function Documentation

bool HepMC::PdfInfo::operator!= ( const PdfInfo a) const
inline

check for inequality

any nonmatching member generates inequality

Definition at line 196 of file PdfInfo.h.

bool HepMC::PdfInfo::operator== ( const PdfInfo a) const
inline

check for equality

equality requires that each member match

Definition at line 182 of file PdfInfo.h.

References id1(), id2(), pdf1(), pdf2(), pdf_id1(), pdf_id2(), scalePDF(), x1(), and x2().


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