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