#include <TInterpreter.h>
#include <TSystem.h>
#include <TString.h>
#include <TROOT.h>
#include <AliLog.h>
#include <AliEveApplication.h>
ClassImp(AliEveApplication)
AliEveApplication::AliEveApplication(const char* appClassName, int* argc, char** argv, void* options, int numOptions, Bool_t noLogo)
: TRint(appClassName, argc, argv, options, numOptions, noLogo)
{
Init();
}
AliEveApplication::~AliEveApplication()
{}
void AliEveApplication::Init()
{
TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
TString macPath(gROOT->GetMacroPath());
macPath += Form(":%s/macros", evedir.Data());
gInterpreter->AddIncludePath(evedir);
macPath += Form(":%s/alice-macros", evedir.Data());
gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
gInterpreter->AddIncludePath(Form("%s/PWG0", gSystem->Getenv("ALICE_ROOT")));
gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
gROOT->SetMacroPath(macPath);
AliLog::GetRootLogger();
}