11 #include <evt/Event.h>
12 #include <evt/ShowerSimData.h>
13 #include <evt/GaisserHillas4Parameter.h>
14 #include <evt/DefaultShowerGeometryProducer.h>
16 #include <utl/AugerException.h>
17 #include <utl/ErrorLogger.h>
19 #include <io/IoCodes.h>
21 #include <fwk/CentralConfig.h>
22 #include <utl/config.h>
24 #include <utl/Reader.h>
40 ArtificialShowerFile::ArtificialShowerFile(
const std::string& fileName,
const Mode mode,
utl::Branch*
const b)
42 Open(fileName, mode, b);
47 ArtificialShowerFile::Open(
const std::string& ,
const Mode mode,
utl::Branch*
const )
50 const string msg =
"Artificial IO Exception: ArtificiaFileShower has already been opened.\n";
54 const string msg =
"Artificial IO Exception: Cannot write to Artificial files.\n";
63 ArtificialShowerFile::ReadXMLParameters()
69 primaryEnergyB.
GetData(fPrimaryEnergy);
89 ERROR(
"Event not cleared - has SimShower. Cannot read ArtificialShowerFile.");
105 if (CreateArtificialShowerFileParticleIterator() !=
eSuccess)
119 const string msg =
"Artificial IO Exception: Cannot write to Artificial files.";
125 ArtificialShowerFile::FindEvent(
const unsigned int eventId)
132 ArtificialShowerFile::GotoPosition(
const unsigned int )
139 ArtificialShowerFile::GetNEvents()
144 const string msg =
"Artificial IO Exception: ArtificiaFileShower is already closed.";
151 ArtificialShowerFile::CreateArtificialShowerFileParticleIterator()
154 fArtificialShowerFileParticleIterator.SetShowerZenith(fZenith);
155 fArtificialShowerFileParticleIterator.SetShowerAzimuth(fAzimuth);
Branch GetTopBranch() const
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)...
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
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 GetData(bool &b) const
Overloads of the GetData member template function.
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.