Reworked minor changes in structure and integration over energetic population container.
35 lines
921 B
C++
35 lines
921 B
C++
//
|
|
// eT2I_recombination.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 18.06.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef eT2I_recombination_h
|
|
#define eT2I_recombination_h
|
|
|
|
#include "sub_interaction_base.h"
|
|
#include "janev_eT2I_recombination.h"
|
|
|
|
class eT2I_Recombination : public Sub_Interaction_Base {
|
|
public:
|
|
eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T2IPopulation, rngUni) {}
|
|
|
|
double get_microSigma_m2(const double &E_eV) {return Janev_eT2I_Recombination::get_TCS(E_eV);}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
|
|
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
|
|
InteractionOut res;
|
|
res.set_delete_current(true);
|
|
Population->decrease_denisty(interPart->get_x_m(), interPart->get_E_eV());
|
|
|
|
// Maybe add the 2 T atoms.
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* eT2I_recombination_h */
|