Class SourceMultipleParticleTypes

Inheritance Relationships

Base Type

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()
virtual void prepareCandidate(Candidate &candidate) const
std::string getDescription() const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Attributes

std::string description
mutable size_t _referenceCount