Changes to Interaction Processor, making possible to add infinite Interactions for all kind of Particles

This commit is contained in:
Christian
2019-04-29 13:09:58 +02:00
parent c44bdacb2c
commit e07c03c888
42 changed files with 1599 additions and 1174 deletions
+36
View File
@@ -0,0 +1,36 @@
//
// interaction_species.hpp
// mc_electron
//
// Created by Christian Reiling on 27.04.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef interaction_species_hpp
#define interaction_species_hpp
#include "interaction_base.h"
typedef std::vector<Interaction*> InteractionsVec;
class ParticleInteractions : public RNG_Base {
Katrin *Kat;
species Species;
InteractionsVec Interactions;
public:
ParticleInteractions(Katrin *Kat, UniRNG *rngUni, NormalRNG *rngNormal, species Species) : RNG_Base(rngUni, rngNormal) {
this->Kat = Kat;
this->Species = Species;
};
InteractionOut do_Interaction(Particle *interPart) const;
double get_macroSigma_m2(const Particle &interPart) const;
void add_Interaction(Interaction* addInteraction);
species get_Species() const {return (Species);};
bool empty() const {return (Interactions.size()==0 ? true : false);}
};
#endif /* interaction_species_hpp */