39 lines
1.0 KiB
C++
39 lines
1.0 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 "e_thermal_base.h"
|
|
|
|
#include "petterson_eT5I_recombination.h"
|
|
|
|
class eT5I_Recombination : public e_thermal_Precomputed_Interaction_Base {
|
|
public:
|
|
eT5I_Recombination(Population_Base *T5IPopulation, UniRNG *rngUni) : e_thermal_Precomputed_Interaction_Base(T5IPopulation, 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 Pettersson_eT5I_Recombination::get_TCS(E_eV);
|
|
}
|
|
InteractionOut do_Interaction (Particle *interPart);
|
|
};
|
|
|
|
|
|
inline InteractionOut eT5I_Recombination::do_Interaction (Particle *interPart) {
|
|
InteractionOut res;
|
|
//std::cout<<"eT5I:\t"<<*interPart<<"\n";
|
|
res.set_delete_current(true);
|
|
//Population->decrease_denisty(interPart->get_x_m(), 0);
|
|
return res;
|
|
}
|
|
|
|
|
|
#endif /* eT5I_recombination_h */
|