]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/macros/mlibs.C
Work around for CINT bug in root 5.10/00, with gcc4.0.2
[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   
11   // load Root libraries
12   gSystem->Load("libPhysics"); 
13   
14   // load mapping library
15   gSystem->Load("libMUONmapping"); 
16
17   // set path to mapping data
18   if (! gSystem->Getenv("MINSTALL")) {    
19     TString dirPath = gSystem->Getenv("ALICE_ROOT");
20     dirPath += "/MUON/mapping"; 
21     AliMpFiles::SetTopPath(dirPath);
22     gSystem->Setenv("MINSTALL", dirPath.Data());
23     // cout << "AliMpFiles top path set to " << dirPath << endl;          
24   }  
25 }