// // tcs_container.hpp // mc_electron // // Created by Christian Reiling on 20.05.19. // Copyright © 2019 Christian Reiling. All rights reserved. // #ifndef tcs_container_hpp #define tcs_container_hpp #include "logScale.h" #include "edge_container.h" #include class TCS_Container { double *data; Log_Scale E_scale; public: ~TCS_Container() { delete[] data; }; TCS_Container(double E_min_eV, double E_max_eV, int number_bins, std::string load_path) { E_scale = Log_Scale(E_min_eV, E_max_eV, number_bins); calc_data(load_path); //calc, whereas, load_path contains point with exact values for cross section. } double get_value(double E_eV); private: void calc_data(const std::string &load_path); double calc_bin_value(const int &bin, Edge_Container *E1D); }; #endif /* tcs_container_hpp */