#include <RadioFileAERAroot.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 |
void | Print () |
RadioFileAERAroot ()=default | |
RadioFileAERAroot (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 | ~RadioFileAERAroot ()=default |
Static Public Member Functions | |
static std::string | GetRootMode (const Mode mode) |
Protected Member Functions | |
int | DefaultOpen (const std::string &filename, const Mode mode=eRead) |
int | DefaultWrite (evt::Event &event) |
int | GetTree (const std::string &name) |
int | OpenROOTFile () |
Protected Attributes | |
utl::Branch * | fBranch = nullptr |
TFile * | fFile = nullptr |
std::string | fFilename |
Mode | fMode = eRead |
TTree * | fTree = nullptr |
Private Attributes | |
int | fCountEvent = - 1 |
int | fCurrentEvent = -1 |
bool | fHasFileOpen = false |
TBranch * | fIObranch = nullptr |
TTree * | fIOLibTree = nullptr |
bool | fIsFirstevent = true |
RadioFileIO * | fRadioFileIO = nullptr |
std::string | fSourceFileName |
Implementation file to open a Radio data file in root AERA format
Definition at line 21 of file RadioFileAERAroot.h.
|
default |
|
inline |
Definition at line 26 of file RadioFileAERAroot.h.
References RdGeoCeLDFFitter::b, and Open().
|
virtualdefault |
|
overridevirtual |
Reimplemented from io::VROOTFile.
Definition at line 96 of file RadioFileAERAroot.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 RadioFileAERAroot::FileStatus | ( | ) |
Definition at line 647 of file RadioFileAERAroot.cc.
References io::eFail, and io::eSuccess.
|
overridevirtual |
seek Event id set cursor there
Implements io::VEventFile.
Definition at line 657 of file RadioFileAERAroot.cc.
|
inlineinherited |
Definition at line 54 of file VEventFile.h.
References io::VEventFile::fFilename.
Referenced by io::EventFile::GetFilename().
|
overridevirtual |
|
staticinherited |
Definition at line 123 of file VROOTFile.cc.
References io::eAppend, io::eNew, and io::eWrite.
Referenced by io::FDasEventFile::Open(), io::VROOTFile::OpenROOTFile(), and io::FDasEventFile::Write().
|
protectedinherited |
Definition at line 105 of file VROOTFile.cc.
References FATAL, io::VROOTFile::fFile, and io::VROOTFile::fTree.
Referenced by io::OfflineROOTFile::GetConfig(), and io::OfflineROOTFile::GetEventBranch().
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 665 of file RadioFileAERAroot.cc.
|
overridevirtual |
Reimplemented from io::VROOTFile.
Definition at line 56 of file RadioFileAERAroot.cc.
References io::eNew, io::eRead, and filename.
Referenced by RadioFileAERAroot().
|
protectedinherited |
Definition at line 69 of file VROOTFile.cc.
References io::VROOTFile::Close(), io::VROOTFile::fFile, io::VEventFile::fFilename, io::VEventFile::fMode, and io::VROOTFile::GetRootMode().
Referenced by io::VROOTFile::Open(), and io::VROOTFile::VROOTFile().
void RadioFileAERAroot::Print | ( | ) |
Definition at line 119 of file RadioFileAERAroot.cc.
|
overridevirtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 161 of file RadioFileAERAroot.cc.
References io::eEOF, UnivFitterKG::eFD, utl::Spline::ePeriodic, ERROR, UnivFitterKG::eSD, io::eSkipEvent, io::eSuccess, revt::Station::GetChannel(), rdet::Station::GetChannel(), revt::Channel::GetChannelADCTimeSeries(), rdet::Channel::GetChannelType(), revt::Station::GetGPSData(), revt::REvent::GetHeader(), revt::Channel::GetId(), rdet::Station::GetNChannels(), utl::Trace< T >::GetSize(), 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(), revt::Station::MakeGPSData(), revt::REvent::MakeStation(), revt::Station::MakeStationHeader(), revt::REvent::MakeTrigger(), revt::Station::MakeTriggerData(), utl::megahertz, utl::Trace< T >::PushBack(), utl::s, revt::Channel::SetActive(), revt::EventTrigger::SetAERAletTrigger(), revt::REvent::SetAERARootIoEventId(), revt::REvent::SetAERARootIoSourceFileName(), revt::EventTrigger::SetAIRPLANETrigger(), utl::Trace< T >::SetBinning(), revt::EventTrigger::SetBitPattern(), revt::EventTrigger::SetCalibrationTrigger(), revt::StationGPSData::SetCorrectedNanosecond(), revt::Header::SetEventVersion(), revt::EventTrigger::SetExternalTrigger(), revt::EventTrigger::SetFDTrigger(), revt::Header::SetFileId(), utl::TimeStamp::SetGPSTime(), revt::EventTrigger::SetGUITrigger(), revt::StationHeader::SetHardwareType(), revt::StationHeader::SetHardwareVersion(), revt::EventTrigger::SetHEATTrigger(), revt::Station::SetHWTemperature(), revt::Station::SetHWTemperatureExt(), revt::Station::SetHWTemperatureInt(), revt::Header::SetId(), revt::Channel::SetNoiseThreshold(), revt::Channel::SetNotActive(), revt::Header::SetNumberOfStations(), revt::Channel::SetNyquistZone(), revt::StationTriggerData::SetOffset(), revt::EventTrigger::SetPassThroughTrigger(), revt::EventTrigger::SetPeriodicTrigger(), revt::Station::SetRawTraceStartTime(), revt::Header::SetRunNumber(), revt::Channel::SetScintHighVoltage(), revt::EventTrigger::SetScintillatorTrigger(), revt::EventTrigger::SetSDTrigger(), revt::StationGPSData::SetSecond(), revt::EventTrigger::SetSelfTrigger(), revt::Channel::SetSignalThreshold(), revt::Header::SetTime(), revt::StationTriggerData::SetTriggerSource(), WARNING, and utl::AugerException::what().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 126 of file RadioFileAERAroot.cc.
References revt::REvent::GetAERARootIoEventId(), and revt::REvent::GetAERARootIoSourceFileName().
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
private |
Definition at line 46 of file RadioFileAERAroot.h.
|
private |
Definition at line 45 of file RadioFileAERAroot.h.
|
protectedinherited |
Definition at line 45 of file VROOTFile.h.
Referenced by io::VROOTFile::Close(), io::OfflineROOTFile::GetEventBranch(), io::VROOTFile::GetTree(), io::VROOTFile::OpenROOTFile(), and io::VROOTFile::~VROOTFile().
|
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 50 of file RadioFileAERAroot.h.
|
private |
Definition at line 49 of file RadioFileAERAroot.h.
|
private |
Definition at line 48 of file RadioFileAERAroot.h.
|
private |
Definition at line 51 of file RadioFileAERAroot.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 47 of file RadioFileAERAroot.h.
|
private |
Definition at line 52 of file RadioFileAERAroot.h.
|
protectedinherited |
Definition at line 46 of file VROOTFile.h.
Referenced by io::VROOTFile::Close(), io::OfflineROOTFile::GetConfig(), io::OfflineROOTFile::GetEventBranch(), io::OfflineROOTFile::GetNEvents(), io::VROOTFile::GetTree(), io::OfflineROOTFile::Read(), and io::OfflineROOTFile::Write().