YAP
|
Factory class for easy creation of Particle objects from PDG codes. More...
#include <ParticleFactory.h>
Public Types | |
using | value_type = ParticleTableEntry |
using | iterator = ParticleTableMap::iterator |
Public Member Functions | |
std::shared_ptr < FinalStateParticle > | fsp (int PDG) const |
std::shared_ptr< DecayingParticle > | decayingParticle (int PDG, double radialSize, std::shared_ptr< PhaseSpaceFactorFactory > phsp_factory=DefaultPHSPFactory) const |
std::shared_ptr< Resonance > | resonance (int PDG, double radialSize, std::shared_ptr< MassShape > massShape, std::shared_ptr< PhaseSpaceFactorFactory > phsp_factory=DefaultPHSPFactory) const |
ParticleFactory & | operator+= (const ParticleFactory &rhs) |
Private Attributes | |
ParticleTableMap | ParticleTable_ |
maps PDGCodes to ParticleTableEntry's | |
Particle table access | |
const ParticleTableEntry & | operator[] (int PDG) const |
const ParticleTableEntry & | operator[] (std::string name) const |
const QuantumNumbers & | quantumNumbers (int PDG) const |
const QuantumNumbers & | quantumNumbers (std::string name) const |
std::pair < ParticleTableMap::iterator, bool > | insert (const ParticleTableEntry &entry) |
ParticleTableMap::iterator | insert (ParticleTableMap::iterator hint, const ParticleTableEntry &entry) |
convenience function to allow inserter() to be used in the std::copy algorithm | |
int | pdgCode (std::string name) const |
std::insert_iterator < ParticleFactory > | inserter (ParticleFactory &F) |
#ParticleFactory's own inserter | |
Factory class for easy creation of Particle objects from PDG codes.
Define this to allow std::inserter
to use insert
Define this to allow std::inserter
to use insert
std::shared_ptr< DecayingParticle > decayingParticle | ( | int | PDG, |
double | radialSize, | ||
std::shared_ptr< PhaseSpaceFactorFactory > | phsp_factory = DefaultPHSPFactory |
||
) | const |
Create an decayingParticle from a PDG code
PDG | PDG code of particle to create |
radialSize | radial size of particle to create [GeV^-1] |
std::shared_ptr< FinalStateParticle > fsp | ( | int | PDG | ) | const |
Create a FinalStateParticle from a PDG code
PDG | PDG code of particle to create |
std::pair< ParticleTableMap::iterator, bool > insert | ( | const ParticleTableEntry & | entry | ) |
inserts the pair ParticleTableEntry::PDG
and ParticleTableEntry
to ParticleTable_
entry | a A ParticleTableEntry to add to ParticleTable_ |
ParticleFactory & operator+= | ( | const ParticleFactory & | rhs | ) |
Adds content of rhs to this
rhs | ParticleFactory to add into this |
const ParticleTableEntry & operator[] | ( | int | PDG | ) | const |
get ParticleTableEntry from ParticleTable_ with safety checks
PDG | pdg code labeling particle table entry |
|
inline |
get ParticleTableEntry from ParticleTable_ with safety checks
name | Name of particle in table |
|
inline |
get #QuantumNumbers from ParticleTable_ with safety checks
PDG | pdg code labeling particle table entry |
|
inline |
get #QuantumNumbers from ParticleTable_ with safety checks
name | Name of particle in table |
std::shared_ptr< Resonance > resonance | ( | int | PDG, |
double | radialSize, | ||
std::shared_ptr< MassShape > | massShape, | ||
std::shared_ptr< PhaseSpaceFactorFactory > | phsp_factory = DefaultPHSPFactory |
||
) | const |