Class SourceDirectedEmission

Inheritance Relationships

Base Type

Class Documentation

class SourceDirectedEmission : public SourceFeature

Directed emission from a source from the von-Mises-Fisher distribution.

The emission from the source is generated following the von-Mises-Fisher distribution with mean direction mu and concentration parameter kappa. The sampling from the vMF distribution follows this document by Julian Straub: http://people.csail.mit.edu/jstraub/download/straub2017vonMisesFisherInference.pdf The emitted particles are assigned a weight so that the detected particles can be reweighted to an isotropic emission distribution instead of a vMF distribution. For details, see PoS (ICRC2019) 447.

Public Functions

SourceDirectedEmission(Vector3d mu, double kappa)

Constructor

Parameters
  • mu – mean direction of the emission, mu should be normelized

  • kappa – concentration parameter

virtual void prepareCandidate(Candidate &candidate) const
void setCa(double alpha)

set sampling parameter Ca

Parameters

alpha – angle between x and y component of direction. alpha = arctan(mu.y / mu.x)

void setSa(double alpha)

set sampling parameter Sa

Parameters

alpha – angle between x and y component of direction. alpha = arctan(mu.y / mu.x)

void setCd(double delta)

set sampling parameter Cd

Parameters

delta – angle between mu vector and z-axis. delta = arcsin(mu.z)

void setSd(double delta)

set sampling parameter Sd

Parameters

delta – angle between mu vector and z-axis. delta = arcsin(mu.z)

double getCa() const
double getSa() const
double getCd() const
double getSd() 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