Line data Source code
1 : #ifndef CRPROPA_REDSHIFT_H
2 : #define CRPROPA_REDSHIFT_H
3 :
4 : #include "crpropa/Module.h"
5 :
6 : namespace crpropa {
7 : /**
8 : * \addtogroup EnergyLosses
9 : * @{
10 : */
11 :
12 : /**
13 : @class Redshift
14 : @brief Updates redshift and applies adiabatic energy loss according to the traveled distance.
15 : */
16 5 : class Redshift: public Module {
17 : public:
18 : void process(Candidate *candidate) const;
19 : std::string getDescription() const;
20 : };
21 :
22 : /**
23 : @class FutureRedshift
24 : @brief Updates redshift and applies adiabatic energy loss according to the traveled distance. Extends to negative redshift values to allow for symmetric time windows around z=0.
25 : */
26 0 : class FutureRedshift: public Module {
27 : public:
28 : void process(Candidate *candidate) const;
29 : std::string getDescription() const;
30 : };
31 :
32 : /** @}*/
33 : } // namespace crpropa
34 :
35 : #endif // CRPROPA_REDSHIFT_H
|