41 lines
977 B
C++
41 lines
977 B
C++
//
|
|
// 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 "population.hpp"
|
|
|
|
#include "interaction_base.h"
|
|
|
|
typedef std::vector<Interaction*> InteractionsVec;
|
|
|
|
|
|
class ParticleInteractions : public RNG_Base {
|
|
Population *Pop;
|
|
species Species;
|
|
InteractionsVec Interactions;
|
|
|
|
public:
|
|
ParticleInteractions(species Species, Population *Pop, UniRNG *rngUni, NormalRNG *rngNormal) : RNG_Base(rngUni, rngNormal) {
|
|
this->Pop = Pop;
|
|
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 */
|