]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveBase/AliEveApplication.cxx
Setting some default values
[u/mrichter/AliRoot.git] / EVE / EveBase / AliEveApplication.cxx
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 #include <AliEveManager.h>
18
19
20 ClassImp(AliEveApplication)
21
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)
24 {
25   Init();
26 }
27
28 AliEveApplication::~AliEveApplication()
29 {}
30
31 void  AliEveApplication::Init()
32 {
33
34         static const TEveException kEH("alieve::main");
35
36   TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
37
38   TString macPath(gROOT->GetMacroPath());
39   macPath += Form(":%s/macros", evedir.Data());
40   gInterpreter->AddIncludePath(evedir);
41
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"));
47  
48   gROOT->SetMacroPath(macPath);
49
50   // make sure logger is instantiated
51   AliLog::GetRootLogger();
52
53
54 }