5921309608fa2c726cab4cd8e2eea0b541743c43
[u/mrichter/AliRoot.git] / PWG1 / 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   
11   // Load AliRoot libraries
12   
13   CheckLoadLibrary("libSTEERBase");
14   CheckLoadLibrary("libESD");
15   CheckLoadLibrary("libCDB");
16   CheckLoadLibrary("libRAWDatabase");
17   CheckLoadLibrary("libRAWDatarec");
18   CheckLoadLibrary("libSTEER");
19   CheckLoadLibrary("libRAWDatasim");
20
21   CheckLoadLibrary("libANALYSIS");
22   CheckLoadLibrary("libAOD");
23   CheckLoadLibrary("libANALYSISalice");
24   CheckLoadLibrary("libTENDER");
25   CheckLoadLibrary("libSTAT");
26
27   CheckLoadLibrary("libTPCbase");
28   CheckLoadLibrary("libTPCsim");
29   CheckLoadLibrary("libTPCrec");
30   CheckLoadLibrary("libTPCcalib");
31   CheckLoadLibrary("libITSbase");
32   CheckLoadLibrary("libITSsim");
33   CheckLoadLibrary("libITSrec");
34   CheckLoadLibrary("libTRDcalib");
35   CheckLoadLibrary("libTRDbase");
36   CheckLoadLibrary("libTRDrec");
37   CheckLoadLibrary("libTRDsim");
38   CheckLoadLibrary("libTOFbase");
39   CheckLoadLibrary("libTOFrec");
40   CheckLoadLibrary("libTOFsim");
41
42   CheckLoadLibrary("libPWG1");
43 }
44
45 Int_t CheckLoadLibrary(const char* library) {
46   // checks if a library is already loaded, if not loads the library
47   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
48     return 1;
49   return gSystem->Load(library);
50 }