]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alieve_main/alieve_main.cxx
Merge changes from branches/dev/EVE. This branch was following development in ROOT...
[u/mrichter/AliRoot.git] / EVE / alieve_main / alieve_main.cxx
index d79c5576b329d6d63fdbd03bf220e1a93018a4c5..e8350b48286be42dae237857af654ce3b80cdfd1 100644 (file)
@@ -6,6 +6,7 @@
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
  * full copyright notice.                                                 *
  **************************************************************************/
+
 #include <TInterpreter.h>
 #include <TRint.h>
 #include <TROOT.h>
 
 int main(int argc, char **argv)
 {
-  static const TEveException eH("alieve::main");
+  static const TEveException kEH("alieve::main");
 
-  if(gSystem->Getenv("REVESYS") == 0) {
-    if(gSystem->Getenv("ALICE_ROOT") != 0) {
-      Info(eH.Data(), "setting REVESYS from ALICE_ROOT.");
+  if (gSystem->Getenv("REVESYS") == 0) {
+    if (gSystem->Getenv("ALICE_ROOT") != 0) {
+      Info(kEH.Data(), "setting REVESYS from ALICE_ROOT.");
       gSystem->Setenv("REVESYS", Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
     } else {
-      Error(eH.Data(), "REVESYS not defined, neither is ALICE_ROOT.");
+      Error(kEH.Data(), "REVESYS not defined, neither is ALICE_ROOT.");
       gSystem->Exit(1);
     }
   }
-  if(gSystem->AccessPathName(gSystem->Getenv("REVESYS")) == kTRUE) {
-    Error(eH.Data(), "REVESYS '%s' does not exist.", gSystem->Getenv("REVESYS"));
+  if (gSystem->AccessPathName(gSystem->Getenv("REVESYS")) == kTRUE) {
+    Error(kEH.Data(), "REVESYS '%s' does not exist.", gSystem->Getenv("REVESYS"));
     gSystem->Exit(1);
   }
 
   TString macPath(gROOT->GetMacroPath());
   macPath += Form(":%s/macros", gSystem->Getenv("REVESYS"));
   gInterpreter->AddIncludePath(gSystem->Getenv("REVESYS"));
-  if(gSystem->Getenv("ALICE_ROOT") != 0) {
+  if (gSystem->Getenv("ALICE_ROOT") != 0) {
     macPath += Form(":%s/alice-macros", gSystem->Getenv("REVESYS"));
+    gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
     gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
     gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
   }
@@ -49,7 +51,7 @@ int main(int argc, char **argv)
 
   TEveManager::Create();
 
-
   app.Run(); // Never returns.
+
   return 0;
 }