Class SourcePowerLawSpectrum

Inheritance Relationships

Base Type

Class Documentation

class SourcePowerLawSpectrum : public SourceFeature

Particle energy following a power-law spectrum.

The power law is of the form: dN/dE ~ E^index, for energies in the interval [Emin, Emax].

Public Functions

SourcePowerLawSpectrum(double Emin, double Emax, double index)

Constructor

Parameters:
  • Emin – minimum energy (in Joules)

  • Emax – maximum energy (in Joules)

  • index – spectral index of the power law

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