]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/PROOF-INF.PWG3vertexingHF/SETUP.C
New structure of PWG3: PWG3base, PWG3muon, PWG3vertexingHF and PWG3vertexingOld ...
[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
8     // Load the ESD library
9     CheckLoadLibrary("libANALYSIS");
10     CheckLoadLibrary("libSTEERBase");
11     CheckLoadLibrary("libESD");
12     CheckLoadLibrary("libAOD");
13     CheckLoadLibrary("libANALYSISalice");
14     CheckLoadLibrary("libPWG3vertexingHF");
15
16    // Set the include paths
17    gROOT->ProcessLine(".include PWG3vertexingHF");
18
19    // Set our location, so that other packages can find us
20    gSystem->Setenv("PWG3base_INCLUDE", "PWG3vertexingHF");
21 }
22
23 Int_t CheckLoadLibrary(const char* library)
24 {
25   // checks if a library is already loaded, if not loads the library
26
27   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
28     return 1;
29
30   return gSystem->Load(library);
31 }