/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
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)
 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

The PdfInfo class stores PDF information.

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.

    : m_id1(0), 
      m_id2(0),
      m_x1(0),
      m_x2(0),
      m_scalePDF(0),
      m_pdf1(0),
      m_pdf2(0)
    {}
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.

    : m_id1(i1), 
      m_id2(i2),
      m_x1(x1),
      m_x2(x2),
      m_scalePDF(q),
      m_pdf1(p1),
      m_pdf2(p2)
   {}
HepMC::PdfInfo::~PdfInfo ( ) [inline]

Definition at line 49 of file PdfInfo.h.

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

copy constructor

Definition at line 116 of file PdfInfo.h.

    : m_id1(orig.m_id1), 
      m_id2(orig.m_id2),
      m_x1(orig.m_x1),
      m_x2(orig.m_x2),
      m_scalePDF(orig.m_scalePDF),
      m_pdf1(orig.m_pdf1),
      m_pdf2(orig.m_pdf2)
   {}

Member Function Documentation

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

make a copy

Definition at line 126 of file PdfInfo.h.

{
  PdfInfo temp( rhs );
  swap( temp );
  return *this;
}
void HepMC::PdfInfo::swap ( PdfInfo other) [inline]

swap two PdfInfo objects

Definition at line 133 of file PdfInfo.h.

{
  std::swap(m_id1, other.m_id1); 
  std::swap(m_id2, other.m_id2);
  std::swap(m_x1, other.m_x1);
  std::swap(m_x2, other.m_x2);
  std::swap(m_scalePDF, other.m_scalePDF);
  std::swap(m_pdf1, other.m_pdf1);
  std::swap(m_pdf2, other.m_pdf2);
}
bool HepMC::PdfInfo::operator== ( const PdfInfo a) const [inline]

check for equality

equality requires that each member match

Definition at line 144 of file PdfInfo.h.

{
    return (    a.id1() == this->id1() 
             && a.id2() == this->id2() 
             && a.x1() == this->x1() 
             && a.x2() == this->x2()
             && a.scalePDF() == this->scalePDF() 
             && a.pdf1() == this->pdf1()
             && a.pdf2() == this->pdf2() );
}
bool HepMC::PdfInfo::operator!= ( const PdfInfo a) const [inline]

check for inequality

any nonmatching member generates inequality

Definition at line 156 of file PdfInfo.h.

{
    return !( a == *this );
}
int HepMC::PdfInfo::id1 ( ) const [inline]

flavour code of first parton

Definition at line 64 of file PdfInfo.h.

{ return m_id1; }
int HepMC::PdfInfo::id2 ( ) const [inline]

flavour code of second parton

Definition at line 66 of file PdfInfo.h.

{ 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.

{ 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.

{ 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.

{ return m_scalePDF;  }
double HepMC::PdfInfo::pdf1 ( ) const [inline]

PDF (id1, x1, Q)

Definition at line 74 of file PdfInfo.h.

{ return m_pdf1; }
double HepMC::PdfInfo::pdf2 ( ) const [inline]

PDF (id2, x2, Q)

Definition at line 76 of file PdfInfo.h.

{ 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.

{ 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.

{ 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.

{ 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.

{ 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.

{ 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.

{ 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.

{ 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 Fri May 16 2014 09:49:37 for HepMC by doxygen 1.7.4