The Gaudi Framework
master (37c0b60a)
|
#include <Gaudi/ParticleProperty.h>
Classes | |
struct | Compare |
Public Member Functions | |
ParticleProperty (const std::string &name, const Gaudi::ParticleID &pid, const double charge, const double mass, const double tlife, const double maxWidth, const std::string &evtgen, const int pythia) | |
full constructor, from all data (except the antiparticle ) More... | |
ParticleProperty (const std::string &name, const Gaudi::ParticleID &pid, const double charge, const double mass, const double tlife, const double maxWidth) | |
a bit simplified constructor, from all data (except the antiparticle ) More... | |
const std::string & | particle () const |
Get the particle name. More... | |
const std::string & | name () const |
Get the particle name. More... | |
const Gaudi::ParticleID & | particleID () const |
get the particle ID More... | |
const Gaudi::ParticleID & | pdgID () const |
get the particle ID More... | |
const Gaudi::ParticleID & | pid () const |
get the particle ID More... | |
double | charge () const |
Get the particle charge. More... | |
double | mass () const |
Get the particle mass. More... | |
double | lifetime () const |
Get the particle lifetime. More... | |
double | lifeTime () const |
Get the particle lifetime. More... | |
double | ctau () const |
Get the particle proper lifetime in c*tau units. More... | |
double | width () const |
Get the particle natural width. More... | |
double | maxWidth () const |
Get the max width deviation. More... | |
const Gaudi::ParticleProperty * | antiParticle () const |
get the pointer to the anti-particle More... | |
const Gaudi::ParticleProperty * | anti () const |
get the pointer to the anti-particle More... | |
bool | selfcc () const |
self-charge conjugated? More... | |
int | threeCharge () const |
Three times the charge (in positron charge units) More... | |
void | setAntiParticle (const ParticleProperty *p) |
set the pointer to the antiparticle More... | |
const std::string & | evtGenName () const |
Get the EvtGen name. More... | |
const std::string & | evtGen () const |
Get the EvtGen name. More... | |
int | pythiaID () const |
Get the Pythia ID. More... | |
int | pythia () const |
Get the Pythia ID. More... | |
operator const Gaudi::ParticleID & () const | |
implicit conversion to ParticleID class More... | |
std::ostream & | fillStream (std::ostream &s) const |
the standard (a'la Gaudi) printout of the object More... | |
std::string | toString () const |
simple method for conversion into the string More... | |
Private Attributes | |
std::string | m_name |
the name for the particle More... | |
Gaudi::ParticleID | m_pid |
the PID for the particle More... | |
double | m_charge |
the charge for the particle More... | |
double | m_mass |
the nominal mass for the particle More... | |
double | m_tlife |
the nominal proper lifetime for the particle More... | |
double | m_maxWidth |
The maximum width deviation. More... | |
std::string | m_evtgen |
the name of the particle for EvtGen program More... | |
int | m_pythia |
the ID for the particle used in Pythia generator More... | |
const Gaudi::ParticleProperty * | m_anti |
the pointer to the anti-particle More... | |
Friends | |
bool | operator< (const ParticleProperty &lhs, const ParticleProperty &rhs) |
comparison/ordering operator ( "strict-less-by-PID&Name" ) More... | |
A trivial class to hold information about a single particle properties. All particle properties are accessible through accessor functions
Definition at line 37 of file ParticleProperty.h.
Gaudi::ParticleProperty::ParticleProperty | ( | const std::string & | name, |
const Gaudi::ParticleID & | pid, | ||
const double | charge, | ||
const double | mass, | ||
const double | tlife, | ||
const double | maxWidth, | ||
const std::string & | evtgen, | ||
const int | pythia | ||
) |
full constructor, from all data (except the antiparticle )
name | the name for the particle |
pid | the PID for the particle |
charge | the charge of the particle |
mass | the nominal mass of the particle |
tlife | the nominal lifetime of the particle |
maxWidth | the maximal width of the particle (used in generator) |
evtgen | the name of particle in EvtGen program |
pythia | the ID for the particle used in Pythia generator |
Definition at line 41 of file ParticleProperty.cpp.
Gaudi::ParticleProperty::ParticleProperty | ( | const std::string & | name, |
const Gaudi::ParticleID & | pid, | ||
const double | charge, | ||
const double | mass, | ||
const double | tlife, | ||
const double | maxWidth | ||
) |
a bit simplified constructor, from all data (except the antiparticle )
name | the name for the particle |
pid | the PID for the particle |
charge | the charge of the particle |
mass | the nominal mass of the particle |
tlife | the nominal lifetime of the particle |
maxWidth | the maximal width of the particle (used in generator) |
Definition at line 65 of file ParticleProperty.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::ostream & Gaudi::ParticleProperty::fillStream | ( | std::ostream & | s | ) | const |
the standard (a'la Gaudi) printout of the object
s | reference to the output stream |
Definition at line 80 of file ParticleProperty.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Gaudi::ParticleProperty::setAntiParticle | ( | const ParticleProperty * | p | ) |
set the pointer to the antiparticle
p | pointer to anti-particle |
Definition at line 163 of file ParticleProperty.cpp.
|
inline |
Three times the charge (in positron charge units)
Definition at line 112 of file ParticleProperty.h.
std::string Gaudi::ParticleProperty::toString | ( | ) | const |
simple method for conversion into the string
Definition at line 154 of file ParticleProperty.cpp.
|
inline |
Get the particle natural width.
Definition at line 98 of file ParticleProperty.h.
|
friend |
comparison/ordering operator ( "strict-less-by-PID&Name" )
Definition at line 130 of file ParticleProperty.h.
|
private |
the pointer to the anti-particle
Definition at line 163 of file ParticleProperty.h.
|
private |
the charge for the particle
Definition at line 151 of file ParticleProperty.h.
|
private |
the name of the particle for EvtGen program
Definition at line 159 of file ParticleProperty.h.
|
private |
the nominal mass for the particle
Definition at line 153 of file ParticleProperty.h.
|
private |
The maximum width deviation.
Definition at line 157 of file ParticleProperty.h.
|
private |
the name for the particle
Definition at line 147 of file ParticleProperty.h.
|
private |
the PID for the particle
Definition at line 149 of file ParticleProperty.h.
|
private |
the ID for the particle used in Pythia generator
Definition at line 161 of file ParticleProperty.h.
|
private |
the nominal proper lifetime for the particle
Definition at line 155 of file ParticleProperty.h.