Read EVA simulation output. More...
#include "io/EVAFile.h"

Public Member Functions | |
| virtual void | Close () |
| EVAFile () | |
| EVAFile (const std::string &filename, const Mode filemode=eRead, utl::Branch *const b=nullptr) | |
| virtual Status | FindEvent (const unsigned int eventId) |
| seek Event id set cursor there More... | |
| const std::string & | GetFilename () const |
| virtual int | GetNEvents () |
| virtual io::Status | GotoPosition (const unsigned int pos) |
| goto by position in the file More... | |
| virtual void | Open (const std::string &filename, const io::Mode filemode=eRead, utl::Branch *const b=nullptr) |
| virtual Status | Read (evt::Event &event) |
| read current event advance cursor by 1 More... | |
| virtual void | Write (const evt::Event &event) |
| virtual | ~EVAFile () |
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 | |
| bool | CheckFileExtension (const std::string &filename, const std::string &extension) const |
| void | CheckFileReadability (const std::string &filename, const Mode filemode) const |
| EVAFile (const EVAFile &) | |
| void | OpenFile (const std::string &filename) |
| void | ReadBaseFileQuantities () |
| template<class T > | |
| T | ReadQuantity (const std::string &var_name="", const std::string &unit="", const bool optional=false, const bool only_if=true, const T default_value=T()) |
| bool | ReadRadioSimData (evt::Event &) |
| bool | ReadShowerData (evt::Event &) |
| bool | ReadSubfileHeader (std::ifstream &) |
| bool | ReadSubfileLine (std::ifstream &, double &, double *const) |
| void | ReadSubfileList () |
Private Attributes | |
| bool | askaryan_effect_included = false |
| double | azimuth_angle = 0 |
| utl::Vector3D | core_position |
| bool | corsika_longfile_included = false |
| bool | corsika_pancakefile_included = false |
| double | detector_level = 0 |
| int | event_id = 0 |
| unsigned int | events_remaining = 1 |
| std::string | file_extension |
| bool | file_open = false |
| std::string | filename |
| std::string | filetype |
| double | gps_time_nanoseconds = 0 |
| int | gps_time_seconds = 0 |
| std::ifstream | input_file |
| double | magnetic_field = 0 |
| double | magnetic_field_azimuth = 0 |
| double | magnetic_field_zenith = 0 |
| std::string | name |
| double | pancake_thickness = 0 |
| std::string | path_name |
| double | primary_energy = 0 |
| std::string | primary_particle_str |
| utl::Vector3D | refcoord |
| std::vector< SubfileInfo > | sub_file_list |
| double | time_binning_MGMR = 0 |
| std::string | version_string |
| double | zenith_angle = 0 |
Read EVA simulation output.
| io::EVAFile::EVAFile | ( | const std::string & | filename, |
| const Mode | filemode = eRead, |
||
| utl::Branch *const | b = nullptr |
||
| ) |
Definition at line 44 of file EVAFile.cc.
References Open().
|
private |
|
private |
Definition at line 52 of file EVAFile.cc.
Referenced by Open().
|
private |
|
inlinevirtual |
|
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.
|
virtual |
seek Event id set cursor there
Implements io::VEventFile.
Definition at line 424 of file EVAFile.cc.
References ERROR.
|
inlineinherited |
Definition at line 54 of file VEventFile.h.
References io::VEventFile::fFilename.
Referenced by io::EventFile::GetFilename().
|
inlinevirtual |
Implements io::VEventFile.
|
virtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 238 of file EVAFile.cc.
References ERROR, and io::eSuccess.
|
virtual |
Implements io::VEventFile.
Definition at line 207 of file EVAFile.cc.
References CheckFileExtension(), CheckFileReadability(), ERROR, file_extension, file_open, OpenFile(), path_name, ReadBaseFileQuantities(), and ReadSubfileList().
Referenced by EVAFile().
|
private |
|
virtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 393 of file EVAFile.cc.
References io::eEOF, io::eFail, ERROR, io::eSuccess, events_remaining, file_open, ReadRadioSimData(), and ReadShowerData().
|
private |
Definition at line 89 of file EVAFile.cc.
References askaryan_effect_included, azimuth_angle, core_position, corsika_longfile_included, corsika_pancakefile_included, utl::deg, detector_level, utl::electronvolt, event_id, utl::exa, file_extension, filetype, gps_time_nanoseconds, gps_time_seconds, magnetic_field, magnetic_field_azimuth, magnetic_field_zenith, galactic::meter, utl::micro, pancake_thickness, primary_energy, primary_particle_str, refcoord, galactic::second, galactic::tesla, time_binning_MGMR, version_string, and zenith_angle.
Referenced by Open().
|
inlineprivate |
Definition at line 76 of file EVAFile.h.
References filename, input_file, and UnivRecNS::unit.
|
private |
Definition at line 325 of file EVAFile.cc.
References evt::RadioSimulation::AddSimRadioPulse(), core_position, ERROR, event_id, filetype, evt::SimRadioPulse::GetEfieldTimeSeries(), evt::ShowerSimData::GetRadioSimulation(), gps_time_nanoseconds, gps_time_seconds, evt::ShowerSimData::HasRadioSimulation(), evt::ShowerSimData::MakeRadioSimulation(), utl::Trace< T >::PushBack(), ReadSubfileHeader(), ReadSubfileLine(), refcoord, evt::SimRadioPulse::SetBinning(), evt::RadioSimulation::SetCoreCoordinates(), evt::RadioSimulation::SetEventNumber(), evt::RadioSimulation::SetEventTime(), evt::SimRadioPulse::SetRelativeCoordinates(), evt::SimRadioPulse::SetStartTime(), sub_file_list, time_binning_MGMR, and WARNING.
Referenced by Read().
|
private |
Definition at line 251 of file EVAFile.cc.
References azimuth_angle, io::eFail, RdREASSimPreparator::eIron, RdREASSimPreparator::eProton, ERROR, event_id, filetype, evt::Event::HasSimShower(), primary_energy, primary_particle_str, evt::ShowerSimData::SetEnergy(), evt::ShowerSimData::SetGroundParticleCoordinateSystemAzimuth(), evt::ShowerSimData::SetGroundParticleCoordinateSystemZenith(), evt::ShowerSimData::SetPrimaryParticle(), and zenith_angle.
Referenced by Read().
|
private |
Definition at line 290 of file EVAFile.cc.
Referenced by ReadRadioSimData().
|
private |
Definition at line 300 of file EVAFile.cc.
References ERROR, galactic::meter, utl::micro, galactic::second, and galactic::volt.
Referenced by ReadRadioSimData().
|
private |
Definition at line 162 of file EVAFile.cc.
References ERROR, filetype, input_file, galactic::meter, utl::micro, path_name, galactic::second, sub_file_list, and version_string.
Referenced by Open().
|
virtual |
|
private |
Definition at line 143 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 137 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadShowerData().
|
private |
Definition at line 131 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadRadioSimData().
|
private |
Definition at line 144 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 145 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 135 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 146 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), ReadRadioSimData(), and ReadShowerData().
|
private |
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
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 124 of file EVAFile.h.
Referenced by Open(), and ReadBaseFileQuantities().
|
private |
|
private |
Definition at line 119 of file EVAFile.h.
Referenced by ReadQuantity().
|
private |
Definition at line 120 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), ReadRadioSimData(), ReadShowerData(), and ReadSubfileList().
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 148 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadRadioSimData().
|
private |
Definition at line 147 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadRadioSimData().
|
private |
Definition at line 126 of file EVAFile.h.
Referenced by OpenFile(), ReadQuantity(), and ReadSubfileList().
|
private |
Definition at line 141 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 140 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 139 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 142 of file EVAFile.h.
Referenced by ReadBaseFileQuantities().
|
private |
Definition at line 122 of file EVAFile.h.
Referenced by Open(), and ReadSubfileList().
|
private |
Definition at line 134 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadShowerData().
|
private |
Definition at line 133 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadShowerData().
|
private |
Definition at line 132 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadRadioSimData().
|
private |
Definition at line 125 of file EVAFile.h.
Referenced by ReadRadioSimData(), and ReadSubfileList().
|
private |
Definition at line 138 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadRadioSimData().
|
private |
Definition at line 123 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadSubfileList().
|
private |
Definition at line 136 of file EVAFile.h.
Referenced by ReadBaseFileQuantities(), and ReadShowerData().