A class for particles. More...
#include <Particle.h>
A class for particles.
This is the class for defining particles and their properties like mass (GeV), width (GeV), charge, isospin. One can also specify the scale, in GeV, at which the mass of a particle is defined.
Definition at line 26 of file Particle.h.
Public Member Functions | |
double | getCharge () const |
A get method to access the particle charge. More... | |
int | getIndex () const |
double | getIsospin () const |
A get method to access the particle isospin. More... | |
const double & | getMass () const |
A get method to access the particle mass. More... | |
double | getMass_scale () const |
A get method to access the scale at which the particle mass is defined. More... | |
std::string | getName () const |
const double & | getWidth () const |
A get method to access the particle width. More... | |
bool | is (std::string name_i) const |
Particle () | |
The default constructor. More... | |
Particle (std::string name, double mass, double mass_scale=0., double width=0., double charge=0., double isospin=0.) | |
Constructor. More... | |
void | setCharge (double charge) |
A set method to fix the particle charge. More... | |
void | setIsospin (double isospin) |
A set method to fix the particle isospin. More... | |
void | setMass (double mass) |
A set method to fix the particle mass. More... | |
void | setMass_scale (double mass_scale) |
A set method to fix the scale at which the particle mass is defined. More... | |
void | setName (std::string name) |
void | setWidth (double width) |
A set method to fix the particle width. More... | |
virtual | ~Particle () |
Protected Member Functions | |
void | setIndex () |
Protected Attributes | |
double | charge |
The particle charge. More... | |
int | index |
The index of the particle. More... | |
double | isospin |
The particle isospin. More... | |
double | mass |
The particle mass in GeV. More... | |
double | mass_scale |
The scale in GeV at which the particle mass is defined. More... | |
std::string | name |
The particle name. More... | |
double | width |
The particle width in GeV. More... | |
|
inline |
The default constructor.
Definition at line 33 of file Particle.h.
Particle::Particle | ( | std::string | name, |
double | mass, | ||
double | mass_scale = 0. , |
||
double | width = 0. , |
||
double | charge = 0. , |
||
double | isospin = 0. |
||
) |
Constructor.
The properties of the particle can be initialized by passing arguments.
[in] | name | the name of the particle |
[in] | mass | the mass of the particle in GeV |
[in] | mass_scale | the scale in GeV at which the mass is defined, set to 0 by default |
[in] | width | the decay width of the particle in GeV, set to 0 by default |
[in] | charge | the charge of the particle, set to 0 by default |
[in] | isospin | the isospin of the particle, set to 0 by default |
Definition at line 12 of file Particle.cpp.
|
inlinevirtual |
Definition at line 56 of file Particle.h.
|
inline |
A get method to access the particle charge.
Definition at line 97 of file Particle.h.
|
inline |
Definition at line 160 of file Particle.h.
|
inline |
A get method to access the particle isospin.
Definition at line 115 of file Particle.h.
|
inline |
A get method to access the particle mass.
Definition at line 61 of file Particle.h.
|
inline |
A get method to access the scale at which the particle mass is defined.
Definition at line 133 of file Particle.h.
|
inline |
Definition at line 147 of file Particle.h.
|
inline |
A get method to access the particle width.
Definition at line 79 of file Particle.h.
bool Particle::is | ( | std::string | name_i | ) | const |
Definition at line 23 of file Particle.cpp.
|
inline |
A set method to fix the particle charge.
[in] | charge | the particle charge |
Definition at line 106 of file Particle.h.
|
protected |
Definition at line 40 of file Particle.cpp.
|
inline |
A set method to fix the particle isospin.
[in] | isospin | the particle isospin |
Definition at line 124 of file Particle.h.
|
inline |
A set method to fix the particle mass.
[in] | mass | the particle mass in GeV |
Definition at line 70 of file Particle.h.
|
inline |
A set method to fix the scale at which the particle mass is defined.
[in] | mass_scale | the scale in GeV at which the particle mass is defined |
Definition at line 142 of file Particle.h.
|
inline |
Definition at line 152 of file Particle.h.
|
inline |
A set method to fix the particle width.
[in] | width | the particle width in GeV |
Definition at line 88 of file Particle.h.
|
protected |
The particle charge.
Definition at line 168 of file Particle.h.
|
protected |
The index of the particle.
Definition at line 172 of file Particle.h.
|
protected |
The particle isospin.
Definition at line 170 of file Particle.h.
|
protected |
The particle mass in GeV.
Definition at line 166 of file Particle.h.
|
protected |
The scale in GeV at which the particle mass is defined.
Definition at line 169 of file Particle.h.
|
protected |
The particle name.
Definition at line 171 of file Particle.h.
|
protected |
The particle width in GeV.
Definition at line 167 of file Particle.h.