Class SourceUniform1D

Inheritance Relationships

Base Type

Class Documentation

class SourceUniform1D : public SourceFeature

1D-Positions from a uniform source distribution in an expanding universe

This source property sets random x-coordinates according to a uniform source distribution in a given comoving distance interval. This is done by drawing a light travel distance from a flat distribution and converting to a comoving distance.

Public Functions

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

Constructor

Parameters
  • minD: minimum comoving distance
  • maxD: maximum comoving distance
  • withCosmology: specify if universe expanding

void prepareParticle(ParticleState &particle) const
void setDescription()
void prepareCandidate(Candidate &candidate) const
std::string getDescription() const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

std::string description
size_t _referenceCount