Updating the functionality of AliAnalysisHadEtCorrections to accomodate centrality...
[u/mrichter/AliRoot.git] / PWG3 / PROOF-INF.PWG3muondep / SETUP.C
1 void SETUP()
2 {
3     // Load some ROOT libraries
4     CheckLoadLibrary("libTree");
5     CheckLoadLibrary("libGeom");
6     CheckLoadLibrary("libVMC");
7     CheckLoadLibrary("libMinuit");
8     CheckLoadLibrary("libProofPlayer");
9
10     // Load the ESD libraries
11     CheckLoadLibrary("libANALYSIS");
12     CheckLoadLibrary("libSTEERBase");
13     CheckLoadLibrary("libESD");
14     CheckLoadLibrary("libAOD");
15
16   // Load the STEER libraries
17     CheckLoadLibrary("libRAWDatabase");
18     CheckLoadLibrary("libRAWDatarec");
19     CheckLoadLibrary("libCDB");
20     CheckLoadLibrary("libSTEER");
21     CheckLoadLibrary("libPhysics");
22     CheckLoadLibrary("libANALYSISalice");
23
24     // Load the MUON libraries
25     CheckLoadLibrary("libMUONcore");
26     CheckLoadLibrary("libMUONmapping");
27     CheckLoadLibrary("libMUONraw");
28     CheckLoadLibrary("libMUONcalib");
29     CheckLoadLibrary("libMUONgeometry");
30     CheckLoadLibrary("libMUONtrigger");
31     CheckLoadLibrary("libMUONbase");
32     CheckLoadLibrary("libMUONrec");
33
34     CheckLoadLibrary("libPWG3base");
35     CheckLoadLibrary("libPWG3muondep");
36
37    // Set the include paths
38    gROOT->ProcessLine(".include PWG3muondep/muondep");
39
40    // Set our location, so that other packages can find us
41    gSystem->Setenv("PWG3muondep_INCLUDE", "PWG3muondep/muondep");
42 }
43
44 Int_t CheckLoadLibrary(const char* library)
45 {
46   // checks if a library is already loaded, if not loads the library
47
48   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
49     return 1;
50
51   return gSystem->Load(library);
52 }