Class SourceLambertDistributionOnSphere
Defined in File Source.h
Inheritance Relationships
Base Type
public SourceFeature
(Class SourceFeature)
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 ¢er, 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()
-
std::string getDescription() const
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
-
SourceLambertDistributionOnSphere(const Vector3d ¢er, double radius, bool inward)