Interface for FDAS file reading. More...
#include "io/FDasEventFile.h"
Public Member Functions | |
void | Close () override |
FDasEventFile () | |
FDasEventFile (const std::string &filename, const Mode mode, utl::Branch *const b) | |
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, utl::Branch *const b) override |
Status | Read (evt::Event &event) override |
clear /par event read current event advance cursor by 1 More... | |
void | Write (const evt::Event &event) override |
virtual | ~FDasEventFile () |
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 | |
TEyeEvent * | fCurEyeEvent = nullptr |
std::map< unsigned int, TEyeEventFile * > | fEyeEventFile |
|
inline |
Definition at line 27 of file FDasEventFile.h.
FDasEventFile::FDasEventFile | ( | const std::string & | filename, |
const Mode | mode, | ||
utl::Branch *const | b | ||
) |
Definition at line 39 of file FDasEventFile.cc.
References Open().
|
virtual |
Definition at line 31 of file FDasEventFile.cc.
|
overridevirtual |
Implements io::VEventFile.
Definition at line 85 of file FDasEventFile.cc.
References fEyeEventFile.
|
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 219 of file FDasEventFile.cc.
References io::eFail, io::eSuccess, fEyeEventFile, and file.
|
inlineinherited |
Definition at line 54 of file VEventFile.h.
References io::VEventFile::fFilename.
Referenced by io::EventFile::GetFilename().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 193 of file FDasEventFile.cc.
References fEyeEventFile.
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 210 of file FDasEventFile.cc.
References io::eSuccess, and fEyeEventFile.
|
overridevirtual |
Implements io::VEventFile.
Definition at line 48 of file FDasEventFile.cc.
References io::eRead, fEyeEventFile, io::VEventFile::fFilename, filename, io::VEventFile::fMode, and io::VROOTFile::GetRootMode().
Referenced by FDasEventFile().
|
overridevirtual |
clear /par event read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 96 of file FDasEventFile.cc.
References io::eEOF, io::eSuccess, fCurEyeEvent, fEyeEventFile, evt::Event::HasFEvent(), evt::Event::HasRawEvent(), evt::Event::MakeFEvent(), evt::Event::MakeRawEvent(), and raw.
Referenced by main().
|
overridevirtual |
Will write all eyes
Implements io::VEventFile.
Definition at line 149 of file FDasEventFile.cc.
References io::eRead, ERROR, fCurEyeEvent, fEyeEventFile, io::VEventFile::fFilename, io::VEventFile::fMode, evt::Event::GetRawEvent(), io::VROOTFile::GetRootMode(), evt::Event::HasRawEvent(), INFO, and raw.
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
private |
Definition at line 50 of file FDasEventFile.h.
|
private |
Definition at line 49 of file FDasEventFile.h.
Referenced by Close(), FindEvent(), GetNEvents(), GotoPosition(), Open(), Read(), and Write().
|
protectedinherited |
Definition at line 74 of file VEventFile.h.
Referenced by io::VEventFile::GetFilename(), Open(), io::AiresShowerFile::Open(), io::VROOTFile::OpenROOTFile(), io::AiresShowerFile::Read(), io::VROOTFile::VROOTFile(), and Write().
Definition at line 75 of file VEventFile.h.
Referenced by io::VROOTFile::Close(), io::OfflineROOTFile::GetEventBranch(), Open(), io::VROOTFile::OpenROOTFile(), io::IoAugerEventFile::Write(), and Write().