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