// $Id: EsafSys.cc,v 1.4 2005/05/22 13:20:57 thea Exp $
// Author: Alessandro Thea 2005/05/19
/*****************************************************************************
* ESAF: Euso Simulation and Analysis Framework *
* *
* Id: EsafSys *
* Package: <packagename> *
* Coordinator: <coordinator> *
* *
*****************************************************************************/
//_____________________________________________________________________________
//
// EsafSys
//
// <extensive class description>
//
// Config file parameters
// ======================
//
// <parameter name>: <parameter description>
// -Valid options: <available options>
//
#include "EsafSys.hh"
#include <TSystem.h>
EsafSys* gEsafSys(0);
#define str(s) _QUOTE_(s)
#if !defined(ESAFARCH)
#warning ESAFARCH missing, assuming ESAFARCH=i686
#define ESAFARCH i686
#endif
ClassImp(EsafSys)
//_____________________________________________________________________________
EsafSys::EsafSys( Bool_t absolute ) {
//
// Constructor
//
fArch = str(ESAFARCH);
fRootVers = ROOT_RELEASE;
fCxxVers = str(ESAFCXX);
if ( absolute && gSystem->Getenv("ESAFSYS") )
fPath = gSystem->Getenv("ESAFSYS");
else
fPath = ".";
fAuxPath = AbsolutePath("/auxilar");
fBinPath = AbsolutePath("/bin/"+fArch);
fLibPath = AbsolutePath("/lib/"+fArch);
fOutPath = AbsolutePath("/output");
}
//_____________________________________________________________________________
EsafSys::~EsafSys() {
//
// Destructor
//
}