Class SourceParticleType
Defined in File Source.h
Inheritance Relationships
Base Type
public SourceFeature
(Class SourceFeature)
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()
-
std::string getDescription() const
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
-
SourceParticleType(int id)