30 lines
1.0 KiB
C++
Executable File
30 lines
1.0 KiB
C++
Executable File
#ifndef ELASTIC_SCATTERING_H
|
|
#define ELASTIC_SCATTERING_H
|
|
|
|
#include "simulation/interaction.h"
|
|
|
|
class ScatteringAngleDistribution;
|
|
|
|
namespace interaction {
|
|
|
|
// class for handling elastic scattering interactions (A + B --> A + B)
|
|
class ElasticScattering : public Interaction {
|
|
public:
|
|
// Constructor: takes a function for the cross section, a shared_ptr with the Specie of the target of the interaction
|
|
// and a shared_ptr to a scatteringAngleDistribution object
|
|
ElasticScattering(std::function<double(double)> cross_section,
|
|
std::shared_ptr<species::Specie> target,
|
|
std::shared_ptr<ScatteringAngleDistribution> theta_distrib);
|
|
|
|
// return the interaction outcome as an InteractionOutput object
|
|
InteractionOutput performInteraction(particle::Particle& particle,
|
|
RandomNumbers* generator);
|
|
|
|
private:
|
|
std::shared_ptr<ScatteringAngleDistribution> theta_distrib_;
|
|
};
|
|
|
|
}; // namespace interaction
|
|
|
|
#endif /* ELASTIC_SCATTERING_H */
|