]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/macros/mlibs.C
Adding new libraries
[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");
14
15 // load mapping library
16 gSystem->Load("libMUONmapping");
b2707b81 17
18 // set path to mapping data
19 if (! gSystem->Getenv("MINSTALL")) {
20 TString dirPath = gSystem->Getenv("ALICE_ROOT");
21 dirPath += "/MUON/mapping";
2212d363 22 AliMpFiles::SetTopPath(dirPath);
b2707b81 23 gSystem->Setenv("MINSTALL", dirPath.Data());
24 // cout << "AliMpFiles top path set to " << dirPath << endl;
25 }
66e0997c 26}