35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
//
|
|
// T2Ie_recombination.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 30.07.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef T2Ie_recombination_h
|
|
#define T2Ie_recombination_h
|
|
|
|
#include "sub_interaction_base.h"
|
|
#include "janev_eT2I_recombination.h"
|
|
|
|
class T2Ie_Recombination : public Sub_Interaction_Base {
|
|
public:
|
|
T2Ie_Recombination(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
|
|
|
|
double get_microSigma_m2(const double &E_eV) {return Janev_eT2I_Recombination::get_TCS(E_eV);}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
inline InteractionOut T2Ie_Recombination::do_Interaction (Particle *interPart) {
|
|
InteractionOut res;
|
|
res.set_delete_current(true);
|
|
double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), 2*mT_eV); // should be computed properly using chances.
|
|
Population->decrease_denisty(interPart->get_x_m(), E_eV);
|
|
|
|
// Maybe add the 2 T atoms.
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* T2Ie_recombination_h */
|