Class IRB_Kneiske04

Inheritance Relationships

Base Type

Class Documentation

class IRB_Kneiske04 : public TabularPhotonField

Extragalactic background light model from Kneiske et al. 2004.

Source info: DOI:10.1051/0004-6361:20031542, https://www.aanda.org/articles/aa/pdf/2004/03/aa3848.pdf, figure 1 (“Best-fit” model)

Public Functions

inline IRB_Kneiske04()
virtual double getPhotonDensity(double ePhoton, double z = 0.) const

returns comoving photon density [1/m^3]. multiply with (1+z^3) for physical number density.

Parameters:
  • ePhoton – photon energy [J]

  • z – redshift (if redshift dependent, default = 0.)

virtual double getRedshiftScaling(double z) const

returns overall comoving scaling factor (cf. CRPropa3-data/calc_scaling.py)

Parameters:

z – redshift

virtual double getMinimumPhotonEnergy(double z) const
virtual double getMaximumPhotonEnergy(double z) const
inline virtual std::string getFieldName() const
inline bool hasRedshiftDependence() const
inline void setFieldName(std::string fieldName)
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Functions

void readPhotonEnergy(std::string filePath)
void readPhotonDensity(std::string filePath)
void readRedshift(std::string filePath)
void initRedshiftScaling()
void checkInputData() const

Protected Attributes

std::vector<double> photonEnergies
std::vector<double> photonDensity
std::vector<double> redshifts
std::vector<double> redshiftScalings
std::string fieldName
bool isRedshiftDependent
mutable size_t _referenceCount