1 // Author: Mihai Niculescu 2012
3 /**************************************************************************
4 * Copyright(c) 1998-2012, ALICE Experiment at CERN, all rights reserved. *
5 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
6 * full copyright notice. *
7 **************************************************************************/
9 #include <TInterpreter.h>
16 #include <AliEveApplication.h>
18 ClassImp(AliEveApplication)
20 AliEveApplication::AliEveApplication(const char* appClassName, int* argc, char** argv, void* options, int numOptions, Bool_t noLogo)
21 : TRint(appClassName, argc, argv, options, numOptions, noLogo)
26 AliEveApplication::~AliEveApplication()
29 void AliEveApplication::Init()
32 TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
34 TString macPath(gROOT->GetMacroPath());
35 macPath += Form(":%s/macros", evedir.Data());
36 gInterpreter->AddIncludePath(evedir);
38 macPath += Form(":%s/alice-macros", evedir.Data());
39 gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
40 gInterpreter->AddIncludePath(Form("%s/PWG0", gSystem->Getenv("ALICE_ROOT")));
41 gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
42 gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
44 gROOT->SetMacroPath(macPath);
46 // make sure logger is instantiated
47 AliLog::GetRootLogger();