41 lines
962 B
C++
41 lines
962 B
C++
//
|
|
// T2Ie_disexc.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 30.07.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef T2Ie_disexc_h
|
|
#define T2Ie_disexc_h
|
|
|
|
|
|
#include "sub_interaction_base.h"
|
|
#include "janev_eT2I_disexc.h"
|
|
|
|
class T2Ie_DissExc : public Sub_Interaction_Base {
|
|
public:
|
|
T2Ie_DissExc(Population_Base *ePopulation, UniRNG *rngUni) : Sub_Interaction_Base(ePopulation, rngUni) {}
|
|
|
|
double get_microSigma_m2(const double &E_eV) {return Janev_eT2I_DissExc::get_TCS(E_eV);}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
|
|
inline InteractionOut T2Ie_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);
|
|
|
|
//maybe add T Atom
|
|
return res;
|
|
}
|
|
|
|
|
|
|
|
#endif /* T2Ie_disexc_h */
|