Class TabularSpatialPhotonField
Defined in File PhotonBackground.h
Inheritance Relationships
Base Type
public PhotonField(Class PhotonField)
Derived Types
public ISRF_Freudenreich98(Class ISRF_Freudenreich98)public ISRF_Robitaille12(Class ISRF_Robitaille12)
Class Documentation
-
class TabularSpatialPhotonField : public PhotonField
Position dependent photon field decorator for tabulated photon fields.
This class reads photon field data from files in the appropriate directory; The first files must be lists of photon energies [J], named fieldName_photonEnergy.txt and contained in the subdirectory /photonEnegy/; The second files must be lists of comoving photon field densities [1/m^3], named fieldName_photonDensity.txt and contained in the subdirectory /photonDensity/; The generated files through the CRPropa procedure (https://crpropa.github.io/CRPropa3/pages/example_notebooks/custom_photonfield/custom-photon-field.html) have a different ordering: the energy bins from the larger to the lower. No redshift dependence is available. The surface is defined to include the nodes of the grid contained within.
Subclassed by ISRF_Freudenreich98, ISRF_Robitaille12
Public Functions
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
Protected Attributes
-
mutable size_t _referenceCount
-
inline size_t addReference() const