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,44 @@
|
||||
//
|
||||
// sf_particle_logger.h
|
||||
// mc_electron
|
||||
//
|
||||
// Created by Christian Reiling on 19.05.19.
|
||||
// Copyright © 2019 Christian Reiling. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef sf_particle_logger_h
|
||||
#define sf_particle_logger_h
|
||||
|
||||
#include "particle_logger_base.h"
|
||||
|
||||
|
||||
class SF_Particle_Logger : public Particle_Logger_Base {
|
||||
hid_t *h5g_z;
|
||||
|
||||
H5TB_Interface h5tb;
|
||||
|
||||
public:
|
||||
SF_Particle_Logger(species this_species, hid_t *h5g_z) : Particle_Logger_Base(this_species) {
|
||||
this->h5g_z = h5g_z;
|
||||
create();
|
||||
}
|
||||
|
||||
private:
|
||||
void create();
|
||||
|
||||
public:
|
||||
void log(const Particle &logPart, const vec3 &oldLoc_m);
|
||||
};
|
||||
|
||||
|
||||
inline void SF_Particle_Logger::create() {
|
||||
std::string speciesName = get_species_string(get_species());
|
||||
h5tb = H5TB_Interface(speciesName, h5g_z);
|
||||
}
|
||||
|
||||
inline void SF_Particle_Logger::log(const Particle &logPart, const vec3 &oldLoc_m) {
|
||||
h5tb.write(logPart);
|
||||
}
|
||||
|
||||
|
||||
#endif /* sf_particle_logger_h */
|
||||
Reference in New Issue
Block a user