41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
//
|
|
// eT5I_recombination.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 16.09.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef eT5I_recombination_h
|
|
#define eT5I_recombination_h
|
|
|
|
#include "sub_interaction_base.h"
|
|
#include "petterson_eT5I_recombination.h"
|
|
|
|
class eT5I_Recombination : public Sub_Interaction_Base {
|
|
public:
|
|
eT5I_Recombination(Population_Base *T5IPopulation, UniRNG *rngUni) : Sub_Interaction_Base(T5IPopulation, rngUni) {}
|
|
|
|
double get_microSigma_m2(const double &E_eV, const vec3 &loc_m) {
|
|
double temp = Pettersson_eT5I_Recombination::get_TCS(E_eV) * Population->get_density_m3(loc_m);
|
|
if (temp!=0) {
|
|
//std::cout<<Pettersson_eT5I_Recombination::get_TCS(E_eV)<<std::endl;
|
|
//std::cout<<Population->get_density_m3(loc_m)<<std::endl;
|
|
std::cout<<temp<<std::endl;
|
|
}
|
|
return Pettersson_eT5I_Recombination::get_TCS(E_eV);
|
|
}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
|
|
inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) {
|
|
InteractionOut res;
|
|
res.set_delete_current(true);
|
|
Population->decrease_denisty(interPart->get_x_m(), 0);
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* eT5I_recombination_h */
|