27 lines
829 B
C++
Executable File
27 lines
829 B
C++
Executable File
#ifndef ELASTIC_SCATTERING_H
|
|
#define ELASTIC_SCATTERING_H
|
|
|
|
#include "simulation/interaction.h"
|
|
|
|
class ScatteringAngleDistribution;
|
|
|
|
namespace interaction {
|
|
|
|
class ElasticScattering : public Interaction {
|
|
public:
|
|
ElasticScattering(std::function<double(double)> cross_section,
|
|
std::shared_ptr<species::Specie> target,
|
|
std::shared_ptr<ScatteringAngleDistribution> theta_distrib);
|
|
|
|
InteractionOutput performInteraction(particle::Particle& particle,
|
|
RandomNumbers* generator);
|
|
virtual double drawCollisionTime(particle::Particle& particle,
|
|
RandomNumbers* generator);
|
|
private:
|
|
std::shared_ptr<ScatteringAngleDistribution> theta_distrib_;
|
|
};
|
|
|
|
}; // namespace interaction
|
|
|
|
#endif /* ELASTIC_SCATTERING_H */
|