Files
karl/include/IO/hdf5_reader.h
csendlinger 5fc227e1b1 Implemented pitch angle resolution.
Still includes (and uses) the non-pitch angle
resolved fields as well; have to be either removed
completely or refactored s.t. one of the two options
is chosen.
Pitch angle distribution has a hardcoded number of
bins for now, and exists in 'energy_binning.h'
2024-10-28 15:00:19 +01:00

29 lines
807 B
C++
Executable File

#ifndef HDF5_READER_H
#define HDF5_READER_H
#include <string>
#include "blitz/array.h"
class Hdf5Reader {
public:
Hdf5Reader(std::string directory, std::string filename);
Hdf5Reader(std::string absolute_filename);
blitz::Array<double, 5> readD5Double(std::string path);
blitz::Array<double, 4> readD4Double(std::string path);
blitz::Array<double, 3> readD3Double(std::string path);
blitz::Array<double, 2> readD2Double(std::string path);
blitz::Array<double, 1> readD1Double(std::string path);
double readDouble(std::string path);
blitz::Array<long int, 5> readD5LongInt(std::string path);
blitz::Array<long int, 4> readD4LongInt(std::string path);
std::stringstream readEngineString(std::string path);
private:
std::string absolute_filename_;
};
#endif /* HDF5_READER_H */