| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

HepMC::PdfInfo Class Reference

HepMC::PdfInfo stores additional PDF information for a GenEvent. 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)
 all values 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
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

Detailed Description

HepMC::PdfInfo stores additional PDF information for a GenEvent.

Creation and use of this information is optional.

Definition at line 30 of file PdfInfo.h.


Constructor & Destructor Documentation

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

default constructor

Definition at line 36 of file PdfInfo.h.

00037     : m_id1(0), 
00038       m_id2(0),
00039       m_x1(0),
00040       m_x2(0),
00041       m_scalePDF(0),
00042       m_pdf1(0),
00043       m_pdf2(0)
00044     {}

HepMC::PdfInfo::PdfInfo ( int  i1,
int  i2,
double  x1,
double  x2,
double  q,
double  p1,
double  p2 
) [inline]

all values must be provided

Definition at line 106 of file PdfInfo.h.

00107     : m_id1(i1), 
00108       m_id2(i2),
00109       m_x1(x1),
00110       m_x2(x2),
00111       m_scalePDF(q),
00112       m_pdf1(p1),
00113       m_pdf2(p2)
00114    {}

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

Definition at line 49 of file PdfInfo.h.

00049 {}

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

copy constructor

Definition at line 116 of file PdfInfo.h.

00117     : m_id1(orig.m_id1), 
00118       m_id2(orig.m_id2),
00119       m_x1(orig.m_x1),
00120       m_x2(orig.m_x2),
00121       m_scalePDF(orig.m_scalePDF),
00122       m_pdf1(orig.m_pdf1),
00123       m_pdf2(orig.m_pdf2)
00124    {}


Member Function Documentation

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

make a copy

Definition at line 126 of file PdfInfo.h.

00127 {
00128   PdfInfo temp( rhs );
00129   swap( temp );
00130   return *this;
00131 }

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]

check for inequality

any nonmatching member generates inequality

Definition at line 156 of file PdfInfo.h.

00157 {
00159     return !( a == *this );
00160 }

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

flavour code of first parton

Definition at line 64 of file PdfInfo.h.

00064 { return m_id1; }

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

flavour code of second parton

Definition at line 66 of file PdfInfo.h.

00066 { return m_id2; }

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

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

Definition at line 68 of file PdfInfo.h.

00068 { return m_x1; } 

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

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

Definition at line 70 of file PdfInfo.h.

00070 { return m_x2; }

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]

PDF (id1, x1, Q).

Definition at line 74 of file PdfInfo.h.

00074 { return m_pdf1; }

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

PDF (id2, x2, Q).

Definition at line 76 of file PdfInfo.h.

00076 { return m_pdf2; }

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

set flavour code of first parton

Definition at line 80 of file PdfInfo.h.

00080 { m_id1=i; }

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

set flavour code of second parton

Definition at line 82 of file PdfInfo.h.

00082 { m_id2=i; }

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

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

Definition at line 84 of file PdfInfo.h.

00084 { m_x1=f; }

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

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

Definition at line 86 of file PdfInfo.h.

00086 { m_x2=f; }

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]

set PDF (id1, x1, Q)

Definition at line 90 of file PdfInfo.h.

00090 { m_pdf1=f; }

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

set PDF (id2, x2, Q)

Definition at line 92 of file PdfInfo.h.

00092 { m_pdf2=f; }


Member Data Documentation

int HepMC::PdfInfo::m_id1 [private]

Definition at line 95 of file PdfInfo.h.

int HepMC::PdfInfo::m_id2 [private]

Definition at line 96 of file PdfInfo.h.

double HepMC::PdfInfo::m_x1 [private]

Definition at line 97 of file PdfInfo.h.

double HepMC::PdfInfo::m_x2 [private]

Definition at line 98 of file PdfInfo.h.

double HepMC::PdfInfo::m_scalePDF [private]

Definition at line 99 of file PdfInfo.h.

double HepMC::PdfInfo::m_pdf1 [private]

Definition at line 100 of file PdfInfo.h.

double HepMC::PdfInfo::m_pdf2 [private]

Definition at line 101 of file PdfInfo.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:56:45 2011 for HepMC by doxygen 1.4.7