HepMC Reference Documentation

HepMC

HepMC::PdfInfo Class Reference

The PdfInfo class stores PDF information. More...

#include <PdfInfo.h>

List of all members.

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
PdfInfooperator= (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


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

Examples:

testMass.cc.in.

Definition at line 37 of file PdfInfo.h.


Constructor & Destructor Documentation

HepMC::PdfInfo::PdfInfo (  )  [inline]

default constructor

Definition at line 43 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]

all values EXCEPT pdf_id1 and pdf_id2 must be provided

Definition at line 136 of file PdfInfo.h.

HepMC::PdfInfo::~PdfInfo (  )  [inline]

Definition at line 60 of file PdfInfo.h.

HepMC::PdfInfo::PdfInfo ( PdfInfo const &  orig  )  [inline]

copy constructor

Definition at line 150 of file PdfInfo.h.


Member Function Documentation

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]

check for inequality

any nonmatching member generates inequality

Definition at line 196 of file PdfInfo.h.

PdfInfo & HepMC::PdfInfo::operator= ( PdfInfo const &  rhs  )  [inline]

make a copy

Definition at line 162 of file PdfInfo.h.

References swap().

bool HepMC::PdfInfo::operator== ( const PdfInfo  )  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().

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]

swap two PdfInfo objects

Definition at line 169 of file PdfInfo.h.

References m_id1, m_id2, m_pdf1, m_pdf2, m_pdf_id1, m_pdf_id2, m_scalePDF, m_x1, and m_x2.

Referenced by operator=().

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==().


The documentation for this class was generated from the following file:
Generated on Thu Jan 7 13:10:21 2010 for HepMC by  doxygen 1.4.7