List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
io::RadioFileAERA Class Reference

#include <RadioFileAERA.h>

Inheritance diagram for io::RadioFileAERA:
Inheritance graph
[legend]

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::BranchfBranch = nullptr
 
std::string fFilename
 
Mode fMode = eRead
 

Private Attributes

int fCurrentEvent = -1
 
bool fHasFileOpen = false
 
bool fIsFirstevent = true
 

Detailed Description

Definition at line 17 of file RadioFileAERA.h.

Constructor & Destructor Documentation

io::RadioFileAERA::RadioFileAERA ( )
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.

virtual io::RadioFileAERA::~RadioFileAERA ( )
inlinevirtual

Definition at line 22 of file RadioFileAERA.h.

Member Function Documentation

void RadioFileAERA::Close ( )
overridevirtual

Implements io::VEventFile.

Definition at line 75 of file RadioFileAERA.cc.

int VEventFile::DefaultOpen ( const std::string &  filename,
const Mode  mode = eRead 
)
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().

int VEventFile::DefaultWrite ( evt::Event event)
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.

References io::eRead, and FATAL.

Status RadioFileAERA::FileStatus ( )

Definition at line 394 of file RadioFileAERA.cc.

References io::eFail, and io::eSuccess.

Status RadioFileAERA::FindEvent ( const unsigned int  eventId)
overridevirtual

seek Event id set cursor there

Implements io::VEventFile.

Definition at line 401 of file RadioFileAERA.cc.

References io::eEOF, and WARNING.

const std::string& io::VEventFile::GetFilename ( ) const
inlineinherited

Definition at line 54 of file VEventFile.h.

References io::VEventFile::fFilename.

Referenced by io::EventFile::GetFilename().

int RadioFileAERA::GetNEvents ( )
overridevirtual

Implements io::VEventFile.

Definition at line 417 of file RadioFileAERA.cc.

References WARNING.

Status RadioFileAERA::GotoPosition ( const unsigned int  position)
overridevirtual

goto by position in the file

Implements io::VEventFile.

Definition at line 409 of file RadioFileAERA.cc.

References io::eEOF, and WARNING.

void RadioFileAERA::Open ( const std::string &  filename,
const Mode  mode = eRead,
utl::Branch *const  b = nullptr 
)
overridevirtual

Implements io::VEventFile.

Definition at line 58 of file RadioFileAERA.cc.

References filename.

Status RadioFileAERA::Read ( evt::Event event)
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().

void RadioFileAERA::Write ( const evt::Event event)
overridevirtual

Implements io::VEventFile.

Definition at line 86 of file RadioFileAERA.cc.

References WARNING.

Member Data Documentation

utl::Branch* io::VEventFile::fBranch = nullptr
protectedinherited

Definition at line 72 of file VEventFile.h.

int io::RadioFileAERA::fCurrentEvent = -1
private

Definition at line 35 of file RadioFileAERA.h.

std::string io::VEventFile::fFilename
protectedinherited
bool io::RadioFileAERA::fHasFileOpen = false
private

Definition at line 36 of file RadioFileAERA.h.

bool io::RadioFileAERA::fIsFirstevent = true
private

Definition at line 37 of file RadioFileAERA.h.

Mode io::VEventFile::fMode = eRead
protectedinherited

The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.