2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 #include <TInterpreter.h>
19 #include <TEveManager.h>
23 int main(int argc, char **argv)
25 static const TEveException kEH("alieve::main");
27 if (gSystem->Getenv("REVESYS") == 0) {
28 if (gSystem->Getenv("ALICE_ROOT") != 0) {
29 Info(kEH.Data(), "setting REVESYS from ALICE_ROOT.");
30 gSystem->Setenv("REVESYS", Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
32 Error(kEH.Data(), "REVESYS not defined, neither is ALICE_ROOT.");
36 if (gSystem->AccessPathName(gSystem->Getenv("REVESYS")) == kTRUE) {
37 Error(kEH.Data(), "REVESYS '%s' does not exist.", gSystem->Getenv("REVESYS"));
41 TString macPath(gROOT->GetMacroPath());
42 macPath += Form(":%s/macros", gSystem->Getenv("REVESYS"));
43 gInterpreter->AddIncludePath(gSystem->Getenv("REVESYS"));
44 if (gSystem->Getenv("ALICE_ROOT") != 0) {
45 macPath += Form(":%s/alice-macros", gSystem->Getenv("REVESYS"));
46 gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
47 gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
48 gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
50 gROOT->SetMacroPath(macPath);
52 AliLog* log = new AliLog;
54 TRint app("App", &argc, argv);
56 TEveManager::Create();
58 app.Run(); // Never returns.