Added Parameters to controll Interaction building more precisely:
Toggle Recombination On/Off Toggle Excitation On/Off Control DCS_Data for Elastic and Excitaiton between: Elastic_data, 4Pi, 0Pi(straight forward)
This commit is contained in:
@@ -14,18 +14,20 @@
|
||||
#include "tcs_container.hpp"
|
||||
#include "dcs_theta_container.hpp"
|
||||
#include "kinematics_base.h"
|
||||
#include "dcs_base.h"
|
||||
|
||||
|
||||
class eT2_Elastic : public Sub_Interaction_Base {
|
||||
TCS_Container tcs_data;
|
||||
DCS_Theta_Container dcs_data;
|
||||
DCS_Base *dcs_gen;
|
||||
Elastic_Kinematic_Base kinematics;
|
||||
|
||||
public:
|
||||
eT2_Elastic(Population_Base *T2Population, UniRNG *rngUni) : Sub_Interaction_Base(T2Population, rngUni),
|
||||
eT2_Elastic(Population_Base *T2Population, UniRNG *rngUni, DCS_Base *dcs_gen) : Sub_Interaction_Base(T2Population, rngUni),
|
||||
tcs_data(scale_start, scale_end, 1e3, get_data_path() + "eT2_ela_TCS.dat"),
|
||||
dcs_data(scale_start, scale_end, 1e3, 200, get_data_path() + "eT2_ela_DCS.dat"),
|
||||
kinematics(me_eV, mT2_eV) {}
|
||||
kinematics(me_eV, mT2_eV) {
|
||||
this->dcs_gen = dcs_gen;
|
||||
}
|
||||
|
||||
double get_macroSigma_m2(const Particle &interPart);
|
||||
InteractionOut do_Interaction (Particle *interPart);
|
||||
@@ -46,7 +48,7 @@ inline InteractionOut eT2_Elastic::do_Interaction (Particle *interPart) {
|
||||
vec3 vOff_ms = Population->roll_speed_ms(interPart->get_Location_m());
|
||||
vec3 vLab_ms = v1_ms - vOff_ms;
|
||||
double T_eV = calc_Ekin_eV_from_speed(vLab_ms, me_eV);
|
||||
double theta_lab = dcs_data.roll_value(T_eV,rngUni);
|
||||
double theta_lab = dcs_gen->get_theta(T_eV);
|
||||
double phi_lab = rngUni->random() * 2 * pi;
|
||||
kinematics.doKinematics(interPart, vOff_ms, theta_lab, phi_lab);
|
||||
return InteractionOut();
|
||||
|
||||
Reference in New Issue
Block a user