Major update:
1. Added precalculation of integral values in thermal regime. 2. Minor Changes in Injection of \beta-electrons and ions.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#define eT2_elastic_h
|
||||
|
||||
#include "sub_interaction_base.h"
|
||||
#include "precomputed_interaction_base.h"
|
||||
#include "uehara_eT2_elastic.hpp"
|
||||
#include "tcs_container.hpp"
|
||||
#include "dcs_theta_container.hpp"
|
||||
@@ -17,19 +18,20 @@
|
||||
#include "dcs_base.h"
|
||||
|
||||
|
||||
class eT2_Elastic : public e_thermal_Interaction_Base {
|
||||
class eT2_Elastic : public e_thermal_Precomputed_Interaction_Base {
|
||||
TCS_Container tcs_data;
|
||||
DCS_Base *dcs_gen;
|
||||
Elastic_Kinematic_Base kinematics;
|
||||
|
||||
public:
|
||||
eT2_Elastic(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : e_thermal_Interaction_Base(T2Population, rngUni),
|
||||
eT2_Elastic(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : e_thermal_Precomputed_Interaction_Base(T2Population, rngUni, me_eV),
|
||||
tcs_data(scale_start, scale_end, 1e3, get_data_path() + "eT2_ela_TCS.dat"),
|
||||
kinematics(me_eV, 2*mT_eV) {
|
||||
this->dcs_gen = dcs_gen;
|
||||
calc_values(); // need to call here, because, constructor can't call pure virtual function
|
||||
}
|
||||
|
||||
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {return tcs_data.get_value(E_eV);}
|
||||
double get_microSigma_m2(const double &E_eV) {return tcs_data.get_value(E_eV);}
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user