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>
17 #include <AliEveManager.h>
20 ClassImp(AliEveApplication)
22 AliEveApplication::AliEveApplication(const char* appClassName, int* argc, char** argv, void* options, int numOptions, Bool_t noLogo)
23 : TRint(appClassName, argc, argv, options, numOptions, noLogo)
28 AliEveApplication::~AliEveApplication()
31 void AliEveApplication::Init()
34 static const TEveException kEH("alieve::main");
36 TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
38 TString macPath(gROOT->GetMacroPath());
39 macPath += Form(":%s/macros", evedir.Data());
40 gInterpreter->AddIncludePath(evedir);
42 macPath += Form(":%s/alice-macros", evedir.Data());
43 gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
44 gInterpreter->AddIncludePath(Form("%s/PWG0", gSystem->Getenv("ALICE_ROOT")));
45 gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
46 gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
48 gROOT->SetMacroPath(macPath);
50 // make sure logger is instantiated
51 AliLog::GetRootLogger();