#include <GaudiKernel/ParticleProperty.h>
Collaboration diagram for ParticleProperty:
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) |
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.
00034 : m_name ( particle ) 00035 , m_idgeant ( geantId ) 00036 , m_idjetset ( jetsetId ) 00037 , m_charge ( charge ) 00038 , m_mass ( mass ) 00039 , m_tlife ( tlife ) 00040 , m_evtgenName ( evtgenName ) 00041 , m_pythiaId ( pythiaId ) 00042 , m_maxWidth ( maxWidth ) 00043 , m_anti ( 0 ) 00044 {}
ParticleProperty::~ParticleProperty | ( | ) | [inline] |
const std::string& ParticleProperty::particle | ( | ) | const [inline] |
void ParticleProperty::setParticle | ( | const std::string & | particle | ) | [inline] |
int ParticleProperty::geantID | ( | ) | const [inline] |
void ParticleProperty::setGeantID | ( | int | id | ) | [inline] |
int ParticleProperty::pdgID | ( | ) | const [inline] |
Get the PDG (= JETSET) ID.
Definition at line 62 of file ParticleProperty.h.
00062 { return m_idjetset; }
void ParticleProperty::setPdgID | ( | int | id | ) | [inline] |
Set the PDG (= JETSET) ID.
Definition at line 65 of file ParticleProperty.h.
00065 { m_idjetset = id; }
int ParticleProperty::jetsetID | ( | ) | const [inline] |
Get the JETSET(StdHep) ID.
Definition at line 68 of file ParticleProperty.h.
00068 { return m_idjetset; }
void ParticleProperty::setJetsetID | ( | int | id | ) | [inline] |
Set the JETSET(StdHep) ID.
Definition at line 71 of file ParticleProperty.h.
00071 { m_idjetset = id; }
double ParticleProperty::charge | ( | ) | const [inline] |
Get the particle charge.
Definition at line 74 of file ParticleProperty.h.
00074 { return m_charge; }
void ParticleProperty::setCharge | ( | double | q | ) | [inline] |
double ParticleProperty::mass | ( | ) | const [inline] |
void ParticleProperty::setMass | ( | double | m | ) | [inline] |
double ParticleProperty::lifetime | ( | ) | const [inline] |
Get the particle lifetime.
Definition at line 86 of file ParticleProperty.h.
00086 { return m_tlife; }
void ParticleProperty::setLifetime | ( | double | t | ) | [inline] |
const std::string& ParticleProperty::evtGenName | ( | ) | const [inline] |
Get the EvtGen name.
Definition at line 92 of file ParticleProperty.h.
00092 { return m_evtgenName ; }
void ParticleProperty::setEvtGenName | ( | const std::string & | name | ) | [inline] |
Set the EvtGen name.
Definition at line 95 of file ParticleProperty.h.
00095 { m_evtgenName = name ; }
int ParticleProperty::pythiaID | ( | ) | const [inline] |
void ParticleProperty::setPythiaID | ( | int | pId | ) | [inline] |
double ParticleProperty::maxWidth | ( | ) | const [inline] |
Get the max width deviation.
Definition at line 104 of file ParticleProperty.h.
00104 { return m_maxWidth ; }
void ParticleProperty::setMaxWidth | ( | double | mW | ) | [inline] |
Set the max width deviation.
Definition at line 107 of file ParticleProperty.h.
00107 { m_maxWidth = mW ; }
const ParticleProperty* ParticleProperty::antiParticle | ( | ) | const [inline] |
get the pointer to the antiparticle
Definition at line 110 of file ParticleProperty.h.
00110 { return m_anti ; }
void ParticleProperty::setAntiParticle | ( | const ParticleProperty * | p | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | stream, | |
const ParticleProperty & | pp | |||
) | [friend] |
Definition at line 115 of file ParticleProperty.h.
00116 { 00117 stream << "Name : " << pp.m_name 00118 << ", Geant ID : " << pp.m_idgeant 00119 << ", JetSet ID : " << pp.m_idjetset 00120 << ", Charge (/e): " << pp.m_charge 00121 << ", Mass (MeV): " << pp.m_mass 00122 << ", Lifetime (ns): " << pp.m_tlife 00123 << ", EvtGen Name: " << pp.m_evtgenName 00124 << ", Pythia ID: " << pp.m_pythiaId 00125 << ", Max width deviation (MeV): " << pp.m_maxWidth ; 00126 return stream; 00127 }
std::string ParticleProperty::m_name [private] |
int ParticleProperty::m_idgeant [private] |
int ParticleProperty::m_idjetset [private] |
double ParticleProperty::m_charge [private] |
double ParticleProperty::m_mass [private] |
double ParticleProperty::m_tlife [private] |
std::string ParticleProperty::m_evtgenName [private] |
int ParticleProperty::m_pythiaId [private] |
double ParticleProperty::m_maxWidth [private] |
const ParticleProperty* ParticleProperty::m_anti [private] |