.so cleanup: no .so ext to GetLibraries()
[u/mrichter/AliRoot.git] / ANALYSIS / PROOF-INF.TENDERSupplies / 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   CheckLoadLibrary("libGui");
13   CheckLoadLibrary("libXMLParser");
14   
15   // Load the AliROOT library
16   CheckLoadLibrary("libANALYSIS");
17   CheckLoadLibrary("libSTEERBase");
18   CheckLoadLibrary("libESD");
19   CheckLoadLibrary("libCDB");
20   CheckLoadLibrary("libTENDER");
21   //Load libs needed for TOF
22   CheckLoadLibrary("libProof");
23   CheckLoadLibrary("libRAWDatabase");
24   CheckLoadLibrary("libSTEER");
25   CheckLoadLibrary("libTOFbase");
26   CheckLoadLibrary("libT0base");
27   CheckLoadLibrary("libT0rec");
28
29   CheckLoadLibrary("libTENDERSupplies");
30   
31   // Set the include paths
32   gROOT->ProcessLine(".include TENDERSupplies/TenderSupplies");
33     
34   // Set our location, so that other packages can find us
35   gSystem->Setenv("TenderSupplies_INCLUDE", "TENDERSupplies/TenderSupplies");
36 }
37
38
39 Int_t CheckLoadLibrary(const char* library)
40 {
41   // checks if a library is already loaded, if not loads the library
42   
43   if (strlen(gSystem->GetLibraries(library, "", kFALSE)) > 0)
44     return 1;
45   
46   return gSystem->Load(library);
47 }