In macros:
[u/mrichter/AliRoot.git] / MUON / rootlogon.C
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 /* $Id$ */
5
6 /// \ingroup macros
7 /// \file rootlogon.C
8 /// \brief Macro which is run when starting Root in MUON
9 ///
10 /// It loads the MUON libraries needed for simulation and reconstruction
11 /// and sets the include path. 
12 ///
13 /// \author Laurent Aphecetche
14
15 {
16   cout << "Loading MUON libraries ..." << endl;
17   gROOT->LoadMacro("${ALICE_ROOT}/MUON/loadlibs.C");
18   gInterpreter->ProcessLine("loadlibs()");
19     
20   cout << "Setting include path ..." << endl;
21   TString includePath = "-I${ALICE_ROOT}/STEER ";
22   includePath        += "-I${ALICE_ROOT}/RAW ";
23   includePath        += "-I${ALICE_ROOT}/FASTSIM ";
24   includePath        += "-I${ALICE_ROOT}/EVGEN ";
25   includePath        += "-I${ALICE_ROOT}/SHUTTLE/TestShuttle ";
26   includePath        += "-I${ALICE_ROOT}/ITS ";
27   includePath        += "-I${ALICE_ROOT}/MUON ";
28   includePath        += "-I${ALICE_ROOT}/MUON/mapping ";
29   includePath        += "-I${ALICE_ROOT}/RAW ";
30   includePath        += "-I${ALICE_ROOT}/include ";
31
32   gSystem->SetIncludePath(includePath.Data());
33 }