// // population4_container.hpp // mc_electron // // Created by Christian Reiling on 11.06.19. // Copyright © 2019 Christian Reiling. All rights reserved. // #ifndef population4_container_hpp #define population4_container_hpp #include "log_scale.h" #include "katrin_geo.hpp" #include "timer.hpp" class Pop4_Container { double ****data; Lin_Scale z_scale; Lin_Scale r_scale; Lin_Scale phi_scale; Log_Scale E_scale; public: //Pop4_Container() {}; Pop4_Container(int num_z_bins, int num_r_bins, int num_phi_bins, int num_E_bins); ~Pop4_Container(); Pop4_Container(const Pop4_Container& other); Pop4_Container& operator=(const Pop4_Container& other); void increase_value(const double &value, const vec3 &loc_m, const double &E_eV); void increase_value(const double &value, const vec3 &loc1_m, const vec3 &loc2_m, const double &E_eV); double get_value(const vec3 &loc_m, const double &E_eV); double *get_E_bins (const vec3 &loc_m); int get_num_E_bins(){return E_scale.get_number_bins();} double get_corresponding_E_lower_eV(int E_bin){return E_scale.get_lower_bin_bound(E_bin);} double get_corresponding_E_upper_eV(int E_bin){return E_scale.get_upper_bin_bound(E_bin);} void set_value_by_bin(double value, int z_bin, int r_bin, int phi_bin, int E_bin) {data[z_bin][r_bin][phi_bin][E_bin] = value;} double get_value_by_bin(int z_bin, int r_bin, int phi_bin, int E_bin) {return data[z_bin][r_bin][phi_bin][E_bin];} Lin_Scale get_z_scale(){return z_scale;} Lin_Scale get_r_scale(){return r_scale;} Lin_Scale get_phi_scale(){return phi_scale;} Log_Scale get_E_scale(){return E_scale;} }; #endif /* population4_container_hpp */