e13695bcd8044140accf5d9e4e88da631da2c6d3
[u/mrichter/AliRoot.git] / PWGPP / TPC / 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("libESD");
16   CheckLoadLibrary("libCDB");
17   CheckLoadLibrary("libRAWDatabase");
18   CheckLoadLibrary("libRAWDatarec");
19   CheckLoadLibrary("libSTEER");
20   CheckLoadLibrary("libRAWDatasim");
21
22
23   gSystem->Load("libANALYSIS");
24   gSystem->Load("libANALYSISalice");
25   gSystem->Load("libCORRFW");
26
27   gSystem->Load("libPWG0base");
28   gSystem->Load("libPWG0dep");
29   gSystem->Load("libPWG0selectors");
30
31   gSystem->Load("libTPCcalib");
32   gSystem->Load("libTender");
33   gSystem->Load("libPWGPP");
34   
35   gSystem->Load("libPHOSUtils");
36   gSystem->Load("libEMCALUtils");
37   gSystem->Load("libPWG4PartCorrBase");
38   gSystem->Load("libPWG4PartCorrDep");
39
40   /*
41   CheckLoadLibrary("libANALYSIS");
42   CheckLoadLibrary("libAOD");
43   CheckLoadLibrary("libANALYSISalice");
44   CheckLoadLibrary("libTender");
45   CheckLoadLibrary("libSTAT");
46   */
47
48   CheckLoadLibrary("libTPCbase");
49   CheckLoadLibrary("libTPCsim");
50   CheckLoadLibrary("libTPCrec");
51   CheckLoadLibrary("libTPCcalib");
52   CheckLoadLibrary("libITSbase");
53   CheckLoadLibrary("libITSsim");
54   CheckLoadLibrary("libITSrec");
55   CheckLoadLibrary("libTRDcalib");
56   CheckLoadLibrary("libTRDbase");
57   CheckLoadLibrary("libTRDrec");
58   CheckLoadLibrary("libTRDsim");
59   CheckLoadLibrary("libTOFbase");
60   CheckLoadLibrary("libTOFrec");
61   CheckLoadLibrary("libTOFsim");
62   CheckLoadLibrary("libMFTbase");
63   CheckLoadLibrary("libMFTrec");
64   CheckLoadLibrary("libMFTsim");
65   CheckLoadLibrary("libPWGPP");
66 }
67
68 Int_t CheckLoadLibrary(const char* library) {
69   // checks if a library is already loaded, if not loads the library
70   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
71     return 1;
72   return gSystem->Load(library);
73 }