]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/rootlogon.C
More code clean up.
[u/mrichter/AliRoot.git] / MUON / rootlogon.C
index ac15fa132f8609965e1643726a3221922c3620be..f9c13f84c9874432548f4efd934965c249d8015e 100644 (file)
@@ -3,8 +3,34 @@
 
 /* $Id$ */
 
-/// By Laurent Aphecetche
+/// \ingroup macros
+/// \file rootlogon.C
+/// \brief Macro which is run when starting Root in MUON
+///
+/// It loads the MUON libraries needed for simulation and reconstruction
+/// and sets the include path. 
+///
+/// \author Laurent Aphecetche
 
 {
-  gSystem->SetIncludePath("-I${ALICE_ROOT}/include -I${ALICE_ROOT}/MUON -I${ALICE_ROOT}/MUON/mapping");
+  cout << "Loading MUON libraries ..." << endl;
+  gROOT->LoadMacro("${ALICE_ROOT}/MUON/loadlibs.C");
+  gInterpreter->ProcessLine("loadlibs()");
+    
+  cout << "Setting include path ..." << endl;
+  TString includePath = "-I${ALICE_ROOT}/STEER ";
+  includePath        += "-I${ALICE_ROOT}/RAW ";
+  includePath        += "-I${ALICE_ROOT}/FASTSIM ";
+  includePath        += "-I${ALICE_ROOT}/EVGEN ";
+  includePath        += "-I${ALICE_ROOT}/SHUTTLE/TestShuttle ";
+  includePath        += "-I${ALICE_ROOT}/ITS ";
+  includePath        += "-I${ALICE_ROOT}/MUON ";
+  includePath        += "-I${ALICE_ROOT}/MUON/mapping ";
+  includePath        += "-I${ALICE_ROOT}/RAW ";
+  includePath        += "-I${ALICE_ROOT}/include ";
+  includePath        += "-I${ALICE_ROOT}/STRUCT ";
+  includePath        += "-I${GEANT3}/TGeant3 ";
+  includePath        += "-I${ALICE_ROOT}/THijing ";
+
+  gSystem->SetIncludePath(includePath.Data());
 }