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