Class SourceEnergy

Inheritance Relationships

Base Type

Class Documentation

class SourceEnergy : public SourceFeature

Sets the initial energy of the emitted particles to a specific value.

This feature assigns a monochromatic spectrum, i.e., a single energy to all particles.

Public Functions

SourceEnergy(double energy)

Constructor

Parameters:

energy – energy of the particle (in Joules)

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