1 #ifndef _io_SELFASFile_h_
2 #define _io_SELFASFile_h_
4 #include <io/SELFASIOException.h>
5 #include <io/VEventFile.h>
9 #include <utl/Vector.h>
10 #include <revt/Station.h>
11 #include <utl/VParticleProperties.h>
17 #include <boost/tokenizer.hpp>
18 #include <boost/filesystem/path.hpp>
49 void Close()
override;
50 void Open(
const std::string& fileName,
const Mode mode,
utl::Branch*
const b =
nullptr)
override;
54 template<
class T>
bool from_string(T& t,
const std::string&
s, std::ios_base &(*f)(std::ios_base&));
55 std::vector<std::string>
StringSplitter(
const std::string& line,
const std::string& sep);
int GetNEvents() override
std::ifstream finput_file
double ffirst_interaction_lenght
double fz_core_relative_position
std::string version_string
Mode
Available open modes.
Status FindEvent(const unsigned int eventId) override
seek Event id set cursor there
std::string fprimary_particle
std::vector< std::string > StringSplitter(const std::string &line, const std::string &sep)
void Open(const std::string &fileName, const Mode mode, utl::Branch *const b=nullptr) override
Class representing a document branch.
Status
Return code for seek operation.
unsigned int events_remaining
double fsimulated_particles
bool from_string(T &t, const std::string &s, std::ios_base &(*f)(std::ios_base &))
bool fhas_multiple_scattering
Status Read(evt::Event &theEvent) override
read current event advance cursor by 1
Status GotoPosition(const unsigned int pos) override
goto by position in the file
double multiple_scattering
double fy_core_relative_position
unsigned int fCurrentPosition
Read SELFAS simulation output.
double fx_core_relative_position
void Write(const evt::Event &theEvent) override
std::string file_extension