First version of the new GUI in development. You can enable this UI with "alieve...
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveApplication.cxx
... / ...
CommitLineData
1// Author: Mihai Niculescu 2012
2
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 **************************************************************************/
8
9#include <TInterpreter.h>
10#include <TSystem.h>
11#include <TString.h>
12#include <TROOT.h>
13
14#include <AliLog.h>
15
16#include <AliEveApplication.h>
17
18ClassImp(AliEveApplication)
19
20AliEveApplication::AliEveApplication(const char* appClassName, int* argc, char** argv, void* options, int numOptions, Bool_t noLogo)
21 : TRint(appClassName, argc, argv, options, numOptions, noLogo)
22{
23 Init();
24}
25
26AliEveApplication::~AliEveApplication()
27{}
28
29void AliEveApplication::Init()
30{
31
32 TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
33
34 TString macPath(gROOT->GetMacroPath());
35 macPath += Form(":%s/macros", evedir.Data());
36 gInterpreter->AddIncludePath(evedir);
37
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"));
43
44 gROOT->SetMacroPath(macPath);
45
46 // make sure logger is instantiated
47 AliLog::GetRootLogger();
48
49
50}