X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2Frootlogon.C;h=7ad52712d5544a72e9d9fc2cfd1d4fedccef8db9;hb=59aeffef5c8772e546cf7a5351700a6cead2914b;hp=ac15fa132f8609965e1643726a3221922c3620be;hpb=b507a890c87886cab779861fe0947b6c0dba3aeb;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/rootlogon.C b/MUON/rootlogon.C index ac15fa132f8..7ad52712d55 100644 --- a/MUON/rootlogon.C +++ b/MUON/rootlogon.C @@ -3,8 +3,30 @@ /* $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"; + gSystem->SetIncludePath(includePath.Data()); }