Class SourceMultipleParticleTypes
Defined in File Source.h
Inheritance Relationships
Base Type
public SourceFeature
(Class SourceFeature)
Class Documentation
-
class SourceMultipleParticleTypes : public SourceFeature
Multiple particle types with individual relative abundances.
This feature assigns particle types to the events emitted by the sources. It is possible to control the relative abundance of each particle species. Particles are identified following the PDG numbering scheme: https://pdg.lbl.gov/2019/reviews/rpp2019-rev-monte-carlo-numbering.pdf
Public Functions
-
SourceMultipleParticleTypes()
Constructor
-
void add(int id, double weight = 1)
Add an individual particle type.
- Parameters:
id – id of the particle following the PDG numbering scheme
weight – relative abundance of individual particle species
-
virtual void prepareParticle(ParticleState &particle) const
-
void setDescription()
-
std::string getDescription() const
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
-
SourceMultipleParticleTypes()