1 #ifndef _io_ZHAireSFile_h_
2 #define _io_ZHAireSFile_h_
5 #include <utl/AugerUnits.h>
6 #include <io/ZHAireSIOException.h>
7 #include <io/VEventFile.h>
20 class AiresShowerFile;
32 void Close()
override;
50 Rotatez(
const double theta,
const double vi[],
double vf[])
52 const double ct = cos(theta);
53 const double st = sin(theta);
54 vf[0] = vi[0]*ct - vi[1]*st;
55 vf[1] = vi[0]*st + vi[1]*ct;
67 std::ifstream*
fsry =
nullptr;
68 std::ifstream*
fdef =
nullptr;
double NormalizeAngleMinusPiPi(const double x)
Normalize angle to lie between -pi and pi (-180 and 180 deg)
Mode
Available open modes.
double ZHAireSAzimuthToAuger(const double airesAzimuth)
Returns the azimuth rotated from AIRES's system to Auger standard.
Class representing a document branch.
Status
Return code for seek operation.
std::string fOrigDirectory
static void Rotatez(const double theta, const double vi[], double vf[])
std::vector< std::string > fBinFileList
std::string fZHAireSDirectory
int GetNEvents() override
Status GotoPosition(const unsigned int position) override
goto by position in the file
Status FindEvent(const unsigned int eventId) override
seek Event id set cursor there
Status Read(evt::Event &event) override
read current event advance cursor by 1
void Write(const evt::Event &event) override
ZHAireSFile & operator=(const ZHAireSFile &)
static double kMagneticFieldDeclination
Utility to open an Aires generated shower file on disc.
void Open(const std::string &fileName, const Mode mode=eRead, utl::Branch *const b=nullptr) override
unsigned int fCurrentPosition
std::ifstream * fZHAireSin