]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/macros/mlibs.C
Patch for the pointer to AOD event
[u/mrichter/AliRoot.git] / MUON / mapping / macros / mlibs.C
CommitLineData
66e0997c 1// $Id$
2//
b2707b81 3// Macro for loading libraries for mapping in AliRoot.
4// It sets also the environment variable used to find mapping data.
66e0997c 5
6void mlibs()
7{
8 // add include path
9 // gSystem->SetIncludePath(" -I$MINSTALL/include");
8fdc7f2a 10 gSystem->SetIncludePath("-I$ALICE_ROOT/include -I$ALICE_ROOT/MUON/mapping");
11
66e0997c 12 // load Root libraries
13 gSystem->Load("libPhysics");
e10bfadc 14 gSystem->Load("libTree");
15 gSystem->Load("libVMC");
16
17 // load AliRoot STEERbase
18 gSystem->Load("libSTEERBase");
66e0997c 19
20 // load mapping library
e10bfadc 21 gSystem->Load("libMUONcore");
66e0997c 22 gSystem->Load("libMUONmapping");
e10bfadc 23 gSystem->Load("libMUONmpgraphics");
b2707b81 24
25 // set path to mapping data
26 if (! gSystem->Getenv("MINSTALL")) {
27 TString dirPath = gSystem->Getenv("ALICE_ROOT");
28 dirPath += "/MUON/mapping";
2212d363 29 AliMpFiles::SetTopPath(dirPath);
b2707b81 30 gSystem->Setenv("MINSTALL", dirPath.Data());
31 // cout << "AliMpFiles top path set to " << dirPath << endl;
32 }
66e0997c 33}