Changes to Interaction Processor, making possible to add infinite Interactions for all kind of Particles
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// interaction_processor.hpp
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 16.04.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef interaction_processor_hpp
|
||||
#define interaction_processor_hpp
|
||||
|
||||
#include "interaction_species.hpp"
|
||||
|
||||
|
||||
|
||||
typedef std::vector <ParticleInteractions*> ParticleInteractionsVec;
|
||||
|
||||
class InteractionProcessor : public RNG_Base {
|
||||
Katrin *Kat;
|
||||
ParticleInteractionsVec ParticleInteractions;
|
||||
|
||||
public:
|
||||
InteractionProcessor(Katrin *Kat, UniRNG *rngUni, NormalRNG *rngNormal) : RNG_Base(rngUni, rngNormal){
|
||||
this->Kat = Kat;
|
||||
};
|
||||
|
||||
InteractionOut do_Interaction(Particle *interPart) const;
|
||||
double get_macroSigma_m2(const Particle &interPart) const;
|
||||
|
||||
public:
|
||||
void add_ParticleInteraction(class ParticleInteractions* particleInteraction);
|
||||
|
||||
bool empty() const {return (ParticleInteractions.size()==0 ? true : false);}
|
||||
private:
|
||||
ParticleInteractionsVec::const_iterator find_ParticleInteraction (species findSpec) const;
|
||||
ParticleInteractionsVec::iterator find_ParticleInteraction (species findSpec);
|
||||
};
|
||||
|
||||
#endif /* interaction_processor_hpp */
|
||||
Reference in New Issue
Block a user