Restructured Interaction Base classes and reviewed. Added Parameters for Setting Number of Integration Points for CS and for Population sices.
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
//
|
|
// TIT2_radasc.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 08.10.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef TIT2_radasc_h
|
|
#define TIT2_radasc_h
|
|
|
|
#include "TI_thermal_binary_base.h"
|
|
|
|
class TIT2_RadAsc : public TI_thermal_binary_Precomputed_Interaction_Base {
|
|
|
|
public:
|
|
TIT2_RadAsc(Population_Base *T2Population, UniRNG *rngUni) : TI_thermal_binary_Precomputed_Interaction_Base(T2Population, rngUni, mT_eV) {
|
|
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, mT_eV);
|
|
return 5e-23/v_ms; // CS from Plasil:2012
|
|
}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
inline InteractionOut TIT2_RadAsc::do_Interaction (Particle *interPart) {
|
|
InteractionOut InterOut;
|
|
vec3 loc_m = interPart->get_x_m();
|
|
vec3 v2_ms = Population->roll_v_ms(loc_m);
|
|
Particle T3INew = Particle_Builder::create_T3I(loc_m, v2_ms, -1, interPart->get_Id());
|
|
|
|
InterOut.add_new_particle(T3INew);
|
|
InterOut.set_delete_current(true);
|
|
return InterOut;
|
|
}
|
|
|
|
|
|
#endif /* TIT2_radasc_h */
|