]>
Commit | Line | Data |
---|---|---|
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 | |
6 | void mlibs() | |
7 | { | |
8 | // add include path | |
9 | // gSystem->SetIncludePath(" -I$MINSTALL/include"); | |
10 | ||
66e0997c | 11 | // load Root libraries |
12 | gSystem->Load("libPhysics"); | |
13 | ||
14 | // load mapping library | |
15 | gSystem->Load("libMUONmapping"); | |
b2707b81 | 16 | |
17 | // set path to mapping data | |
18 | if (! gSystem->Getenv("MINSTALL")) { | |
19 | TString dirPath = gSystem->Getenv("ALICE_ROOT"); | |
20 | dirPath += "/MUON/mapping"; | |
2212d363 | 21 | AliMpFiles::SetTopPath(dirPath); |
b2707b81 | 22 | gSystem->Setenv("MINSTALL", dirPath.Data()); |
23 | // cout << "AliMpFiles top path set to " << dirPath << endl; | |
24 | } | |
66e0997c | 25 | } |