29 lines
811 B
C++
29 lines
811 B
C++
//
|
|
// terminator_builder.cpp
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 19.05.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#include "terminator_builder.hpp"
|
|
|
|
#include "electron_terminator.h"
|
|
#include "tritiumI_terminator.h"
|
|
#include "tritium2I_terminator.h"
|
|
|
|
#include "read_system.h"
|
|
|
|
const int Terminator_Builder::maxInteractions = load_parameter("maxInteractions");
|
|
const double Terminator_Builder::cutoffEnergy_eV = load_parameter("cutoffEnergy_eV");
|
|
|
|
|
|
Terminator_Manager Terminator_Builder::build() {
|
|
Terminator_Manager Terminator;
|
|
Terminator.add(new E_Terminator(maxInteractions, cutoffEnergy_eV));
|
|
Terminator.add(new TI_Terminator(maxInteractions, cutoffEnergy_eV));
|
|
Terminator.add(new T2I_Terminator(maxInteractions, cutoffEnergy_eV));
|
|
return (Terminator);
|
|
|
|
}
|