Class SourceSNRDistribution

Inheritance Relationships

Base Type

Class Documentation

class SourceSNRDistribution : public SourceFeature

Source distribution that follows the Galactic SNR distribution in 2D.

The origin of the distribution is the Galactic center. The default maximum radius is set to rMax=20 kpc and the default maximum height is zMax = 5 kpc. See G. Case and D. Bhattacharya (1996) for the details of the distribution.

Public Functions

SourceSNRDistribution()

Default constructor. Default parameters are: . rEarth = 8.5 kpc . alpha = 2 . beta = 3.53 . zg = 300 pc . rMax = 20 kpc . zMax = 5 kpc

SourceSNRDistribution(double rEarth, double alpha, double beta, double zg)

Generic constructor

Parameters:
  • rEarth – distance from Earth to the Galactic centre [in meters]

  • alpha – parameter that shifts radially the maximum of the distributions

  • beta – parameter that shifts radially the maximum of the distributions

  • zg – exponential cut-off parameter in the z-direction [in meters]

virtual void prepareParticle(ParticleState &particle) const
double fr(double r) const

radial distribution of the SNR density.

Parameters:

r – galactocentric radius in [meter]

double fz(double z) const

height distribution of the SNR density.

Parameters:

z – height over/under the galactic plane in [meter]

void setFzMax(double Zg)

Set the exponential cut-off parameter in the z-direction.

Parameters:

Zg – cut-off parameter

void setRMax(double rMax)
Parameters:

rMax – maximal radius up to which sources are possible

void setZMax(double zMax)
Parameters:

zMax – maximal height up to which sources are possible

void setAlpha(double a)
void setBeta(double b)
double getFrMax() const
double getFzMax() const
double getRMax() const
double getZMax() const
double getAlpha() const
double getBeta() 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