Read REAS simulation output. More...
#include "io/REASFile.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 |
int | ParseForREASFile (const std::string &directory, std::string &ourFileName) |
Status | Read (evt::Event &event) override |
read current event advance cursor by 1 More... | |
REASFile () | |
REASFile (const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr) | |
void | Write (const evt::Event &event) override |
virtual | ~REASFile () |
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 |
Private Member Functions | |
REASFile & | operator= (const REASFile &) |
REASFile (const REASFile &) | |
Private Attributes | |
std::vector< std::string > | fBinFileList |
CorsikaShowerFile * | fCorsikaShowerFile = nullptr |
unsigned int | fCurrentPosition = 0 |
std::string | fHostName |
std::string | fOrigDirectory |
unsigned long | fProcessId = 0 |
std::string | fReasDirectory |
std::ifstream * | fReasin = nullptr |
Read REAS simulation output.
Definition at line 34 of file REASFile.h.
io::REASFile::REASFile | ( | ) |
Definition at line 65 of file REASFile.cc.
io::REASFile::REASFile | ( | const std::string & | fileName, |
const Mode | mode = eRead , |
||
utl::Branch *const | b = nullptr |
||
) |
Definition at line 70 of file REASFile.cc.
References Open().
|
virtual |
Definition at line 58 of file REASFile.cc.
|
private |
|
overridevirtual |
Implements io::VEventFile.
Definition at line 211 of file REASFile.cc.
References io::CorsikaShowerFile::Close(), fCorsikaShowerFile, fHostName, fProcessId, fReasin, and utl::System().
|
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 750 of file REASFile.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 796 of file REASFile.cc.
Referenced by GotoPosition(), and Read().
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 758 of file REASFile.cc.
References io::eFail, io::eSuccess, and GetNEvents().
Referenced by FindEvent().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 79 of file REASFile.cc.
References utl::BareFileName(), io::eRead, ERROR, fBinFileList, fHostName, fOrigDirectory, fProcessId, fReasDirectory, fReasin, INFO, ParseForREASFile(), and utl::System().
Referenced by REASFile().
int io::REASFile::ParseForREASFile | ( | const std::string & | directory, |
std::string & | ourFileName | ||
) |
Definition at line 770 of file REASFile.cc.
Referenced by Open().
|
overridevirtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 228 of file REASFile.cc.
References evt::RadioSimulation::AddSimRadioPulse(), utl::BareFileName(), io::CorsikaShowerFile::Close(), utl::cm, degree, io::eEOF, io::eFail, io::eRead, ERROR, io::eSuccess, fBinFileList, fCorsikaShowerFile, fCurrentPosition, fOrigDirectory, fReasDirectory, fReasin, fwk::CoordinateSystemRegistry::Get(), evt::SimRadioPulse::GetEfieldTimeSeries(), GetNEvents(), evt::ShowerSimData::GetRadioSimulation(), utl::Trace< T >::GetSize(), evt::SimRadioPulse::GetStartTime(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), io::CorsikaShowerFile::GotoPosition(), evt::ShowerSimData::HasRadioSimulation(), evt::Event::HasSimShower(), INFO, evt::ShowerSimData::MakeRadioSimulation(), galactic::meter, utl::micro, utl::Trace< T >::PushBack(), io::CorsikaShowerFile::Read(), galactic::second, evt::SimRadioPulse::SetAntennaName(), evt::SimRadioPulse::SetBinning(), evt::RadioSimulation::SetCorePosition(), evt::ShowerSimData::SetDistanceOfShowerMaximum(), evt::RadioSimulation::SetEventNumber(), evt::RadioSimulation::SetEventTime(), io::CorsikaShowerFile::SetMagneticFieldDeclination(), evt::ShowerSimData::SetMagneticFieldDeclination(), evt::RadioSimulation::SetRefractiveIndexAtSeaLevel(), evt::SimRadioPulse::SetRelativeCoordinates(), evt::RadioSimulation::SetRunNumber(), evt::ShowerSimData::SetShowerNumber(), evt::SimRadioPulse::SetStartTime(), galactic::volt, and WARNING.
|
overridevirtual |
|
private |
Definition at line 56 of file REASFile.h.
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
private |
Definition at line 63 of file REASFile.h.
|
private |
Definition at line 55 of file REASFile.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().
|
private |
Definition at line 60 of file REASFile.h.
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 58 of file REASFile.h.
|
private |
Definition at line 61 of file REASFile.h.
|
private |
Definition at line 59 of file REASFile.h.
|
private |
Definition at line 57 of file REASFile.h.