Minior Changes on new structure, exported elastic cross section to seperate file.
Please enter the commit message for your changes. Lines starting
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
|
||||
#include "interaction_builder.hpp"
|
||||
|
||||
const int InteractionBuilder::elaOn = getParameter("elaOn");
|
||||
const int InteractionBuilder::ionOn = getParameter("ionOn");
|
||||
|
||||
const int InteractionBuilder::eT2elastic = getParameter("eT2elastic");
|
||||
const int InteractionBuilder::eT2ionization = getParameter("eT2ionization");
|
||||
|
||||
InteractionProcessor InteractionBuilder::build_InteractionProcessor() {
|
||||
InteractionProcessor InterProcessor(Kat,rngUni,rngNormal);
|
||||
@@ -19,8 +20,12 @@ InteractionProcessor InteractionBuilder::build_InteractionProcessor() {
|
||||
|
||||
ParticleInteractions* InteractionBuilder::build_eInteractions() {
|
||||
ParticleInteractions* eInteractions = new ParticleInteractions(Kat, rngUni, rngNormal, electron);
|
||||
eInteractions->add_Interaction(new e_T2_elasticScattering(Kat, rngUni, rngNormal));
|
||||
eInteractions->add_Interaction(new e_T2_ionization(Kat, rngUni, rngNormal));
|
||||
if (eT2elastic == 1) {
|
||||
eInteractions->add_Interaction(new e_T2_elasticScattering(Kat, rngUni, rngNormal));
|
||||
}
|
||||
if (eT2ionization == 1) {
|
||||
eInteractions->add_Interaction(new e_T2_ionization(Kat, rngUni, rngNormal));
|
||||
}
|
||||
return(eInteractions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user