1 #include <io/EventFile.h>
2 #include <utl/config.h>
4 #include <io/VEventFile.h>
5 #include <io/StreamerSwitch.h>
7 #include <io/OfflineROOTFile.h>
8 #include <io/CDASEventFile.h>
9 #include <io/FDasEventFile.h>
10 #include <io/CorsikaShowerFile.h>
11 #include <io/SenecaShowerFile.h>
12 #include <io/ArtificialShowerFile.h>
17 # include <io/AiresShowerFile.h>
19 #include <io/CONEXFile.h>
20 #include <io/CONEXRandomFile.h>
21 #include <io/IoAugerEventFile.h>
22 #include <io/ZHAireSFile.h>
23 #include <io/REASFile.h>
24 #include <io/REASH5File.h>
25 #include <io/EVAFile.h>
28 #include <io/SELFASFile.h>
29 #include <evt/Event.h>
43 fStreamerSwitch(kDefaultSwitch)
52 fVEventFile(
EventFile::Factory(filename, mode, type, b, streamerSwitch)),
54 fStreamerSwitch(streamerSwitch)
99 return new REASFile(filename, mode, b);
105 return new EVAFile(filename, mode, b);
193 static const string empty;
virtual void Write(const evt::Event &event)=0
ROOT streamer for top level offline format.
EventFile(const Type type=eOffline, utl::Branch *const b=nullptr)
conex file, with random access (NOT sequencial, NO EOF)
Read profiles from CONEX.
switches to allow excluding certain parts of Event from streaming
Status FindEvent(const unsigned int eventId)
seek Event id set cursor there
Seneca File Format. Added by Jeff Allen (jda292@nyu.edu) on Dec. 5th, 2006.
void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr)
const std::string & GetFilename() const
virtual int GetNEvents()=0
virtual Status FindEvent(const unsigned int eventId)=0
seek Event id set cursor there
Mode
Available open modes.
virtual Status GotoPosition(const unsigned int position)=0
goto by position in the file
io::StreamerSwitch fStreamerSwitch
virtual Status Read(evt::Event &event)=0
read current event advance cursor by 1
virtual void Open(const std::string &filename, const Mode mode=eRead, utl::Branch *const b=nullptr)=0
Base class to report exceptions in IO.
Offline native file format.
air shower radio simulations generated with EVA
Class representing a document branch.
Artificial shower generator: uniform particle density, direction.
Status
Return code for seek operation.
air shower radio simulations generated with REAS
Read data from the output of CORSIKA.
Status Read(evt::Event &event)
read current event, advance cursor by 1
const std::string & GetFilename() const
Read EVA simulation output.
air shower radio simulations generated with ZHAireS
Interface to file I/O objects.
Interface for CDAS file reading.
Read REAS simulation output.
io::VEventFile * fVEventFile
Read REASH5 simulation output.
Status GotoPosition(const unsigned int position)
goto by position in the file
Read SELFAS simulation output.
Utility to open an Aires generated shower file on disc.
Type
The type of file that we are acutally opening.
Read data from the output of Seneca.
Interface for FDAS file reading.
Read profiles from CONEXRandom by random access.
static io::VEventFile * Factory(const std::string &filename, const Mode mode, const Type type, utl::Branch *const branch, const io::StreamerSwitch &streamerSwitch)
air shower radio simulations generated with REAS
void Write(const evt::Event &event)