#include <RadioFileAERA.h>
Public Member Functions | |
void | Close () override |
Status | FileStatus () |
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 |
RadioFileAERA () | |
RadioFileAERA (const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr) | |
Status | Read (evt::Event &event) override |
read current event advance cursor by 1 More... | |
void | Write (const evt::Event &event) override |
virtual | ~RadioFileAERA () |
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 Attributes | |
int | fCurrentEvent = -1 |
bool | fHasFileOpen = false |
bool | fIsFirstevent = true |
Definition at line 17 of file RadioFileAERA.h.
|
inline |
Definition at line 20 of file RadioFileAERA.h.
RadioFileAERA::RadioFileAERA | ( | const std::string & | filename, |
const Mode | mode = eRead , |
||
utl::Branch *const | b = nullptr |
||
) |
Definition at line 49 of file RadioFileAERA.cc.
|
inlinevirtual |
Definition at line 22 of file RadioFileAERA.h.
|
overridevirtual |
Implements io::VEventFile.
Definition at line 75 of file RadioFileAERA.cc.
|
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.
Status RadioFileAERA::FileStatus | ( | ) |
Definition at line 394 of file RadioFileAERA.cc.
References io::eFail, and io::eSuccess.
|
overridevirtual |
seek Event id set cursor there
Implements io::VEventFile.
Definition at line 401 of file RadioFileAERA.cc.
|
inlineinherited |
Definition at line 54 of file VEventFile.h.
References io::VEventFile::fFilename.
Referenced by io::EventFile::GetFilename().
|
overridevirtual |
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 409 of file RadioFileAERA.cc.
|
overridevirtual |
|
overridevirtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 93 of file RadioFileAERA.cc.
References utl::LeapSeconds::ConvertUnixToGPS(), io::eEOF, io::eFail, utl::Spline::ePeriodic, ERROR, io::eSkipEvent, io::eSuccess, revt::Station::GetChannel(), revt::Channel::GetChannelADCTimeSeries(), revt::Station::GetGPSData(), revt::REvent::GetHeader(), rdet::Station::GetNChannels(), revt::REvent::GetStationByName(), revt::Station::GetStationHeader(), revt::REvent::GetTrigger(), revt::Station::GetTriggerData(), revt::Station::HasGPSData(), evt::Event::HasREvent(), revt::REvent::HasStation(), revt::Station::HasStationHeader(), revt::REvent::HasTrigger(), revt::Station::HasTriggerData(), INFO, revt::Station::MakeGPSData(), revt::REvent::MakeStation(), revt::Station::MakeStationHeader(), revt::REvent::MakeTrigger(), revt::Station::MakeTriggerData(), utl::megahertz, utl::Trace< T >::PushBack(), raw, utl::s, revt::Channel::SetActive(), utl::Trace< T >::SetBinning(), revt::EventTrigger::SetBitPattern(), revt::EventTrigger::SetCalibrationTrigger(), revt::StationGPSData::SetCorrectedNanosecond(), revt::Header::SetEventVersion(), revt::EventTrigger::SetExternalTrigger(), revt::Header::SetFileId(), utl::TimeStamp::SetGPSTime(), revt::StationHeader::SetHardwareType(), revt::StationHeader::SetHardwareVersion(), revt::Header::SetId(), revt::Channel::SetNoiseThreshold(), revt::Channel::SetNotActive(), revt::Header::SetNumberOfStations(), revt::Channel::SetNyquistZone(), revt::StationTriggerData::SetOffset(), revt::EventTrigger::SetPeriodicTrigger(), revt::Station::SetRawTraceStartTime(), revt::Header::SetRunNumber(), revt::StationGPSData::SetSecond(), revt::EventTrigger::SetSelfTrigger(), revt::Channel::SetSignalThreshold(), revt::Header::SetTime(), revt::StationTriggerData::SetTriggerSource(), WARNING, and utl::AugerException::what().
|
overridevirtual |
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
private |
Definition at line 35 of file RadioFileAERA.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 36 of file RadioFileAERA.h.
|
private |
Definition at line 37 of file RadioFileAERA.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().