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

Read data from the output of Seneca. More...

#include "io/SenecaShowerFile.h"

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

Public Member Functions

void Close () override
 
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
 
Status Read (evt::Event &event) override
 read current event advance cursor by 1 More...
 
 SenecaShowerFile ()
 
 SenecaShowerFile (const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr)
 
void Write (const evt::Event &event) override
 
virtual ~SenecaShowerFile ()
 

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 Member Functions

Status CreateSenecaFileParticleIterator ()
 
int SenecaParticleIDToAuger (const int senecaID)
 

Private Attributes

SenecaFileParser fFileParser
 
SenecaShowerFileParticleIterator fSenecaParticleIterator
 

Detailed Description

Read data from the output of Seneca.

Author
Jeff Allen
Date
8 Sep 2006

Definition at line 35 of file SenecaShowerFile.h.

Constructor & Destructor Documentation

io::SenecaShowerFile::SenecaShowerFile ( )

Definition at line 31 of file SenecaShowerFile.cc.

io::SenecaShowerFile::SenecaShowerFile ( const std::string &  fileName,
const Mode  mode = eRead,
utl::Branch *const  b = nullptr 
)

Definition at line 37 of file SenecaShowerFile.cc.

virtual io::SenecaShowerFile::~SenecaShowerFile ( )
inlinevirtual

Definition at line 39 of file SenecaShowerFile.h.

Member Function Documentation

void io::SenecaShowerFile::Close ( )
overridevirtual

Implements io::VEventFile.

Definition at line 56 of file SenecaShowerFile.cc.

Status io::SenecaShowerFile::CreateSenecaFileParticleIterator ( )
private

Definition at line 139 of file SenecaShowerFile.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 io::SenecaShowerFile::FindEvent ( const unsigned int  eventId)
overridevirtual

seek Event id set cursor there

Implements io::VEventFile.

Definition at line 118 of file SenecaShowerFile.cc.

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

Implements io::VEventFile.

Definition at line 132 of file SenecaShowerFile.cc.

Status io::SenecaShowerFile::GotoPosition ( const unsigned int  position)
overridevirtual

goto by position in the file

Implements io::VEventFile.

Definition at line 125 of file SenecaShowerFile.cc.

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

Implements io::VEventFile.

Definition at line 45 of file SenecaShowerFile.cc.

References io::eSuccess.

Status io::SenecaShowerFile::Read ( evt::Event event)
overridevirtual
int io::SenecaShowerFile::SenecaParticleIDToAuger ( const int  senecaID)
private
void io::SenecaShowerFile::Write ( const evt::Event event)
overridevirtual

Implements io::VEventFile.

Definition at line 110 of file SenecaShowerFile.cc.

Member Data Documentation

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

Definition at line 72 of file VEventFile.h.

std::string io::VEventFile::fFilename
protectedinherited
SenecaFileParser io::SenecaShowerFile::fFileParser
private

Definition at line 54 of file SenecaShowerFile.h.

Mode io::VEventFile::fMode = eRead
protectedinherited
SenecaShowerFileParticleIterator io::SenecaShowerFile::fSenecaParticleIterator
private

Definition at line 53 of file SenecaShowerFile.h.


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

, generated on Tue Sep 26 2023.