Class ElectronPairProduction

Inheritance Relationships

Base Type

Class Documentation

class ElectronPairProduction : public Module

Electron-pair production of charged nuclei with background photons.

This module simulates electron-pair production as a continuous energy loss.

Several photon fields can be selected.

The production of secondary e+/e- pairs and photons can by activated.

By default, the module limits the step size to 10% of the energy loss length of the particle.

Public Functions

ElectronPairProduction(ref_ptr<PhotonField> photonField, bool haveElectrons = false, double limit = 0.1)
void setPhotonField(ref_ptr<PhotonField> photonField)
void setHaveElectrons(bool haveElectrons)
void setLimit(double limit)
void initRate(std::string filename)
void initSpectrum(std::string filename)
void process(Candidate *candidate) const
double lossLength(int id, double lf, double z = 0) const

Calculates the energy loss length 1/beta = -E dx/dE in [m]

The energy loss length is tabulated for protons against

CMB and IRB. Modification for nuclei and cosmological evolution of the photon background is considered with (cf. 10.1016/j.astropartphys.2012.07.010, eq. 3 and 5) beta_A,Z(E) = Z^2 / A * beta_p(E/A) beta(E,z) = (1+z)^3 beta((1+z)E).
Parameters
  • id: PDG particle ID
  • lf: Lorentz factor
  • z: redshift

std::string getDescription() const
void setDescription(const std::string &description)
void process(ref_ptr<Candidate> candidate) const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

size_t _referenceCount