Changes to Interaction Processor, making possible to add infinite Interactions for all kind of Particles
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// interaction_builder.cpp
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 29.04.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#include "interaction_builder.hpp"
|
||||
|
||||
const int InteractionBuilder::elaOn = getParameter("elaOn");
|
||||
const int InteractionBuilder::ionOn = getParameter("ionOn");
|
||||
|
||||
InteractionProcessor InteractionBuilder::build_InteractionProcessor() {
|
||||
InteractionProcessor InterProcessor(Kat,rngUni,rngNormal);
|
||||
InterProcessor.add_ParticleInteraction(build_eInteractions());
|
||||
return(InterProcessor);
|
||||
}
|
||||
|
||||
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));
|
||||
return(eInteractions);
|
||||
}
|
||||
|
||||
/*
|
||||
ParticleInteractions InteractionBuilder::build_T2Interactions() {
|
||||
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user