]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/PROOF-INF.PWG2AOD/SETUP.C
move of class to other lib and an added method to add flow
[u/mrichter/AliRoot.git] / PWG2 / PROOF-INF.PWG2AOD / SETUP.C
1 void SETUP() {
2   // Load some ROOT libraries
3   CheckLoadLibrary("libEG");
4   CheckLoadLibrary("libGeom");
5   
6   // Load the ESD library
7   CheckLoadLibrary("libESD");
8
9   // Load the ESD library
10   CheckLoadLibrary("libAOD");
11
12   // Load the ESD library
13   CheckLoadLibrary("libANALYSIS");
14
15   // Load the PWG2 library
16   CheckLoadLibrary("libPWG2AOD");
17
18   // Set the include paths
19   gROOT->ProcessLine(".include PWG2AOD/AOD");
20
21   // Set our location, so that other packages can find us
22   gSystem->Setenv("PWG2AOD_INCLUDE", "PWG2AOD/AOD");
23 }
24
25 Int_t CheckLoadLibrary(const char* library) {
26   // checks if a library is already loaded, if not loads the library
27   
28   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
29     return 1;
30   
31   return gSystem->Load(library);
32 }