Class SourceComposition

Inheritance Relationships

Base Type

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()
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