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>
20 #include <TEveSelection.h>
24 int main(int argc, char **argv)
26 static const TEveException kEH("alieve::main");
28 if (gSystem->Getenv("ALICE_ROOT") == 0)
30 Error(kEH.Data(), "ALICE_ROOT is not defined, aborting.");
34 TString evedir(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
36 if (gSystem->AccessPathName(evedir) == kTRUE)
38 Error(kEH.Data(), "Directory $ALICE_ROOT/EVE does not exist.");
42 TString macPath(gROOT->GetMacroPath());
43 macPath += Form(":%s/macros", evedir.Data());
44 gInterpreter->AddIncludePath(evedir);
45 if (gSystem->Getenv("ALICE_ROOT") != 0)
47 macPath += Form(":%s/alice-macros", evedir.Data());
48 gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
49 gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
50 gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
52 gROOT->SetMacroPath(macPath);
54 // How to hadle AliLog properly?
55 AliLog* log = new AliLog;
57 TRint app("App", &argc, argv);
59 TEveManager::Create();
60 gEve->GetSelection()->SetPickToSelect(TEveSelection::kPS_Projectable);
61 gEve->GetHighlight()->SetPickToSelect(TEveSelection::kPS_Projectable);
63 gEve->RegisterGeometryAlias("Default", Form("%s/alice-data/alice_fullgeo.root", evedir.Data()));
65 app.Run(); // Never returns.