11 #include <evt/Event.h>
12 #include <evt/ShowerSimData.h>
13 #include <evt/DefaultShowerGeometryProducer.h>
15 #include <utl/AugerException.h>
16 #include <utl/ErrorLogger.h>
31 SenecaShowerFile::SenecaShowerFile()
33 fSenecaParticleIterator.SetSenecaFileParser(&fFileParser);
39 fSenecaParticleIterator.SetSenecaFileParser(&fFileParser);
40 Open(fileName, mode, b);
47 const io::Status check = fFileParser.OpenSenecaFile(fileName, mode);
49 const string msg =
"Seneca IO Exception: Could not open " + fileName;
56 SenecaShowerFile::Close()
58 fFileParser.CloseSenecaFile();
65 Status check = fFileParser.FileStatus();
73 ERROR(
"ShowerSimData already exists. Cannot read seneca.");
78 check = fFileParser.GetNextEvent();
100 if (CreateSenecaFileParticleIterator() !=
eSuccess)
112 const string msg =
"Seneca IO Exception: Cannot write to Seneca files.\n";
118 SenecaShowerFile::FindEvent(
const unsigned int eventId)
120 return fFileParser.GotoEvent(eventId);
125 SenecaShowerFile::GotoPosition(
const unsigned int position)
127 return fFileParser.GotoPosition(position);
132 SenecaShowerFile::GetNEvents()
134 return fFileParser.GetNumberEvents();
139 SenecaShowerFile::CreateSenecaFileParticleIterator()
141 return fSenecaParticleIterator.SetSenecaFileParser(&fFileParser);
146 SenecaShowerFile::SenecaParticleIDToAuger(
const int senecaID)
bool HasGroundParticles() const
bool HasSimShower() const
Mode
Available open modes.
void SetGroundParticleCoordinateSystemAzimuth(const double azimuth)
Set the azimuth angle of the shower. Angle in x-y plane wrt. to the x axis (0 is from east)...
#define INFO(message)
Macro for logging informational messages.
Base class to report exceptions in IO.
void SetFileInterface(VShowerFileParticleIterator *const interface)
Interface class to access Shower Simulated parameters.
Class representing a document branch.
Status
Return code for seek operation.
void SetEnergy(const double theEnergy)
Set the energy of the shower primary particle.
utl::ShowerParticleList & GetGroundParticles()
Get particle list Proxy.
void MakeGroundParticles()
void SetPrimaryParticle(const int type)
Set the type of the shower primary particle.
void SetGroundParticleCoordinateSystemZenith(const double zenith)
Set the zenith angle of the shower. Room angle between z-axis and direction from where the shower is ...
void SetShowerNumber(const int sid)
void SetShowerRunId(const std::string srid)
#define ERROR(message)
Macro for logging error messages.