Added elastic scattering interaction that creates
a particle for the "upscattered" neutralgas target
This commit is contained in:
@@ -13,14 +13,29 @@ class ElasticScattering : public Interaction {
|
||||
std::shared_ptr<species::Specie> target,
|
||||
std::shared_ptr<ScatteringAngleDistribution> theta_distrib);
|
||||
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
virtual InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
virtual double drawCollisionTime(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
private:
|
||||
protected:
|
||||
std::shared_ptr<ScatteringAngleDistribution> theta_distrib_;
|
||||
};
|
||||
|
||||
// Full elastic scattering in the sense that both particles after scattering
|
||||
// become tracked
|
||||
class ElasticScatteringFull : public ElasticScattering {
|
||||
public:
|
||||
ElasticScatteringFull(std::function<double(double)> cross_section,
|
||||
std::shared_ptr<species::Specie> target,
|
||||
std::shared_ptr<ScatteringAngleDistribution> theta_distrib,
|
||||
std::shared_ptr<species::TrackedSpecie> product);
|
||||
|
||||
InteractionOutput performInteraction(particle::Particle& particle,
|
||||
RandomNumbers* generator);
|
||||
protected:
|
||||
std::shared_ptr<species::TrackedSpecie> product_;
|
||||
};
|
||||
|
||||
}; // namespace interaction
|
||||
|
||||
#endif /* ELASTIC_SCATTERING_H */
|
||||
|
||||
Reference in New Issue
Block a user