Changes to Interaction Processor, making possible to add infinite Interactions for all kind of Particles
This commit is contained in:
@@ -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 */
|
||||
Reference in New Issue
Block a user