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

#include <RadioFileAERAroot.h>

Inheritance diagram for io::RadioFileAERAroot:
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
 
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::BranchfBranch = 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
 

Detailed Description

Implementation file to open a Radio data file in root AERA format

Author
Julian Rautenberg
Date
Mar 2013

Definition at line 21 of file RadioFileAERAroot.h.

Constructor & Destructor Documentation

io::RadioFileAERAroot::RadioFileAERAroot ( )
default
io::RadioFileAERAroot::RadioFileAERAroot ( const std::string &  filename,
const Mode  mode = eRead,
utl::Branch *const  b = nullptr 
)
inline

Definition at line 26 of file RadioFileAERAroot.h.

References RdGeoCeLDFFitter::b, and Open().

virtual io::RadioFileAERAroot::~RadioFileAERAroot ( )
virtualdefault

Member Function Documentation

void RadioFileAERAroot::Close ( )
overridevirtual

Reimplemented from io::VROOTFile.

Definition at line 96 of file RadioFileAERAroot.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 RadioFileAERAroot::FileStatus ( )

Definition at line 647 of file RadioFileAERAroot.cc.

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

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

seek Event id set cursor there

Implements io::VEventFile.

Definition at line 657 of file RadioFileAERAroot.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 RadioFileAERAroot::GetNEvents ( )
overridevirtual

Implements io::VEventFile.

Definition at line 673 of file RadioFileAERAroot.cc.

References WARNING.

string VROOTFile::GetRootMode ( const Mode  mode)
staticinherited
int VROOTFile::GetTree ( const std::string &  name)
protectedinherited
Status RadioFileAERAroot::GotoPosition ( const unsigned int  position)
overridevirtual

goto by position in the file

Implements io::VEventFile.

Definition at line 665 of file RadioFileAERAroot.cc.

References io::eEOF, and WARNING.

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

Reimplemented from io::VROOTFile.

Definition at line 56 of file RadioFileAERAroot.cc.

References io::eNew, io::eRead, and filename.

Referenced by RadioFileAERAroot().

int VROOTFile::OpenROOTFile ( )
protectedinherited
void RadioFileAERAroot::Print ( )

Definition at line 119 of file RadioFileAERAroot.cc.

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

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

Member Data Documentation

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

Definition at line 72 of file VEventFile.h.

int io::RadioFileAERAroot::fCountEvent = - 1
private

Definition at line 46 of file RadioFileAERAroot.h.

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

Definition at line 45 of file RadioFileAERAroot.h.

TFile* io::VROOTFile::fFile = nullptr
protectedinherited
std::string io::VEventFile::fFilename
protectedinherited
bool io::RadioFileAERAroot::fHasFileOpen = false
private

Definition at line 50 of file RadioFileAERAroot.h.

TBranch* io::RadioFileAERAroot::fIObranch = nullptr
private

Definition at line 49 of file RadioFileAERAroot.h.

TTree* io::RadioFileAERAroot::fIOLibTree = nullptr
private

Definition at line 48 of file RadioFileAERAroot.h.

bool io::RadioFileAERAroot::fIsFirstevent = true
private

Definition at line 51 of file RadioFileAERAroot.h.

Mode io::VEventFile::fMode = eRead
protectedinherited
RadioFileIO* io::RadioFileAERAroot::fRadioFileIO = nullptr
private

Definition at line 47 of file RadioFileAERAroot.h.

std::string io::RadioFileAERAroot::fSourceFileName
private

Definition at line 52 of file RadioFileAERAroot.h.

TTree* io::VROOTFile::fTree = nullptr
protectedinherited

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

, generated on Tue Sep 26 2023.