// // h5_populations.h // mc_electron // // Created by Christian Reiling on 28.05.19. // Copyright © 2019 Christian Reiling. All rights reserved. // #ifndef h5_populations_h #define h5_populations_h #include "read_system.h" #include #include #include "hdf5.h" #include "hdf5_hl.h" #include "katrin_geo.hpp" class H5_Populations { hid_t *h5_file; hid_t *h5g_populations; public: H5_Populations() {}; H5_Populations(hid_t *h5_file); hid_t *get_h5g_pop() {return(h5g_populations);} }; inline H5_Populations::H5_Populations(hid_t *h5_file) { this->h5_file = h5_file; h5g_populations = new hid_t; *h5g_populations = H5Gcreate(*h5_file, "/Populations", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); } #endif /* h5_populations_h */