#include <ZHAireSFile.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... | |
void | Write (const evt::Event &event) override |
double | ZHAireSAzimuthToAuger (const double airesAzimuth) |
Returns the azimuth rotated from AIRES's system to Auger standard. More... | |
ZHAireSFile () | |
ZHAireSFile (const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr) | |
virtual | ~ZHAireSFile () |
Static Public Member Functions | |
static void | Rotatez (const double theta, const double vi[], double vf[]) |
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 | |
ZHAireSFile & | operator= (const ZHAireSFile &) |
ZHAireSFile (const ZHAireSFile &) | |
Private Attributes | |
double | fBDeclination = 0 |
std::vector< std::string > | fBinFileList |
unsigned int | fCurrentPosition = 0 |
std::ifstream * | fdef = nullptr |
std::string | fHostName |
std::string | fOrigDirectory |
unsigned long | fProcessId |
std::ifstream * | fsry = nullptr |
std::string | fZHAireSDirectory |
std::ifstream * | fZHAireSin = nullptr |
std::ofstream | logfile |
Definition at line 24 of file ZHAireSFile.h.
|
inline |
Definition at line 27 of file ZHAireSFile.h.
io::ZHAireSFile::ZHAireSFile | ( | const std::string & | fileName, |
const Mode | mode = eRead , |
||
utl::Branch *const | b = nullptr |
||
) |
Definition at line 67 of file ZHAireSFile.cc.
|
virtual |
Definition at line 56 of file ZHAireSFile.cc.
|
private |
|
overridevirtual |
Implements io::VEventFile.
Definition at line 210 of file ZHAireSFile.cc.
References fdef, fHostName, fProcessId, fsry, fZHAireSin, 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 843 of file ZHAireSFile.cc.
References GotoPosition().
|
inlineinherited |
Definition at line 54 of file VEventFile.h.
References io::VEventFile::fFilename.
Referenced by io::EventFile::GetFilename().
|
inlineoverridevirtual |
Implements io::VEventFile.
Definition at line 37 of file ZHAireSFile.h.
Referenced by GotoPosition(), and Read().
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 851 of file ZHAireSFile.cc.
References io::eFail, io::eSuccess, and GetNEvents().
Referenced by FindEvent().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 79 of file ZHAireSFile.cc.
References io::eRead, ERROR, fdef, fHostName, fProcessId, fsry, fZHAireSin, INFO, logfile, and utl::System().
Referenced by ZHAireSFile().
|
private |
|
overridevirtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 231 of file ZHAireSFile.cc.
References evt::RadioSimulation::AddSimRadioPulse(), utl::cm, utl::cm2, utl::deg, degree, io::eEOF, galactic::EeV, io::eFail, RdREASSimPreparator::eProton, ERROR, io::eSuccess, galactic::eV, fBDeclination, fCurrentPosition, fdef, fsry, fZHAireSin, utl::g, galactic::gauss, evt::SimRadioPulse::GetBinning(), evt::RadioSimulation::GetCorePosition(), evt::SimRadioPulse::GetEfieldTimeSeries(), evt::ShowerSimData::GetEnergy(), evt::RadioSimulation::GetEventNumber(), evt::RadioSimulation::GetEventTime(), utl::TimeStamp::GetGPSNanoSecond(), utl::TimeStamp::GetGPSSecond(), evt::ShowerSimData::GetGroundParticleCoordinateSystemAzimuth(), evt::ShowerSimData::GetGroundParticleCoordinateSystemZenith(), utl::UTMPoint::GetHeight(), evt::RadioSimulation::GetLocalCoordinateSystem(), evt::SimRadioPulse::GetLocation(), evt::ShowerSimData::GetMagneticFieldDeclination(), evt::ShowerSimData::GetMagneticFieldInclination(), evt::ShowerSimData::GetMagneticFieldStrength(), GetNEvents(), evt::RadioSimulation::GetNumPulses(), evt::ShowerSimData::GetPrimaryParticle(), evt::ShowerSimData::GetRadioSimulation(), evt::RadioSimulation::GetRunNumber(), evt::ShowerSimData::GetShowerNumber(), evt::ShowerSimData::GetShowerRunId(), evt::RadioSimulation::GetSimPulseByIndex(), evt::SimRadioPulse::GetStartTime(), utl::ReferenceEllipsoid::GetWGS84(), utl::BasicVector< HepVector >::GetX(), utl::BasicVector< HepVector >::GetY(), utl::BasicVector< HepVector >::GetZ(), utl::GeV, evt::RadioSimulation::HasCorePosition(), evt::ShowerSimData::HasRadioSimulation(), evt::Event::HasSimShower(), INFO, utl::keV, km, logfile, utl::m, evt::ShowerSimData::MakeRadioSimulation(), evt::ShowerSimData::MakeTimeStamp(), galactic::meter, utl::MeV, utl::nanosecond, ns, PeV, utl::Trace< T >::PushBack(), Rotatez(), evt::SimRadioPulse::SetBinning(), evt::RadioSimulation::SetCoreCoordinates(), evt::ShowerSimData::SetEnergy(), evt::RadioSimulation::SetEventNumber(), evt::RadioSimulation::SetEventTime(), evt::ShowerSimData::SetGroundParticleCoordinateSystemAzimuth(), evt::ShowerSimData::SetGroundParticleCoordinateSystemZenith(), evt::SimRadioPulse::SetLocalCoordinateSystem(), evt::ShowerSimData::SetPrimaryParticle(), evt::SimRadioPulse::SetRelativeCoordinates(), evt::RadioSimulation::SetRunNumber(), evt::ShowerSimData::SetShowerNumber(), evt::ShowerSimData::SetShowerRunId(), evt::SimRadioPulse::SetStartTime(), utl::TeV, V, galactic::volt, WARNING, and ZHAireSAzimuthToAuger().
|
inlinestatic |
Definition at line 50 of file ZHAireSFile.h.
Referenced by Read().
|
overridevirtual |
|
inline |
Returns the azimuth rotated from AIRES's system to Auger standard.
Definition at line 41 of file ZHAireSFile.h.
References utl::deg, fBDeclination, io::Aires::kMagneticFieldDeclination, utl::NormalizeAngleMinusPiPi(), and utl::rad.
Referenced by Read().
|
private |
Definition at line 64 of file ZHAireSFile.h.
Referenced by Read(), and ZHAireSAzimuthToAuger().
|
private |
Definition at line 65 of file ZHAireSFile.h.
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
private |
Definition at line 63 of file ZHAireSFile.h.
Referenced by Read().
|
private |
Definition at line 68 of file ZHAireSFile.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 73 of file ZHAireSFile.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 70 of file ZHAireSFile.h.
|
private |
Definition at line 74 of file ZHAireSFile.h.
|
private |
Definition at line 67 of file ZHAireSFile.h.
|
private |
Definition at line 71 of file ZHAireSFile.h.
|
private |
Definition at line 66 of file ZHAireSFile.h.
|
private |
Definition at line 76 of file ZHAireSFile.h.
Referenced by Open(), Read(), and ZHAireSFile().