#include <SenecaFileParser.h>
Public Member Functions | |
| void | CloseSenecaFile () |
| Status | FileStatus () |
| unsigned int | GetCurrentEvent () |
| SenecaEventHeaderRecord * | GetCurrentEventHeader () |
| unsigned int | GetCurrentPosition () |
| SenecaHeaderRecord * | GetFileHeader () |
| Status | GetNextEvent () |
| unsigned int | GetNumberEvents () |
| SenecaParticleRecord * | GetParticleRecord () |
| unsigned int | GetPosition () |
| Status | GotoEvent (unsigned int theEventNumber) |
| Status | GotoPosition (unsigned int thePosition) |
| Status | OpenSenecaFile (const std::string &FileName, Mode mode=eRead) |
| Status | ProcessFile () |
| Status | ReadParticle () |
| SenecaFileParser (const std::string &FileName, const Mode mode=eRead) | |
| SenecaFileParser () | |
| ~SenecaFileParser () | |
Public Attributes | |
| bool | EventHeaderValid |
| bool | FileHeaderValid |
| bool | ParticleRecordValid |
Private Member Functions | |
| Status | DecodeEventHeader (unsigned char *Record) |
| Status | DecodeFileHeader (unsigned char *Record) |
| Status | DecodeParticleRecord (unsigned char *Record) |
| float | SenecaDecodeFloat (unsigned char *Buffer) |
| int | SenecaDecodeInt (unsigned char *Buffer) |
Private Attributes | |
| unsigned int | CurrentEvent |
| unsigned long | CurrentPosition |
| SenecaEventHeaderRecord | EventHeader |
| unsigned long | EventPositions [1024] |
| SenecaHeaderRecord | FileHeader |
| bool | FileOpen |
| unsigned int | FileSize |
| unsigned int | NextEvent |
| unsigned int | NumberEvents |
| SenecaParticleRecord | ParticleRecord |
| std::ifstream | SenecaFile |
| string | SenecaFileName |
Definition at line 72 of file SenecaFileParser.h.
Definition at line 15 of file SenecaFileParser.cc.
References EventHeaderValid, FileHeaderValid, FileOpen, OpenSenecaFile(), ParticleRecordValid, and SenecaFileName.
| SenecaFileParser::SenecaFileParser | ( | ) |
Definition at line 25 of file SenecaFileParser.cc.
References EventHeaderValid, FileHeaderValid, FileOpen, ParticleRecordValid, and SenecaFileName.
| SenecaFileParser::~SenecaFileParser | ( | ) |
Definition at line 34 of file SenecaFileParser.cc.
| void SenecaFileParser::CloseSenecaFile | ( | ) |
Definition at line 105 of file SenecaFileParser.cc.
References EventHeaderValid, FileHeaderValid, FileOpen, ParticleRecordValid, SenecaFile, and SenecaFileName.
|
private |
Definition at line 314 of file SenecaFileParser.cc.
References io::eFail, and io::eSuccess.
|
private |
Definition at line 335 of file SenecaFileParser.cc.
References io::eFail, io::eSenecaGCalor, io::eSenecaGFluka, io::eSenecaGheisha, io::eSenecaNex2, io::eSenecaNex397, io::eSenecaQGS01, io::eSenecaQGS98, io::eSenecaSib21, io::eSenecaUnknown, io::eSenecaURQMD, and io::eSuccess.
Referenced by OpenSenecaFile().
|
private |
Definition at line 386 of file SenecaFileParser.cc.
References io::eFail, and io::eSuccess.
| io::Status io::SenecaFileParser::FileStatus | ( | ) |
Definition at line 300 of file SenecaFileParser.cc.
References io::eEOF, io::eFail, and io::eSuccess.
Referenced by io::SenecaShowerFileParticleIterator::SenecaShowerFileParticleIterator(), and io::SenecaShowerFileParticleIterator::SetSenecaFileParser().
| unsigned int io::SenecaFileParser::GetCurrentEvent | ( | ) |
Definition at line 481 of file SenecaFileParser.cc.
| io::SenecaEventHeaderRecord * io::SenecaFileParser::GetCurrentEventHeader | ( | ) |
Definition at line 174 of file SenecaFileParser.cc.
| unsigned int SenecaFileParser::GetCurrentPosition | ( | ) |
Definition at line 115 of file SenecaFileParser.cc.
References FileOpen, and SenecaFile.
| SenecaHeaderRecord * SenecaFileParser::GetFileHeader | ( | ) |
Definition at line 162 of file SenecaFileParser.cc.
References FileHeader, FileHeaderValid, and FileOpen.
| io::Status io::SenecaFileParser::GetNextEvent | ( | ) |
Definition at line 263 of file SenecaFileParser.cc.
| unsigned int io::SenecaFileParser::GetNumberEvents | ( | ) |
Definition at line 471 of file SenecaFileParser.cc.
| io::SenecaParticleRecord * io::SenecaFileParser::GetParticleRecord | ( | ) |
Definition at line 186 of file SenecaFileParser.cc.
Referenced by io::SenecaShowerFileParticleIterator::GetOneParticle().
| unsigned int io::SenecaFileParser::GetPosition | ( | ) |
Definition at line 215 of file SenecaFileParser.cc.
Referenced by io::SenecaShowerFileParticleIterator::GetOneParticle(), io::SenecaShowerFileParticleIterator::Rewind(), io::SenecaShowerFileParticleIterator::SenecaShowerFileParticleIterator(), and io::SenecaShowerFileParticleIterator::SetSenecaFileParser().
| io::Status io::SenecaFileParser::GotoEvent | ( | unsigned int | theEventNumber | ) |
Definition at line 220 of file SenecaFileParser.cc.
References io::eEOF, io::eFail, and io::eSuccess.
| io::Status io::SenecaFileParser::GotoPosition | ( | unsigned int | thePosition | ) |
Definition at line 198 of file SenecaFileParser.cc.
References io::eEOF, io::eFail, and io::eSuccess.
Referenced by io::SenecaShowerFileParticleIterator::Rewind().
Definition at line 41 of file SenecaFileParser.cc.
References CurrentEvent, CurrentPosition, DecodeFileHeader(), io::eFail, io::eRead, EventHeaderValid, EventPositions, FileHeaderValid, FileOpen, FileSize, NextEvent, ParticleRecordValid, ProcessFile(), SenecaFile, and SenecaFileName.
Referenced by SenecaFileParser().
| Status SenecaFileParser::ProcessFile | ( | ) |
Definition at line 125 of file SenecaFileParser.cc.
References sdet::Trigger::Buffer(), CurrentPosition, io::eFail, io::eSuccess, EventPositions, FileOpen, FileSize, NumberEvents, SenecaDecodeInt(), and SenecaFile.
Referenced by OpenSenecaFile().
| io::Status io::SenecaFileParser::ReadParticle | ( | ) |
Definition at line 268 of file SenecaFileParser.cc.
References io::eFail, and io::eSuccess.
Referenced by io::SenecaShowerFileParticleIterator::GetOneParticle().
|
private |
Definition at line 413 of file SenecaFileParser.cc.
|
private |
Definition at line 447 of file SenecaFileParser.cc.
Referenced by ProcessFile().
|
private |
Definition at line 120 of file SenecaFileParser.h.
Referenced by OpenSenecaFile().
|
private |
Definition at line 123 of file SenecaFileParser.h.
Referenced by OpenSenecaFile(), and ProcessFile().
|
private |
Definition at line 113 of file SenecaFileParser.h.
| bool io::SenecaFileParser::EventHeaderValid |
Definition at line 96 of file SenecaFileParser.h.
Referenced by CloseSenecaFile(), OpenSenecaFile(), and SenecaFileParser().
|
private |
Definition at line 111 of file SenecaFileParser.h.
Referenced by OpenSenecaFile(), and ProcessFile().
|
private |
Definition at line 114 of file SenecaFileParser.h.
Referenced by GetFileHeader().
| bool io::SenecaFileParser::FileHeaderValid |
Definition at line 95 of file SenecaFileParser.h.
Referenced by CloseSenecaFile(), GetFileHeader(), OpenSenecaFile(), and SenecaFileParser().
|
private |
Definition at line 117 of file SenecaFileParser.h.
Referenced by CloseSenecaFile(), GetCurrentPosition(), GetFileHeader(), OpenSenecaFile(), ProcessFile(), and SenecaFileParser().
|
private |
Definition at line 122 of file SenecaFileParser.h.
Referenced by OpenSenecaFile(), and ProcessFile().
|
private |
Definition at line 120 of file SenecaFileParser.h.
Referenced by OpenSenecaFile().
|
private |
Definition at line 119 of file SenecaFileParser.h.
Referenced by ProcessFile().
|
private |
Definition at line 115 of file SenecaFileParser.h.
| bool io::SenecaFileParser::ParticleRecordValid |
Definition at line 97 of file SenecaFileParser.h.
Referenced by CloseSenecaFile(), OpenSenecaFile(), and SenecaFileParser().
|
private |
Definition at line 107 of file SenecaFileParser.h.
Referenced by CloseSenecaFile(), GetCurrentPosition(), OpenSenecaFile(), and ProcessFile().
|
private |
Definition at line 108 of file SenecaFileParser.h.
Referenced by CloseSenecaFile(), OpenSenecaFile(), and SenecaFileParser().