Class SourceComposition
Defined in File Source.h
Inheritance Relationships
Base Type
public SourceFeature
(Class SourceFeature)
Class Documentation
-
class SourceComposition : public SourceFeature
Multiple nuclear species with a rigidity-dependent power-law spectrum.
The power law is of the form: E^index, for energies in the interval [Emin, Z * Rmax].
Public Functions
-
SourceComposition(double Emin, double Rmax, double index)
Constructor
- Parameters:
Emin – minimum energy (in Joules)
Rmax – maximum rigidity (in Volts)
index – spectral index of the power law
-
void add(int id, double abundance)
Add individual particle species with a given abundance
- Parameters:
id – id of the particle following the PDG numbering scheme
abundance – relative abundance of the particle species
-
void add(int A, int Z, double abundance)
Add individual particle species with a given abundance
- Parameters:
A – atomic mass of the cosmic-ray nucleus
Z – atomic number of the cosmic-ray nucleus
abundance – relative abundance of the particle species
-
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
-
SourceComposition(double Emin, double Rmax, double index)