CepGen 1.2.5
Central exclusive processes event generator
|
A collection of physics constants associated to a single particle. More...
#include <CepGen/Physics/ParticleProperties.h>
Public Member Functions | |
ParticleProperties (const ParametersList &) | |
ParticleProperties (pdgid_t pdgid=0ull, const std::string &name="", const std::string &descr="", int colours=-1, double mass=-1., double width=-1., const std::vector< int > &charges={}, bool fermion=false) | |
short | integerCharge () const |
Integer charge, in \(e\)/3. | |
bool | operator== (const SteeredObject &oth) const |
Equality operator. | |
bool | operator!= (const SteeredObject &oth) const |
Inequality operator. | |
const ParametersList & | parameters () const override |
Module user-defined parameters. | |
virtual void | setParameters (const ParametersList ¶ms) override |
Set module parameters. | |
void | setDescribedParameters (const ParametersList ¶ms_orig) |
Set (documented) module parameters. | |
Static Public Member Functions | |
static ParametersDescription | description () |
Public Attributes | |
pdgid_t | pdgid {0ull} |
PDG identifier. | |
std::string | name {} |
Particle name. | |
std::string | descr {} |
Human-readable name. | |
int | colours {0} |
Colour factor. | |
double | mass {0.} |
Mass, in GeV/c \(^2\). | |
double | width {0.} |
Decay width, in GeV/c \(^2\). | |
std::vector< int > | charges {} |
Electric charges, in \(e\)/3. | |
bool | fermion {false} |
Is the particle a fermion? | |
Protected Member Functions | |
template<typename T > | |
T | steer (const std::string &key) const |
Retrieve a parameters as previously steered. | |
template<typename T , typename U > | |
U | steerAs (const std::string &key) const |
Retrieve a recasted parameters as previously steered. | |
std::string | steerName () const |
Retrieve module name from parameters. | |
std::string | steerPath (const std::string &key) const |
Retrieve a path from common search paths. | |
Protected Attributes | |
ParametersList | params_ |
Module parameters. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const ParticleProperties &) |
Definition at line 31 of file ParticleProperties.h.
|
explicit |
Definition at line 26 of file ParticleProperties.cpp.
|
explicit |
Definition at line 39 of file ParticleProperties.cpp.
|
static |
Definition at line 66 of file ParticleProperties.cpp.
short integerCharge | ( | ) | const |
Definition at line 57 of file ParticleProperties.cpp.
|
inherited |
Definition at line 51 of file SteeredObject.h.
|
inherited |
Definition at line 49 of file SteeredObject.h.
|
overridevirtualinherited |
Reimplemented from Steerable.
Definition at line 54 of file SteeredObject.h.
|
inherited |
Definition at line 73 of file SteeredObject.h.
|
overridevirtualinherited |
Reimplemented from Steerable.
Definition at line 62 of file SteeredObject.h.
|
protectedinherited |
Definition at line 39 of file Steerable.h.
Definition at line 44 of file Steerable.h.
|
protectedinherited |
Definition at line 48 of file Steerable.h.
|
protectedinherited |
Definition at line 30 of file Steerable.cpp.
|
friend |
Definition at line 79 of file ParticleProperties.cpp.
std::vector<int> charges {} |
Definition at line 54 of file ParticleProperties.h.
int colours {0} |
Definition at line 51 of file ParticleProperties.h.
std::string descr {} |
Definition at line 50 of file ParticleProperties.h.
bool fermion {false} |
Definition at line 55 of file ParticleProperties.h.
double mass {0.} |
Definition at line 52 of file ParticleProperties.h.
std::string name {} |
Definition at line 49 of file ParticleProperties.h.
|
mutableprotectedinherited |
Definition at line 50 of file Steerable.h.
pdgid_t pdgid {0ull} |
Definition at line 48 of file ParticleProperties.h.
double width {0.} |
Definition at line 53 of file ParticleProperties.h.