]>
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"); | |
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 | } |