// // dcs_theta_container.hpp // mc_electron // // Created by Christian Reiling on 04.06.19. // Copyright © 2019 Christian Reiling. All rights reserved. // #ifndef dcs_theta_container_hpp #define dcs_theta_container_hpp #include "edge_container.h" #include "log_scale.h" #include "random_operations.h" class DCS_Theta_Container { double **data; Log_Scale E_scale; Lin_Scale theta_scale; public: DCS_Theta_Container(double E_min_eV, double E_max_eV, int number_E_bins, int number_theta_bins, std::string load_path); ~DCS_Theta_Container(); DCS_Theta_Container(const DCS_Theta_Container& other); DCS_Theta_Container& operator=(const DCS_Theta_Container& other); private: void init_data(); void calc_data(std::string load_path); double calc_bin_surface(int E_bin, int theta_bin, Edge_Container *E2D); public: double roll_value(const double &E_eV, UniRNG *rngUni); private: double roll_in_bin(const int &theta_bin, UniRNG *rngUni); }; #endif /* dcs_theta_container_hpp */