39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
//
|
|
// eT2I_recombination.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 18.06.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef eT2I_recombination_h
|
|
#define eT2I_recombination_h
|
|
|
|
#include "e_kinetic_base.h"
|
|
|
|
#include "janev_eT2I_recombination.h"
|
|
|
|
class eT2I_Recombination : public e_kinetic_Precomputed_Interaction_Base {
|
|
public:
|
|
eT2I_Recombination(Population_Base *T2IPopulation, UniRNG *rngUni) : e_kinetic_Precomputed_Interaction_Base(T2IPopulation, rngUni, me_eV) {
|
|
calc_values(); // need to call here, because, constructor can't call pure virtual function
|
|
}
|
|
|
|
double get_microSigma_m2(const double &E_eV) {
|
|
return Janev_eT2I_Recombination::get_TCS(E_eV);
|
|
}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
|
|
inline InteractionOut eT2I_Recombination::do_Interaction (Particle *interPart) {
|
|
InteractionOut res;
|
|
res.set_delete_current(true);
|
|
//std::cout<<"eT2I:\t"<<*interPart<<"\n";
|
|
//Population->decrease_denisty(interPart->get_x_m(), 0);
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* eT2I_recombination_h */
|