.so cleanup: no .so ext to GetLibraries()
[u/mrichter/AliRoot.git] / PWGDQ / PROOF-INF.PWGDQbase / SETUP.C
CommitLineData
7673d405 1void SETUP()
2{
3 // Load some ROOT libraries
7673d405 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");
e8fd9be7 13 CheckLoadLibrary("libANALYSISalice");
80f4dcd9 14 CheckLoadLibrary("libPWGDQbase");
7673d405 15
16
17 // Set the include paths
80f4dcd9 18 gROOT->ProcessLine(".include PWGDQbase/base");
7673d405 19
20 // Set our location, so that other packages can find us
80f4dcd9 21 gSystem->Setenv("PWGDQbase_INCLUDE", "PWGDQbase/base");
7673d405 22}
23
24Int_t CheckLoadLibrary(const char* library)
25{
26 // checks if a library is already loaded, if not loads the library
27
9a3036c4 28 if (strlen(gSystem->GetLibraries(library, "", kFALSE)) > 0)
7673d405 29 return 1;
30
31 return gSystem->Load(library);
32}