Class SourceUniform1D

Inheritance Relationships

Base Type

Class Documentation

class SourceUniform1D : public SourceFeature

Uniform source distribution in 1D.

This source property sets random x-coordinates according to a uniform source distribution in a given distance interval. If cosmological effects are included, this is done by drawing a light-travel distance from a flat distribution and converting to a comoving distance. In the absence of cosmological effects, the positions are drawn uniformly in the light-travel distance interval (as opposed to a comoving interval). The source positions are assigned to the x-coordinate (Vector3d(distance, 0, 0)) in this one-dimensional case.

Public Functions

SourceUniform1D(double minD, double maxD, bool withCosmology = true)

Constructor

Parameters
  • minD – minimum distance; comoving if withCosmology is True

  • maxD – maximum distance; comoving if withCosmology is True

  • withCosmology – whether to account for cosmological effects (expansion of the Universe)

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