![]() |
HepMC Reference DocumentationHepMC |
#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 (PdfInfo const &orig) | |
copy constructor | |
PdfInfo & | operator= (PdfInfo const &rhs) |
make a copy | |
void | swap (PdfInfo &other) |
swap two PdfInfo objects | |
bool | operator== (const PdfInfo &) const |
check for equality | |
bool | operator!= (const PdfInfo &) const |
check for inequality | |
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 |
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.
HepMC::PdfInfo::PdfInfo | ( | int | i1, | |
int | i2, | |||
double | x1, | |||
double | x2, | |||
double | q, | |||
double | p1, | |||
double | p2, | |||
int | pdf_id1 = 0 , |
|||
int | pdf_id2 = 0 | |||
) | [inline] |
HepMC::PdfInfo::PdfInfo | ( | PdfInfo const & | orig | ) | [inline] |
int HepMC::PdfInfo::id1 | ( | ) | const [inline] |
flavour code of first parton
Definition at line 75 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
int HepMC::PdfInfo::id2 | ( | ) | const [inline] |
flavour code of second parton
Definition at line 77 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
bool HepMC::PdfInfo::is_valid | ( | ) | const [inline] |
verify that the instance contains non-zero information
Definition at line 202 of file PdfInfo.h.
Referenced by HepMC::GenEvent::read().
bool HepMC::PdfInfo::operator!= | ( | const PdfInfo & | ) | const [inline] |
bool HepMC::PdfInfo::operator== | ( | const PdfInfo & | ) | const [inline] |
double HepMC::PdfInfo::pdf1 | ( | ) | const [inline] |
PDF (id1, x1, Q) - x*f(x).
Definition at line 89 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
double HepMC::PdfInfo::pdf2 | ( | ) | const [inline] |
PDF (id2, x2, Q) - x*f(x).
Definition at line 91 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
int HepMC::PdfInfo::pdf_id1 | ( | ) | const [inline] |
LHAPDF set id of first parton.
Definition at line 79 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
int HepMC::PdfInfo::pdf_id2 | ( | ) | const [inline] |
LHAPDF set id of second parton.
Definition at line 81 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
double HepMC::PdfInfo::scalePDF | ( | ) | const [inline] |
Q-scale used in evaluation of PDF's (in GeV).
Definition at line 87 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
void HepMC::PdfInfo::set_id1 | ( | const int & | i | ) | [inline] |
set flavour code of first parton
Definition at line 98 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_id2 | ( | const int & | i | ) | [inline] |
set flavour code of second parton
Definition at line 100 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_pdf1 | ( | const double & | f | ) | [inline] |
set x*f(x) of first parton
Definition at line 112 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_pdf2 | ( | const double & | f | ) | [inline] |
set x*f(x) of second parton
Definition at line 114 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_pdf_id1 | ( | const int & | i | ) | [inline] |
set LHAPDF set id of first parton
Definition at line 102 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_pdf_id2 | ( | const int & | i | ) | [inline] |
set LHAPDF set id of second parton
Definition at line 104 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_scalePDF | ( | const double & | f | ) | [inline] |
set Q-scale used in evaluation of PDF's (in GeV)
Definition at line 110 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_x1 | ( | const double & | f | ) | [inline] |
set fraction of beam momentum carried by first parton ("beam side")
Definition at line 106 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::set_x2 | ( | const double & | f | ) | [inline] |
set fraction of beam momentum carried by second parton ("target side")
Definition at line 108 of file PdfInfo.h.
Referenced by HepMC::operator>>().
void HepMC::PdfInfo::swap | ( | PdfInfo & | other | ) | [inline] |
double HepMC::PdfInfo::x1 | ( | ) | const [inline] |
fraction of beam momentum carried by first parton ("beam side")
Definition at line 83 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().
double HepMC::PdfInfo::x2 | ( | ) | const [inline] |
fraction of beam momentum carried by second parton ("target side")
Definition at line 85 of file PdfInfo.h.
Referenced by HepMC::operator<<(), and operator==().