Class SourceUniformRedshift

Inheritance Relationships

Base Type

Class Documentation

class SourceUniformRedshift : public SourceFeature

Random redshift (time of emission) from a uniform distribution.

This function assigns random redshifts to the particles emitted by a given source. These values are drawn from a uniform redshift distribution in the interval [zmin, zmax]. The redshift coordinate is used to treat cosmological effects and as a time coordinate. Consider, for instance, a source located at a distance corresponding to a redshift z. In the absence of processes that cause time delays (e.g., magnetic deflections), particles from this source could arrive after a time corresponding to the source redshift. Charged particles, on the other hand, can arrive at a time later than the corresponding straight- line travel duration. This treatment is also useful for time-dependent studies (e.g. transient sources).

Public Functions

SourceUniformRedshift(double zmin, double zmax)


  • zmin – minimum redshift

  • zmax – maximum redshift

virtual void prepareCandidate(Candidate &candidate) const
void setDescription()
inline virtual void prepareParticle(ParticleState &particle) 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