TENDER becomes Tender
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / ChargedHadrons / dNdPt / macros / LoadMyLibs.C
1 void LoadMyLibs() {
2
3   // Load some ROOT libraries
4   CheckLoadLibrary("libEG");
5   CheckLoadLibrary("libGeom");
6   CheckLoadLibrary("libVMC");
7   CheckLoadLibrary("libTree");
8   CheckLoadLibrary("libGui");
9   CheckLoadLibrary("libMinuit");
10   CheckLoadLibrary("libSTAT");
11   
12   // Load AliRoot libraries
13   
14   CheckLoadLibrary("libSTEERBase");
15   CheckLoadLibrary("libCDB");
16   CheckLoadLibrary("libRAWDatabase");
17   CheckLoadLibrary("libRAWDatarec");
18   CheckLoadLibrary("libESD");
19   CheckLoadLibrary("libAOD");
20   CheckLoadLibrary("libSTEER");
21   
22   CheckLoadLibrary("libANALYSIS");
23   CheckLoadLibrary("libANALYSISalice");
24   CheckLoadLibrary("libTender");
25   CheckLoadLibrary("libTPCbase");
26   CheckLoadLibrary("libTPCsim");
27   CheckLoadLibrary("libTPCrec");
28   //CheckLoadLibrary("libTRDbase");
29   //CheckLoadLibrary("libTRDcalib");
30   //CheckLoadLibrary("libTRDrec");
31   CheckLoadLibrary("libITSbase");
32   CheckLoadLibrary("libITSrec");
33
34   CheckLoadLibrary("libPWGPP");
35   CheckLoadLibrary("libPWGPPdep");
36   CheckLoadLibrary("libPWGLFspectra");
37 }
38
39 Int_t CheckLoadLibrary(const char* library) {
40   // checks if a library is already loaded, if not library is loaded
41   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
42     return 1;
43   return gSystem->Load(library);
44 }