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

Protected Attributes

std::string description