Program Listing for File SimplePropagation.h

Return to documentation for file (include/crpropa/module/SimplePropagation.h)

#ifndef SIMPLEPROPAGATION_H
#define SIMPLEPROPAGATION_H

#include "crpropa/Module.h"
#include "crpropa/Units.h"

namespace crpropa {
class SimplePropagation: public Module {
private:
        double minStep, maxStep;

public:
        SimplePropagation(double minStep = (0.1 * kpc), double maxStep = (1 * Gpc));
        void process(Candidate *candidate) const;
        void setMinimumStep(double minStep);
        void setMaximumStep(double maxStep);
        double getMinimumStep() const;
        double getMaximumStep() const;
        std::string getDescription() const;
};
} // namespace crpropa

#endif // SIMPLEPROPAGATION_H