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

Artificial shower generator: uniform particle density, direction. More...

#include "io/ArtificialShowerFile.h"

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

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::BranchfBranch = 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
 

Detailed Description

Artificial shower generator: uniform particle density, direction.

Author
Jeff Allen
Date
20 Mar 2012

Definition at line 32 of file ArtificialShowerFile.h.

Constructor & Destructor Documentation

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

virtual io::ArtificialShowerFile::~ArtificialShowerFile ( )
inlinevirtual

Definition at line 36 of file ArtificialShowerFile.h.

Member Function Documentation

void io::ArtificialShowerFile::Close ( )
inlineoverridevirtual

Implements io::VEventFile.

Definition at line 39 of file ArtificialShowerFile.h.

References fIsOpen.

Status io::ArtificialShowerFile::CreateArtificialShowerFileParticleIterator ( )
private

Definition at line 151 of file ArtificialShowerFile.cc.

References io::eSuccess.

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::ArtificialShowerFile::FindEvent ( const unsigned int  eventId)
overridevirtual

seek Event id set cursor there

Implements io::VEventFile.

Definition at line 125 of file ArtificialShowerFile.cc.

References io::eFail, and io::eSuccess.

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

Implements io::VEventFile.

Definition at line 139 of file ArtificialShowerFile.cc.

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

goto by position in the file

Implements io::VEventFile.

Definition at line 132 of file ArtificialShowerFile.cc.

References io::eSuccess.

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

Implements io::VEventFile.

Definition at line 47 of file ArtificialShowerFile.cc.

References io::eWrite.

Status io::ArtificialShowerFile::Read ( evt::Event event)
overridevirtual
void io::ArtificialShowerFile::ReadXMLParameters ( )
private
void io::ArtificialShowerFile::Write ( const evt::Event event)
overridevirtual

Implements io::VEventFile.

Definition at line 117 of file ArtificialShowerFile.cc.

Member Data Documentation

ArtificialShowerFileParticleIterator io::ArtificialShowerFile::fArtificialShowerFileParticleIterator
private

Definition at line 50 of file ArtificialShowerFile.h.

double io::ArtificialShowerFile::fAzimuth = 0
private

Definition at line 53 of file ArtificialShowerFile.h.

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

Definition at line 72 of file VEventFile.h.

std::string io::VEventFile::fFilename
protectedinherited
bool io::ArtificialShowerFile::fIsOpen = false
private

double fMuonDensity = 0; // unused. LN.

Definition at line 66 of file ArtificialShowerFile.h.

Referenced by Close().

Mode io::VEventFile::fMode = eRead
protectedinherited
double io::ArtificialShowerFile::fPrimaryEnergy = 0
private

Definition at line 51 of file ArtificialShowerFile.h.

int io::ArtificialShowerFile::fReadEvents = 0
private

Definition at line 67 of file ArtificialShowerFile.h.

double io::ArtificialShowerFile::fZenith = 0
private

Definition at line 52 of file ArtificialShowerFile.h.


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

, generated on Tue Sep 26 2023.