// // T3IT2_radasc.h // mc_electron // // Created by Christian Reiling on 08.10.19. // Copyright © 2019 Christian Reiling. All rights reserved. // #ifndef T3IT2_radasc_h #define T3IT2_radasc_h #include "TI_thermal_binary_base.h" class T3IT2_RadAsc : public TI_thermal_Rate_Interaction_Base { public: T3IT2_RadAsc(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_Rate_Interaction_Base(T2Population, rngUni, 1) { //calc_values(); // need to call here, because, constructor can't call pure virtual function }; double get_microSigma_m2(const double &E_eV) { double v_ms = calc_v_ms_from_E_eV(E_eV, 3*mT_eV); return 5e-23/v_ms; // CS from Gerlich:1990aa } InteractionOut do_Interaction (Particle *interPart); }; inline InteractionOut T3IT2_RadAsc::do_Interaction (Particle *interPart) { InteractionOut InterOut; vec3 loc_m = interPart->get_x_m(); vec3 v2_ms = Population->roll_v_ms(loc_m); Particle T5INew = Particle_Builder::create_T5I(loc_m, v2_ms, -1, interPart->get_Id()); InterOut.add_new_particle(T5INew); InterOut.set_delete_current(true); return InterOut; } #endif /* T3IT2_radasc_h */