Minor fix for software triggers.
[u/mrichter/AliRoot.git] / PWG3 / PROOF-INF.PWG3vertexingHF / 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("libPWG3base");
17     CheckLoadLibrary("libPWG3vertexingHF");
18
19    // Set the include paths
20    gROOT->ProcessLine(".include PWG3vertexingHF/vertexingHF");
21
22    // Set our location, so that other packages can find us
23    gSystem->Setenv("PWG3vertexingHF_INCLUDE", "PWG3vertexingHF/vertexingHF");
24 }
25
26 Int_t CheckLoadLibrary(const char* library)
27 {
28   // checks if a library is already loaded, if not loads the library
29
30   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
31     return 1;
32
33   return gSystem->Load(library);
34 }