1 #ifndef _RdREASSimPreparator_RdREASSimPreparator_h_
2 #define _RdREASSimPreparator_RdREASSimPreparator_h_
4 #include <fwk/VModule.h>
5 #include <utl/CoordinateSystem.h>
6 #include <utl/TimeStamp.h>
22 namespace RdREASSimPreparator {
50 std::string
AddZero(
const int runID,
const int numberofdigit);
54 long& firstinttarget, std::string& selshowstring,
55 const std::string& runnrstring);
105 tupel(
int a,
float b,
float c,
float pg,
float p1,
float p2,
float p3,
float p4)
122 return lhs.quality() > rhs.quality();
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
std::string GetEventNumber(const std::string &eventid)
REGISTER_MODULE("RdREASSimPreparator", RdREASSimPreparator)
std::string LaunchCorsikaSim(const std::string &inpfilename)
std::string fCOAST_BASE_DIR
Interface class to access Shower Reconstructed parameters.
bool ExtractTypicalShower(const std::string &workdir, const std::string &filename, double &firstintheight, long &firstinttarget, std::string &selshowstring, const std::string &runnrstring)
From the conex output file find typical shower ///.
std::string LaunchConexSim(const evt::ShowerRecData &show, const utl::Point &core)
std::vector< std::string > WriteDetectorFile(const utl::Point &core, const utl::Vector &axis)
double pow(const double x, const unsigned int i)
bool operator<(const tupel &rhs) const
float CalibrateEnergy(const float e)
bool fGetMagneticFieldFromModel
virtual ~RdREASSimPreparator()
float fMaxAntennaDistanceFromCore
std::string CorsikaInpFileWriter(const evt::ShowerRecData &show, const utl::Point &core, unsigned int modatm)
double fSeaLevelRefractivity
double fMagneticFieldDeclinationFromModel
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
ResultFlag
Flag returned by module methods to the RunController.
double fMagneticFieldDeclination
std::string AddZero(const int runID, const int numberofdigit)
std::string fCOAST_USER_LIB
int fMonthlyAtmosphericModel
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
double fObserverLevelOffset
bool operator()(const tupel &lhs, const tupel &rhs) const
std::string fROOTSYS_Corsika
std::string fROOTSYS_Reas
tupel(int a, float b, float c, float pg, float p1, float p2, float p3, float p4)
std::string REASFileWriter(const utl::Point &zeCore, const evt::ShowerRecData &show, const std::string &corfilename, const evt::Header &head, const revt::Header &rHead)