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).
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 127 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 141 of file PdfInfo.h.


Member Function Documentation

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

make a copy

Definition at line 153 of file PdfInfo.h.

References swap().

void HepMC::PdfInfo::swap ( PdfInfo other  )  [inline]

swap two PdfInfo objects

Definition at line 160 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=().

bool HepMC::PdfInfo::operator== ( const PdfInfo  )  const [inline]

check for equality

equality requires that each member match

Definition at line 173 of file PdfInfo.h.

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

bool HepMC::PdfInfo::operator!= ( const PdfInfo  )  const [inline]

check for inequality

any nonmatching member generates inequality

Definition at line 187 of file PdfInfo.h.

int HepMC::PdfInfo::id1 (  )  const [inline]

flavour code of first parton

Definition at line 75 of file PdfInfo.h.

Referenced by operator==(), and HepMC::IO_GenEvent::write_pdf_info().

int HepMC::PdfInfo::id2 (  )  const [inline]

flavour code of second parton

Definition at line 77 of file PdfInfo.h.

Referenced by operator==(), and HepMC::IO_GenEvent::write_pdf_info().

int HepMC::PdfInfo::pdf_id1 (  )  const [inline]

LHAPDF set id of first parton.

Definition at line 79 of file PdfInfo.h.

Referenced by operator==(), and HepMC::IO_GenEvent::write_pdf_info().

int HepMC::PdfInfo::pdf_id2 (  )  const [inline]

LHAPDF set id of second parton.

Definition at line 81 of file PdfInfo.h.

Referenced by operator==(), and HepMC::IO_GenEvent::write_pdf_info().

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 operator==(), and HepMC::IO_GenEvent::write_pdf_info().

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 operator==(), and HepMC::IO_GenEvent::write_pdf_info().

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 operator==(), and HepMC::IO_GenEvent::write_pdf_info().

double HepMC::PdfInfo::pdf1 (  )  const [inline]

PDF (id1, x1, Q) - x*f(x).

Definition at line 89 of file PdfInfo.h.

Referenced by operator==(), and HepMC::IO_GenEvent::write_pdf_info().

double HepMC::PdfInfo::pdf2 (  )  const [inline]

PDF (id2, x2, Q) - x*f(x).

Definition at line 91 of file PdfInfo.h.

Referenced by operator==(), and HepMC::IO_GenEvent::write_pdf_info().

void HepMC::PdfInfo::set_id1 ( const int &  i  )  [inline]

set flavour code of first parton

Definition at line 95 of file PdfInfo.h.

void HepMC::PdfInfo::set_id2 ( const int &  i  )  [inline]

set flavour code of second parton

Definition at line 97 of file PdfInfo.h.

void HepMC::PdfInfo::set_pdf_id1 ( const int &  i  )  [inline]

set LHAPDF set id of first parton

Definition at line 99 of file PdfInfo.h.

void HepMC::PdfInfo::set_pdf_id2 ( const int &  i  )  [inline]

set LHAPDF set id of second parton

Definition at line 101 of file PdfInfo.h.

void HepMC::PdfInfo::set_x1 ( const double &  f  )  [inline]

set fraction of beam momentum carried by first parton ("beam side")

Definition at line 103 of file PdfInfo.h.

void HepMC::PdfInfo::set_x2 ( const double &  f  )  [inline]

set fraction of beam momentum carried by second parton ("target side")

Definition at line 105 of file PdfInfo.h.

void HepMC::PdfInfo::set_scalePDF ( const double &  f  )  [inline]

set Q-scale used in evaluation of PDF's (in GeV)

Definition at line 107 of file PdfInfo.h.

void HepMC::PdfInfo::set_pdf1 ( const double &  f  )  [inline]

set x*f(x) of first parton

Definition at line 109 of file PdfInfo.h.

void HepMC::PdfInfo::set_pdf2 ( const double &  f  )  [inline]

set x*f(x) of second parton

Definition at line 111 of file PdfInfo.h.


The documentation for this class was generated from the following file:
Generated on Wed Jun 3 16:53:05 2009 for HepMC by  doxygen 1.5.1-3