| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Attributes | Friends

# ParticleProperty Class Reference

A trivial class to hold information about a single particle properties. More...

`#include <GaudiKernel/ParticleProperty.h>`

Collaboration diagram for ParticleProperty:
[legend]

List of all members.

## Public Member Functions
| ParticleProperty ()
| Constructors.
| ParticleProperty (const std::string &particle, int geantId, int jetsetId, double charge, double mass, double tlife, const std::string &evtgenName, int pythiaId, double maxWidth)
| ~ParticleProperty ()
| Destructor.
const std::string & | particle () const
| Get the particle name.
void | setParticle (const std::string &particle)
| Set the particle name.
int | geantID () const
| Get the GEANT3 ID.
void | setGeantID (int id)
| Set the GEANT3 ID.
int | pdgID () const
| Get the PDG (= JETSET) ID.
void | setPdgID (int id)
| Set the PDG (= JETSET) ID.
int | jetsetID () const
| Get the JETSET(StdHep) ID.
void | setJetsetID (int id)
| Set the JETSET(StdHep) ID.
double | charge () const
| Get the particle charge.
void | setCharge (double q)
| Set the particle charge.
double | mass () const
| Get the particle mass.
void | setMass (double m)
| Set the particle charge.
double | lifetime () const
| Get the particle lifetime.
void | setLifetime (double t)
| Set the particle lifetime.
const std::string & | evtGenName () const
| Get the EvtGen name.
void | setEvtGenName (const std::string &name)
| Set the EvtGen name.
int | pythiaID () const
| Get the Pythia ID.
void | setPythiaID (int pId)
| Set the Pythia ID.
double | maxWidth () const
| Get the max width deviation.
void | setMaxWidth (double mW)
| Set the max width deviation.
const ParticleProperty * | antiParticle () const
| get the pointer to the antiparticle
void | setAntiParticle (const ParticleProperty *p)
| set the pointer to the antiparticle
## Private Attributes
std::string | m_name
| The particle name.
int | m_idgeant
| The GEANT ID.
int | m_idjetset
| The Jetset ID.
double | m_charge
| The charge.
double | m_mass
| The mass.
double | m_tlife
| The lifetime.
std::string | m_evtgenName
| The EvtGen Name.
int | m_pythiaId
| The Pythia ID.
double | m_maxWidth
| The maximum width deviation.
const ParticleProperty * | m_anti
| the antiparticle
## Friends
std::ostream & | operator<< (std::ostream &stream, const ParticleProperty &pp)

## Detailed Description

A trivial class to hold information about a single particle properties.

All particle properties are accessible through accessor functions

Author:
  Iain Last,G.Corti

Definition at line 19 of file ParticleProperty.h.

## Constructor & Destructor Documentation

ParticleProperty::ParticleProperty | ( | ) | `[inline]`

Constructors.

Definition at line 22 of file ParticleProperty.h.

    {}

ParticleProperty::ParticleProperty | ( | const std::string & | particle,
|  | int | geantId,
|  | int | jetsetId,
|  | double | charge,
|  | double | mass,
|  | double | tlife,
|  | const std::string & | evtgenName,
|  | int | pythiaId,
|  | double | maxWidth
| ) |  | `[inline]`

Definition at line 25 of file ParticleProperty.h.

        : m_name         ( particle   )
        , m_idgeant      ( geantId    )
        , m_idjetset     ( jetsetId   )
        , m_charge       ( charge     )
        , m_mass         ( mass       )
        , m_tlife        ( tlife      )
        , m_evtgenName   ( evtgenName )
        , m_pythiaId     ( pythiaId   )
        , m_maxWidth     ( maxWidth   )
        , m_anti         ( 0          )
      {}

ParticleProperty::~ParticleProperty | ( | ) | `[inline]`

Destructor.

Definition at line 47 of file ParticleProperty.h.

    {}

## Member Function Documentation

const ParticleProperty* ParticleProperty::antiParticle | ( | ) | const`[inline]`

get the pointer to the antiparticle

Definition at line 110 of file ParticleProperty.h.

    { return m_anti ; }

double ParticleProperty::charge | ( | ) | const`[inline]`

Get the particle charge.

Definition at line 74 of file ParticleProperty.h.

    { return m_charge; }

const std::string& ParticleProperty::evtGenName | ( | ) | const`[inline]`

Get the EvtGen name.

Definition at line 92 of file ParticleProperty.h.

    { return m_evtgenName ; }

int ParticleProperty::geantID | ( | ) | const`[inline]`

Get the GEANT3 ID.

Definition at line 56 of file ParticleProperty.h.

    { return m_idgeant; }

int ParticleProperty::jetsetID | ( | ) | const`[inline]`

Get the JETSET(StdHep) ID.

Definition at line 68 of file ParticleProperty.h.

    { return m_idjetset; }

double ParticleProperty::lifetime | ( | ) | const`[inline]`

Get the particle lifetime.

Definition at line 86 of file ParticleProperty.h.

    { return m_tlife; }

double ParticleProperty::mass | ( | ) | const`[inline]`

Get the particle mass.

Definition at line 80 of file ParticleProperty.h.

    { return m_mass; }

double ParticleProperty::maxWidth | ( | ) | const`[inline]`

Get the max width deviation.

Definition at line 104 of file ParticleProperty.h.

    { return m_maxWidth ; }

const std::string& ParticleProperty::particle | ( | ) | const`[inline]`

Get the particle name.

Definition at line 50 of file ParticleProperty.h.

    { return m_name; }

int ParticleProperty::pdgID | ( | ) | const`[inline]`

Get the PDG (= JETSET) ID.

Definition at line 62 of file ParticleProperty.h.

    { return m_idjetset; }

int ParticleProperty::pythiaID | ( | ) | const`[inline]`

Get the Pythia ID.

Definition at line 98 of file ParticleProperty.h.

    { return m_pythiaId ; }

void ParticleProperty::setAntiParticle | ( | const ParticleProperty * | p ) | `[inline]`

set the pointer to the antiparticle

Definition at line 112 of file ParticleProperty.h.

    { m_anti = p ; }

void ParticleProperty::setCharge | ( | double | q ) | `[inline]`

Set the particle charge.

Definition at line 77 of file ParticleProperty.h.

    { m_charge = q; }

void ParticleProperty::setEvtGenName | ( | const std::string & | name ) | `[inline]`

Set the EvtGen name.

Definition at line 95 of file ParticleProperty.h.

    { m_evtgenName = name ; }

void ParticleProperty::setGeantID | ( | int | id ) | `[inline]`

Set the GEANT3 ID.

Definition at line 59 of file ParticleProperty.h.

    { m_idgeant = id; }

void ParticleProperty::setJetsetID | ( | int | id ) | `[inline]`

Set the JETSET(StdHep) ID.

Definition at line 71 of file ParticleProperty.h.

    { m_idjetset = id; }

void ParticleProperty::setLifetime | ( | double | t ) | `[inline]`

Set the particle lifetime.

Definition at line 89 of file ParticleProperty.h.

    { m_tlife = t; }

void ParticleProperty::setMass | ( | double | m ) | `[inline]`

Set the particle charge.

Definition at line 83 of file ParticleProperty.h.

    { m_mass = m; }

void ParticleProperty::setMaxWidth | ( | double | mW ) | `[inline]`

Set the max width deviation.

Definition at line 107 of file ParticleProperty.h.

    { m_maxWidth = mW ; }

void ParticleProperty::setParticle | ( | const std::string & | particle ) | `[inline]`

Set the particle name.

Definition at line 53 of file ParticleProperty.h.

    { m_name = particle; }

void ParticleProperty::setPdgID | ( | int | id ) | `[inline]`

Set the PDG (= JETSET) ID.

Definition at line 65 of file ParticleProperty.h.

    { m_idjetset = id; }

void ParticleProperty::setPythiaID | ( | int | pId ) | `[inline]`

Set the Pythia ID.

Definition at line 101 of file ParticleProperty.h.

    { m_pythiaId = pId ; }

## Friends And Related Function Documentation

std::ostream& operator<< | ( | std::ostream & | stream,
|  | const ParticleProperty & | pp
| ) |  | `[friend]`

Definition at line 115 of file ParticleProperty.h.

      {
        stream << "Name : " << pp.m_name
               << ", Geant ID : " << pp.m_idgeant
               << ", JetSet ID : " << pp.m_idjetset
               << ", Charge (/e): " << pp.m_charge
               << ", Mass (MeV): " << pp.m_mass
               << ", Lifetime (ns): " << pp.m_tlife
               << ", EvtGen Name: " << pp.m_evtgenName
               << ", Pythia ID: " << pp.m_pythiaId
               << ", Max width deviation (MeV): " << pp.m_maxWidth ;
        return stream;
      }

## Member Data Documentation

const ParticleProperty* ParticleProperty::m_anti`[private]`

the antiparticle

Definition at line 158 of file ParticleProperty.h.

double ParticleProperty::m_charge`[private]`

The charge.

Definition at line 140 of file ParticleProperty.h.

std::string ParticleProperty::m_evtgenName`[private]`

The EvtGen Name.

Definition at line 149 of file ParticleProperty.h.

int ParticleProperty::m_idgeant`[private]`

The GEANT ID.

Definition at line 134 of file ParticleProperty.h.

int ParticleProperty::m_idjetset`[private]`

The Jetset ID.

Definition at line 137 of file ParticleProperty.h.

double ParticleProperty::m_mass`[private]`

The mass.

Definition at line 143 of file ParticleProperty.h.

double ParticleProperty::m_maxWidth`[private]`

The maximum width deviation.

Definition at line 155 of file ParticleProperty.h.

std::string ParticleProperty::m_name`[private]`

The particle name.

Definition at line 131 of file ParticleProperty.h.

int ParticleProperty::m_pythiaId`[private]`

The Pythia ID.

Definition at line 152 of file ParticleProperty.h.

double ParticleProperty::m_tlife`[private]`

The lifetime.

Definition at line 146 of file ParticleProperty.h.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiKernel/GaudiKernel/ParticleProperty.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines