Added buffer for HDF5 output.

Added E-Field container.
This commit is contained in:
Christian
2019-09-03 16:35:55 +02:00
parent 794bfb2b98
commit 1978039630
15 changed files with 1000185 additions and 69 deletions
+36
View File
@@ -0,0 +1,36 @@
//
// vec3_container.hpp
// mc_electron
//
// Created by Christian Reiling on 02.09.19.
// Copyright © 2019 Christian Reiling. All rights reserved.
//
#ifndef vec3_container_hpp
#define vec3_container_hpp
#include "lin_scale.h"
#include "kinematics.h"
#include "constants.h"
class Vec3_Container {
vec3 *data;
Lin_Scale z_scale, r_scale, phi_scale;
public:
Vec3_Container(int num_z_bins, int num_r_bins, int num_phi_bins, std::string load_path);
~Vec3_Container();
Vec3_Container(const Vec3_Container& other);
Vec3_Container& operator=(const Vec3_Container& other);
private:
void load_data(std::string load_path);
void read_line(std::string csv_line, bool *check_array);
public:
vec3 get_data (const vec3 &loc_m);
private:
int calc_data_bin(const vec3 &loc_m);
};
#endif /* vec3_container_hpp */