Take into account common installation locations for includes
[u/mrichter/AliRoot.git] / MUON / rootlogon.C
index 2a7fc3d77c104004e9043b73b810b85a9830e5c7..90c64144ef6d0792f9799ca91cd72481fcf5e0c0 100644 (file)
@@ -3,7 +3,14 @@
 
 /* $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
 
 {
   cout << "Loading MUON libraries ..." << endl;
   gInterpreter->ProcessLine("loadlibs()");
     
   cout << "Setting include path ..." << endl;
-  gSystem->SetIncludePath("-I${ALICE_ROOT}/include -I${ALICE_ROOT}/RAW -I${ALICE_ROOT}/MUON -I${ALICE_ROOT}/MUON/mapping");
+  TString includePath = "-I${ALICE_ROOT}/STEER ";
+  includePath        += "-I${ALICE_ROOT}/STEER/STEER ";
+  includePath        += "-I${ALICE_ROOT}/STEER/STEERBase ";
+  includePath        += "-I${ALICE_ROOT}/STEER/CDB ";
+  includePath        += "-I${ALICE_ROOT}/STEER/ESD ";
+  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_INSTALL}/include ";
+  includePath        += "-I${ALICE_BUILD}/include ";
+
+  gSystem->SetIncludePath(includePath.Data());
 }