Major changes:
- Added individul operators for species and better selecting process. - Switched to C arrays for main loop operations and calculating array indizes using knowledge of binning instead of doing sorted search - Added Recombination - Reworked elastic scattering kinematics - Added inelastic scattering kinematics
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// logger_builder.cpp
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 18.05.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#include "logger_builder.hpp"
|
||||
|
||||
#include "multiz_particle_logger.h"
|
||||
#include "sf_particle_logger.h"
|
||||
#include "off_particle_logger.h"
|
||||
|
||||
|
||||
Particle_Logger_Manager Particle_Logger_Builder::build(H5_File *h5f) {
|
||||
Particle_Logger_Manager ParticleLogger;
|
||||
H5_Particles *h5p = h5f->get_h5p();
|
||||
|
||||
ParticleLogger.add(build_eLogger(h5p));
|
||||
ParticleLogger.add(new Off_Particle_Logger(tritiumI));
|
||||
ParticleLogger.add(new Off_Particle_Logger(tritium2I));
|
||||
return (ParticleLogger);
|
||||
}
|
||||
|
||||
Particle_Logger_Base *Particle_Logger_Builder::build_eLogger(H5_Particles *h5p) {
|
||||
Particle_Logger_Base *res;
|
||||
if (h5p->get_logging() == false) {
|
||||
res = new Off_Particle_Logger(electron);
|
||||
} else if(h5p->get_numberZBins() == -1){
|
||||
res = new SF_Particle_Logger(electron, h5p->get_h5g_z());
|
||||
} else {
|
||||
res = new MuliZ_Particle_Logger(electron, h5p->get_numberZBins(), h5p->get_zValues(), h5p->get_h5g_z());
|
||||
}
|
||||
return (res);
|
||||
}
|
||||
Reference in New Issue
Block a user