Class SourceParticleType

Inheritance Relationships

Base Type

Class Documentation

class SourceParticleType : public SourceFeature

Particle type at the source.

This feature assigns a single particle type to the source. For multiple types, use e.g. SourceMultipleParticleTypes. Particles are identified following the PDG numbering scheme: https://pdg.lbl.gov/2019/reviews/rpp2019-rev-monte-carlo-numbering.pdf

Public Functions

SourceParticleType(int id)

Constructor for a source with a sign

Parameters

id – id of the particle following the PDG numbering scheme

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