Artificial shower generator: uniform particle density, direction. More...
#include "io/ArtificialShowerFile.h"

Public Member Functions | |
| ArtificialShowerFile () | |
| ArtificialShowerFile (const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr) | |
| 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... | |
| void | Write (const evt::Event &event) override |
| virtual | ~ArtificialShowerFile () |
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 | CreateArtificialShowerFileParticleIterator () |
| void | ReadXMLParameters () |
Private Attributes | |
| ArtificialShowerFileParticleIterator | fArtificialShowerFileParticleIterator |
| double | fAzimuth = 0 |
| bool | fIsOpen = false |
| double fMuonDensity = 0; // unused. LN. More... | |
| double | fPrimaryEnergy = 0 |
| int | fReadEvents = 0 |
| double | fZenith = 0 |
Artificial shower generator: uniform particle density, direction.
Definition at line 32 of file ArtificialShowerFile.h.
|
inline |
Definition at line 34 of file ArtificialShowerFile.h.
| io::ArtificialShowerFile::ArtificialShowerFile | ( | const std::string & | fileName, |
| const Mode | mode = eRead, |
||
| utl::Branch *const | b = nullptr |
||
| ) |
Definition at line 40 of file ArtificialShowerFile.cc.
|
inlinevirtual |
Definition at line 36 of file ArtificialShowerFile.h.
|
inlineoverridevirtual |
Implements io::VEventFile.
Definition at line 39 of file ArtificialShowerFile.h.
References fIsOpen.
|
private |
Definition at line 151 of file ArtificialShowerFile.cc.
References io::eSuccess.
|
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 125 of file ArtificialShowerFile.cc.
References io::eFail, and io::eSuccess.
|
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 139 of file ArtificialShowerFile.cc.
|
overridevirtual |
goto by position in the file
Implements io::VEventFile.
Definition at line 132 of file ArtificialShowerFile.cc.
References io::eSuccess.
|
overridevirtual |
Implements io::VEventFile.
Definition at line 47 of file ArtificialShowerFile.cc.
References io::eWrite.
|
overridevirtual |
read current event advance cursor by 1
Implements io::VEventFile.
Definition at line 81 of file ArtificialShowerFile.cc.
References io::eEOF, io::eFail, utl::Particle::eProton, ERROR, io::eSuccess, evt::ShowerSimData::GetGroundParticles(), evt::ShowerSimData::HasGroundParticles(), evt::Event::HasSimShower(), evt::ShowerSimData::MakeGroundParticles(), evt::ShowerSimData::SetEnergy(), utl::ShowerParticleList::SetFileInterface(), evt::ShowerSimData::SetGroundParticleCoordinateSystemAzimuth(), evt::ShowerSimData::SetGroundParticleCoordinateSystemZenith(), evt::ShowerSimData::SetPrimaryParticle(), evt::ShowerSimData::SetShowerNumber(), and evt::ShowerSimData::SetShowerRunId().
|
private |
Definition at line 63 of file ArtificialShowerFile.cc.
References utl::Branch::GetChild(), utl::Branch::GetData(), and utl::Branch::GetTopBranch().
|
overridevirtual |
Implements io::VEventFile.
Definition at line 117 of file ArtificialShowerFile.cc.
|
private |
Definition at line 50 of file ArtificialShowerFile.h.
|
private |
Definition at line 53 of file ArtificialShowerFile.h.
|
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 |
double fMuonDensity = 0; // unused. LN.
Definition at line 66 of file ArtificialShowerFile.h.
Referenced by Close().
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 51 of file ArtificialShowerFile.h.
|
private |
Definition at line 67 of file ArtificialShowerFile.h.
|
private |
Definition at line 52 of file ArtificialShowerFile.h.