ba124f6ac9bf3185e695c47cc0a59273e504c421
[u/mrichter/AliRoot.git] / PWG3 / PROOF-INF.PWG3dielectron / SETUP.C
1
2
3
4 void SETUP()
5 {
6   // Load some ROOT libraries
7   CheckLoadLibrary("libTree");
8   CheckLoadLibrary("libGeom");
9   CheckLoadLibrary("libVMC");
10   CheckLoadLibrary("libMinuit");
11   CheckLoadLibrary("libRooFit");
12   
13   // Load the AliROOT library
14   CheckLoadLibrary("libANALYSIS");
15   CheckLoadLibrary("libSTEERBase");
16   CheckLoadLibrary("libESD");
17   CheckLoadLibrary("libCDB");
18   CheckLoadLibrary("libAOD");
19   CheckLoadLibrary("libCORRFW");
20   CheckLoadLibrary("libANALYSISalice");
21   CheckLoadLibrary("libPWG3dielectron");
22   
23   // Set the include paths
24   gROOT->ProcessLine(".include PWG3dielectron");
25     
26   // Set our location, so that other packages can find us
27   gSystem->Setenv("PWG3dielectron_INCLUDE", "PWG3dielectron");
28 }
29
30
31 Int_t CheckLoadLibrary(const char* library)
32 {
33   // checks if a library is already loaded, if not loads the library
34   
35   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
36     return 1;
37   
38   return gSystem->Load(library);
39 }