Updating the functionality of AliAnalysisHadEtCorrections to accomodate centrality...
[u/mrichter/AliRoot.git] / PWG3 / PROOF-INF.PWG3muondep / SETUP.C
CommitLineData
128a8042 1void SETUP()
2{
3 // Load some ROOT libraries
4 CheckLoadLibrary("libTree");
5 CheckLoadLibrary("libGeom");
6 CheckLoadLibrary("libVMC");
20e837dc 7 CheckLoadLibrary("libMinuit");
8 CheckLoadLibrary("libProofPlayer");
128a8042 9
10 // Load the ESD libraries
11 CheckLoadLibrary("libANALYSIS");
12 CheckLoadLibrary("libSTEERBase");
13 CheckLoadLibrary("libESD");
14 CheckLoadLibrary("libAOD");
128a8042 15
20e837dc 16 // Load the STEER libraries
17 CheckLoadLibrary("libRAWDatabase");
18 CheckLoadLibrary("libRAWDatarec");
19 CheckLoadLibrary("libCDB");
20 CheckLoadLibrary("libSTEER");
21 CheckLoadLibrary("libPhysics");
22 CheckLoadLibrary("libANALYSISalice");
128a8042 23
20e837dc 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");
128a8042 33
ce874155 34 CheckLoadLibrary("libPWG3base");
20e837dc 35 CheckLoadLibrary("libPWG3muondep");
128a8042 36
37 // Set the include paths
ab9bbfe5 38 gROOT->ProcessLine(".include PWG3muondep/muondep");
128a8042 39
40 // Set our location, so that other packages can find us
ab9bbfe5 41 gSystem->Setenv("PWG3muondep_INCLUDE", "PWG3muondep/muondep");
128a8042 42}
43
44Int_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}