38 lines
931 B
C++
38 lines
931 B
C++
//
|
|
// 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"
|
|
#include "ElectricField.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(int num_z_bins, int num_r_bins, int num_phi_bins, ElectricField &E);
|
|
~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 */
|