Read REASH5 simulation output. More...
#include "io/REASH5File.h"
Public Member Functions | |
void | Close () override |
Status | FindEvent (const unsigned int eventId) override |
seek Event id set cursor there More... | |
const std::string & | GetFilename () const |
int | GetNEvents () override |
Status | GotoPosition (const unsigned int position) override |
goto by position in the file More... | |
void | Open (const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr) override |
Status | Read (evt::Event &event) override |
read current event advance cursor by 1 More... | |
REASH5File () | |
REASH5File (const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr) | |
void | Write (const evt::Event &event) override |
virtual | ~REASH5File () |
Protected Member Functions | |
int | DefaultOpen (const std::string &filename, const Mode mode=eRead) |
int | DefaultWrite (evt::Event &event) |
Protected Attributes | |
utl::Branch * | fBranch = nullptr |
std::string | fFilename |
Mode | fMode = eRead |
Static Private Member Functions | |
static herr_t | AddObserver (hid_t loc_id, const char *const name, void *const operator_data) |
template<typename T > | |
static T | ReadAttribute (H5::Group group, const std::string &attributeName) |
Private Attributes | |
std::vector< std::string > | fBinFileList |
CorsikaShowerFile * | fCorsikaShowerFile = nullptr |
unsigned int | fCurrentPosition = 0 |
std::string | fOrigDirectory |
std::string | fReasDirectory |
H5::H5File | fReasH5 |
Read REASH5 simulation output.
Definition at line 40 of file REASH5File.h.
|
inline |
Definition at line 43 of file REASH5File.h.
io::REASH5File::REASH5File | ( | const std::string & | fileName, |
const Mode | mode = eRead , |
||
utl::Branch *const | b = nullptr |
||
) |
Definition at line 153 of file REASH5File.cc.
References Open().
|
virtual |
Definition at line 160 of file REASH5File.cc.
References fCorsikaShowerFile.
|
staticprivate |
Definition at line 79 of file REASH5File.cc.
References evt::RadioSimulation::AddSimRadioPulse(), utl::cm, io::opdata::corecoordinateverticalinreassim, evt::SimRadioPulse::GetEfieldTimeSeries(), utl::Trace< T >::GetSize(), evt::SimRadioPulse::GetStartTime(), io::opdata::magneticfielddeclination, galactic::meter, utl::micro, utl::Trace< T >::PushBack(), io::opdata::radiosim, galactic::second, evt::SimRadioPulse::SetBinning(), evt::SimRadioPulse::SetRelativeCoordinates(), evt::SimRadioPulse::SetStartTime(), and galactic::volt.
Referenced by Read().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 222 of file REASH5File.cc.
References io::CorsikaShowerFile::Close(), fCorsikaShowerFile, and fReasH5.
|
protectedinherited |
Checks that file exists Intended to be called in the Write method of derived classes
Definition at line 31 of file VEventFile.cc.
Referenced by io::VROOTFile::Open(), io::AiresShowerFile::Open(), io::VEventFile::VEventFile(), and io::VROOTFile::VROOTFile().
|
protectedinherited |
Checks that we are open for write Intended to be called in the Write method of derived classes
Definition at line 15 of file VEventFile.cc.
|
overridevirtual |
seek Event id set cursor there
Implements io::VEventFile.
Definition at line 412 of file REASH5File.cc.
References GotoPosition().
|
inlineinherited |
Definition at line 54 of file VEventFile.h.
References io::VEventFile::fFilename.
Referenced by io::EventFile::GetFilename().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 442 of file REASH5File.cc.
Referenced by GotoPosition(), and Read().
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 420 of file REASH5File.cc.
References io::eFail, io::eSuccess, and GetNEvents().
Referenced by FindEvent().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 168 of file REASH5File.cc.
References io::eRead, ERROR, fOrigDirectory, fReasDirectory, fReasH5, and INFO.
Referenced by REASH5File().
|
overridevirtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 234 of file REASH5File.cc.
References AddObserver(), io::CorsikaShowerFile::Close(), utl::cm, io::opdata::corecoordinateverticalinreassim, degree, io::eEOF, io::eFail, io::eRead, ERROR, io::eSuccess, fCorsikaShowerFile, fCurrentPosition, fOrigDirectory, fReasDirectory, fReasH5, fwk::CoordinateSystemRegistry::Get(), GetNEvents(), evt::ShowerSimData::GetRadioSimulation(), io::CorsikaShowerFile::GotoPosition(), evt::ShowerSimData::HasRadioSimulation(), evt::Event::HasSimShower(), INFO, io::opdata::magneticfielddeclination, evt::ShowerSimData::MakeRadioSimulation(), utl::meter, io::opdata::radiosim, io::CorsikaShowerFile::Read(), evt::RadioSimulation::SetCorePosition(), evt::ShowerSimData::SetDistanceOfShowerMaximum(), evt::RadioSimulation::SetEventNumber(), evt::RadioSimulation::SetEventTime(), io::CorsikaShowerFile::SetMagneticFieldDeclination(), evt::ShowerSimData::SetMagneticFieldDeclination(), evt::RadioSimulation::SetRunNumber(), evt::ShowerSimData::SetShowerNumber(), and WARNING.
|
inlinestaticprivate |
Definition at line 79 of file REASH5File.h.
|
overridevirtual |
|
private |
Definition at line 69 of file REASH5File.h.
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
private |
Definition at line 74 of file REASH5File.h.
Referenced by Close(), Read(), and ~REASH5File().
|
private |
Definition at line 68 of file REASH5File.h.
Referenced by Read().
|
protectedinherited |
Definition at line 74 of file VEventFile.h.
Referenced by io::VEventFile::GetFilename(), io::FDasEventFile::Open(), io::AiresShowerFile::Open(), io::VROOTFile::OpenROOTFile(), io::AiresShowerFile::Read(), io::VROOTFile::VROOTFile(), and io::FDasEventFile::Write().
Definition at line 75 of file VEventFile.h.
Referenced by io::VROOTFile::Close(), io::OfflineROOTFile::GetEventBranch(), io::FDasEventFile::Open(), io::VROOTFile::OpenROOTFile(), io::IoAugerEventFile::Write(), and io::FDasEventFile::Write().
|
private |
Definition at line 71 of file REASH5File.h.
|
private |
Definition at line 72 of file REASH5File.h.
|
private |
Definition at line 70 of file REASH5File.h.