Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
@@ -7,12 +7,16 @@ 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);