Read data from the output of Seneca. More...
#include "io/SenecaShowerFile.h"
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::Branch * | fBranch = nullptr |
std::string | fFilename |
Mode | fMode = eRead |
Private Member Functions | |
Status | CreateSenecaFileParticleIterator () |
int | SenecaParticleIDToAuger (const int senecaID) |
Private Attributes | |
SenecaFileParser | fFileParser |
SenecaShowerFileParticleIterator | fSenecaParticleIterator |
Read data from the output of Seneca.
Definition at line 35 of file SenecaShowerFile.h.
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.
|
inlinevirtual |
Definition at line 39 of file SenecaShowerFile.h.
|
overridevirtual |
Implements io::VEventFile.
Definition at line 56 of file SenecaShowerFile.cc.
|
private |
Definition at line 139 of file SenecaShowerFile.cc.
|
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 118 of file SenecaShowerFile.cc.
|
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 132 of file SenecaShowerFile.cc.
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 125 of file SenecaShowerFile.cc.
|
overridevirtual |
Implements io::VEventFile.
Definition at line 45 of file SenecaShowerFile.cc.
References io::eSuccess.
|
overridevirtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 63 of file SenecaShowerFile.cc.
References degree, io::SenecaEventHeaderRecord::E0, io::eFail, ERROR, io::eSuccess, evt::ShowerSimData::GetGroundParticles(), utl::GeV, evt::ShowerSimData::HasGroundParticles(), evt::Event::HasSimShower(), io::SenecaEventHeaderRecord::ID0, INFO, utl::kPi, evt::ShowerSimData::MakeGroundParticles(), io::SenecaEventHeaderRecord::Phi, evt::ShowerSimData::SetEnergy(), utl::ShowerParticleList::SetFileInterface(), evt::ShowerSimData::SetGroundParticleCoordinateSystemAzimuth(), evt::ShowerSimData::SetGroundParticleCoordinateSystemZenith(), evt::ShowerSimData::SetPrimaryParticle(), evt::ShowerSimData::SetShowerNumber(), evt::ShowerSimData::SetShowerRunId(), and io::SenecaEventHeaderRecord::Theta.
|
private |
Definition at line 146 of file SenecaShowerFile.cc.
References utl::Particle::eAntiMuon, utl::Particle::eElectron, utl::Particle::eEta, utl::Particle::eKaonMinus, utl::Particle::eKaonPlus, utl::Particle::eLambda, utl::Particle::eMuon, utl::Particle::eNeutron, utl::Particle::ePhoton, utl::Particle::ePiMinus, utl::Particle::ePiPlus, utl::Particle::ePiZero, utl::Particle::ePositron, utl::Particle::eProton, and utl::Particle::eUndefined.
|
overridevirtual |
Implements io::VEventFile.
Definition at line 110 of file SenecaShowerFile.cc.
|
protectedinherited |
Definition at line 72 of file VEventFile.h.
|
protectedinherited |
Definition at line 74 of file VEventFile.h.
Referenced by io::VEventFile::GetFilename(), io::FDasEventFile::Open(), io::AiresShowerFile::Open(), io::VROOTFile::OpenROOTFile(), io::AiresShowerFile::Read(), io::VROOTFile::VROOTFile(), and io::FDasEventFile::Write().
|
private |
Definition at line 54 of file SenecaShowerFile.h.
Definition at line 75 of file VEventFile.h.
Referenced by io::VROOTFile::Close(), io::OfflineROOTFile::GetEventBranch(), io::FDasEventFile::Open(), io::VROOTFile::OpenROOTFile(), io::IoAugerEventFile::Write(), and io::FDasEventFile::Write().
|
private |
Definition at line 53 of file SenecaShowerFile.h.