]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/PROOF-INF.PWG0base/SETUP.C
bug fixed that was considered also under/overflow bins in vertex axis
[u/mrichter/AliRoot.git] / PWG0 / PROOF-INF.PWG0base / SETUP.C
1 void SETUP()
2 {
3    // Load some ROOT libraries
4    CheckLoadLibrary("libEG");
5    CheckLoadLibrary("libGeom");
6
7    // Load the ESD library
8   CheckLoadLibrary("libANALYSIS");
9   CheckLoadLibrary("libESD");
10   CheckLoadLibrary("libPWG0base");
11
12
13    // Set the include paths
14    gROOT->ProcessLine(".include PWG0base");
15
16    // Set our location, so that other packages can find us
17    gSystem->Setenv("PWG0base_INCLUDE", "PWG0base");
18 }
19
20 Int_t CheckLoadLibrary(const char* library)
21 {
22   // checks if a library is already loaded, if not loads the library
23
24   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
25     return 1;
26
27   return gSystem->Load(library);
28 }