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

Interface for FDAS file reading. More...

#include "io/FDasEventFile.h"

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

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

Private Attributes

TEyeEvent * fCurEyeEvent = nullptr
 
std::map< unsigned int,
TEyeEventFile * > 
fEyeEventFile
 

Detailed Description

Interface for FDAS file reading.

Author
Stefano Argiro`
Date
28 May 2003

Definition at line 24 of file FDasEventFile.h.

Constructor & Destructor Documentation

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

FDasEventFile::~FDasEventFile ( )
virtual

Definition at line 31 of file FDasEventFile.cc.

Member Function Documentation

void FDasEventFile::Close ( )
overridevirtual

Implements io::VEventFile.

Definition at line 85 of file FDasEventFile.cc.

References fEyeEventFile.

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 FDasEventFile::FindEvent ( const unsigned int  eventid)
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.

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 FDasEventFile::GetNEvents ( )
overridevirtual

Implements io::VEventFile.

Definition at line 193 of file FDasEventFile.cc.

References fEyeEventFile.

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

goto by position in the file

Implements io::VEventFile.

Definition at line 210 of file FDasEventFile.cc.

References io::eSuccess, and fEyeEventFile.

void FDasEventFile::Open ( const std::string &  filename,
const Mode  mode,
utl::Branch *const  b 
)
overridevirtual
Status FDasEventFile::Read ( evt::Event event)
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().

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

Member Data Documentation

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

Definition at line 72 of file VEventFile.h.

TEyeEvent* io::FDasEventFile::fCurEyeEvent = nullptr
private

Definition at line 50 of file FDasEventFile.h.

Referenced by Read(), and Write().

std::map<unsigned int, TEyeEventFile*> io::FDasEventFile::fEyeEventFile
private

Definition at line 49 of file FDasEventFile.h.

Referenced by Close(), FindEvent(), GetNEvents(), GotoPosition(), Open(), Read(), and Write().

std::string io::VEventFile::fFilename
protectedinherited
Mode io::VEventFile::fMode = eRead
protectedinherited

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

, generated on Tue Sep 26 2023.