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