1 #ifndef _io_REASH5File_h_
2 #define _io_REASH5File_h_
4 #include <io/REASH5IOException.h>
5 #include <io/VEventFile.h>
24 class CorsikaShowerFile;
49 void Open(
const std::string& fileName,
const Mode mode =
eRead,
52 void Close()
override;
81 if (group.attrExists(attributeName)) {
83 H5::Attribute attr = group.openAttribute(attributeName);
84 H5::DataType type = attr.getDataType();
85 attr.read(type, &tmp);
91 static herr_t
AddObserver(hid_t loc_id,
const char*
const name,
void*
const operator_data);
Status Read(evt::Event &event) override
read current event advance cursor by 1
static herr_t AddObserver(hid_t loc_id, const char *const name, void *const operator_data)
std::vector< std::string > fBinFileList
Mode
Available open modes.
Base class for exceptions trying to access non-existing components.
unsigned int fCurrentPosition
CorsikaShowerFile * fCorsikaShowerFile
Class representing a document branch.
Status
Return code for seek operation.
Read data from the output of CORSIKA.
static T ReadAttribute(H5::Group group, const std::string &attributeName)
std::string fReasDirectory
Read REASH5 simulation output.
void Write(const evt::Event &event) override
int GetNEvents() override
Status FindEvent(const unsigned int eventId) override
seek Event id set cursor there
void Open(const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr) override
Status GotoPosition(const unsigned int position) override
goto by position in the file
std::string fOrigDirectory