Class SourceLambertDistributionOnSphere

Inheritance Relationships

Base Type

Class Documentation

class SourceLambertDistributionOnSphere : public SourceFeature

Uniform random position on a sphere with isotropic Lamberts distributed directions.

This function should be used for crosschecking the arrival distribution for a Galactic propagation with an isotropic arrival distribution at the Edge of our Galaxy. Note, that for simulation speed you should rather use the backtracking technique: see e.g. http://physik.rwth-aachen.de/parsec

Public Functions

SourceLambertDistributionOnSphere(const Vector3d &center, double radius, bool inward)

Constructor

Parameters:
  • center – vector containing the coordinates of the center of the sphere

  • radius – radius of the sphere

  • inward – if true, the directions point inwards

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