#include <PdfInfo.h>
Public Member Functions | |
PdfInfo () | |
default constructor | |
PdfInfo (int i1, int i2, double x1, double x2, double q, double p1, double p2) | |
all values 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 | |
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). | |
double | pdf2 () const |
PDF (id2, x2, Q). | |
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_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 PDF (id1, x1, Q) | |
void | set_pdf2 (const double &f) |
set PDF (id2, x2, Q) | |
Private Attributes | |
int | m_id1 |
int | m_id2 |
double | m_x1 |
double | m_x2 |
double | m_scalePDF |
double | m_pdf1 |
double | m_pdf2 |
Creation and use of this information is optional.
Definition at line 30 of file PdfInfo.h.
HepMC::PdfInfo::PdfInfo | ( | ) | [inline] |
HepMC::PdfInfo::PdfInfo | ( | int | i1, | |
int | i2, | |||
double | x1, | |||
double | x2, | |||
double | q, | |||
double | p1, | |||
double | p2 | |||
) | [inline] |
HepMC::PdfInfo::PdfInfo | ( | PdfInfo const & | orig | ) | [inline] |
void HepMC::PdfInfo::swap | ( | PdfInfo & | other | ) | [inline] |
swap two PdfInfo objects
Definition at line 133 of file PdfInfo.h.
00134 { 00135 std::swap(m_id1, other.m_id1); 00136 std::swap(m_id2, other.m_id2); 00137 std::swap(m_x1, other.m_x1); 00138 std::swap(m_x2, other.m_x2); 00139 std::swap(m_scalePDF, other.m_scalePDF); 00140 std::swap(m_pdf1, other.m_pdf1); 00141 std::swap(m_pdf2, other.m_pdf2); 00142 }
bool HepMC::PdfInfo::operator== | ( | const PdfInfo & | ) | const [inline] |
check for equality
equality requires that each member match
Definition at line 144 of file PdfInfo.h.
00145 { 00147 return ( a.id1() == this->id1() 00148 && a.id2() == this->id2() 00149 && a.x1() == this->x1() 00150 && a.x2() == this->x2() 00151 && a.scalePDF() == this->scalePDF() 00152 && a.pdf1() == this->pdf1() 00153 && a.pdf2() == this->pdf2() ); 00154 }
bool HepMC::PdfInfo::operator!= | ( | const PdfInfo & | ) | const [inline] |
int HepMC::PdfInfo::id1 | ( | ) | const [inline] |
int HepMC::PdfInfo::id2 | ( | ) | const [inline] |
double HepMC::PdfInfo::x1 | ( | ) | const [inline] |
double HepMC::PdfInfo::x2 | ( | ) | const [inline] |
double HepMC::PdfInfo::scalePDF | ( | ) | const [inline] |
Q-scale used in evaluation of PDF's (in GeV).
Definition at line 72 of file PdfInfo.h.
00072 { return m_scalePDF; }
double HepMC::PdfInfo::pdf1 | ( | ) | const [inline] |
double HepMC::PdfInfo::pdf2 | ( | ) | const [inline] |
void HepMC::PdfInfo::set_id1 | ( | const int & | i | ) | [inline] |
void HepMC::PdfInfo::set_id2 | ( | const int & | i | ) | [inline] |
void HepMC::PdfInfo::set_x1 | ( | const double & | f | ) | [inline] |
void HepMC::PdfInfo::set_x2 | ( | const double & | f | ) | [inline] |
void HepMC::PdfInfo::set_scalePDF | ( | const double & | f | ) | [inline] |
set Q-scale used in evaluation of PDF's (in GeV)
Definition at line 88 of file PdfInfo.h.
00088 { m_scalePDF=f; }
void HepMC::PdfInfo::set_pdf1 | ( | const double & | f | ) | [inline] |
void HepMC::PdfInfo::set_pdf2 | ( | const double & | f | ) | [inline] |
int HepMC::PdfInfo::m_id1 [private] |
int HepMC::PdfInfo::m_id2 [private] |
double HepMC::PdfInfo::m_x1 [private] |
double HepMC::PdfInfo::m_x2 [private] |
double HepMC::PdfInfo::m_scalePDF [private] |
double HepMC::PdfInfo::m_pdf1 [private] |
double HepMC::PdfInfo::m_pdf2 [private] |