39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
//
|
|
// T3Ie_disexc.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 30.07.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef T3Ie_disexc_h
|
|
#define T3Ie_disexc_h
|
|
|
|
#include "sub_interaction_base.h"
|
|
#include "janev_eT3I_disexc.h"
|
|
|
|
class T3Ie_DissExc : public Sub_Interaction_Base {
|
|
public:
|
|
T3Ie_DissExc(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
|
|
|
|
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {return Janev_eT3I_DissExc::get_TCS(E_eV);}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
|
|
inline InteractionOut T3Ie_DissExc::do_Interaction (Particle *interPart) {
|
|
InteractionOut res;
|
|
res.set_delete_current(true);
|
|
|
|
vec3 loc_m = interPart->get_x_m();
|
|
vec3 vTI_ms = interPart->get_v_ms();
|
|
Particle TI = Particle_Builder::create_TI(loc_m, vTI_ms, -1, interPart->get_Id());
|
|
res.add_new_particle(TI);
|
|
double E_eV = calc_E_eV_from_v_ms(Population->roll_v_ms(interPart->get_x_m()), me_eV); // should be computed properly using chances.
|
|
//Population->decrease_denisty(loc_m, E_eV);
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* T3Ie_disexc_h */
|