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("ALICE_ROOT") == 0)
29 Error(kEH.Data(), "ALICE_ROOT is not defined, aborting.");
33 TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
35 if (gSystem->AccessPathName(evedir) == kTRUE)
37 Error(kEH.Data(), "Directory $ALICE_ROOT/EVE does not exist.");
41 TString macPath(gROOT->GetMacroPath());
42 macPath += Form(":%s/macros", evedir.Data());
43 gInterpreter->AddIncludePath(evedir);
44 if (gSystem->Getenv("ALICE_ROOT") != 0)
46 macPath += Form(":%s/alice-macros", evedir.Data());
47 gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
48 gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
49 gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
51 gROOT->SetMacroPath(macPath);
53 // How to hadle AliLog properly?
54 AliLog* log = new AliLog;
56 TRint app("App", &argc, argv);
58 TEveManager::Create();
60 gEve->RegisterGeometryAlias("Default", Form("%s/alice-data/alice_fullgeo.root", evedir.Data()));
62 app.Run(); // Never returns.