|
Gaudi Framework, version v22r2 |
| Home | Generated: Tue May 10 2011 |
A trivial class to hold information about a single particle properties. More...
#include <GaudiKernel/ParticleProperty.h>

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) |
A trivial class to hold information about a single particle properties.
All particle properties are accessible through accessor functions
Definition at line 19 of file ParticleProperty.h.
| ParticleProperty::ParticleProperty | ( | ) | [inline] |
| 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] |
| 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] |
| const std::string& ParticleProperty::evtGenName | ( | ) | const [inline] |
| int ParticleProperty::geantID | ( | ) | const [inline] |
| int ParticleProperty::jetsetID | ( | ) | const [inline] |
| double ParticleProperty::lifetime | ( | ) | const [inline] |
| double ParticleProperty::mass | ( | ) | const [inline] |
| 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] |
| int ParticleProperty::pdgID | ( | ) | const [inline] |
| int ParticleProperty::pythiaID | ( | ) | const [inline] |
| 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] |
| void ParticleProperty::setEvtGenName | ( | const std::string & | name ) | [inline] |
| void ParticleProperty::setGeantID | ( | int | id ) | [inline] |
| void ParticleProperty::setJetsetID | ( | int | id ) | [inline] |
| void ParticleProperty::setLifetime | ( | double | t ) | [inline] |
| void ParticleProperty::setMass | ( | double | m ) | [inline] |
| 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] |
| void ParticleProperty::setPdgID | ( | int | id ) | [inline] |
| void ParticleProperty::setPythiaID | ( | int | pId ) | [inline] |
| 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;
}
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.