]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/PROOF-INF.PWG2AOD/SETUP.C
enable setting of subevents
[u/mrichter/AliRoot.git] / PWG2 / PROOF-INF.PWG2AOD / SETUP.C
CommitLineData
7f2a4d8b 1void SETUP() {
2 // Load some ROOT libraries
3 CheckLoadLibrary("libEG");
4 CheckLoadLibrary("libGeom");
5
6 // Load the ESD library
7 CheckLoadLibrary("libESD");
8
9 // Load the ESD library
10 CheckLoadLibrary("libAOD");
11
12 // Load the ESD library
13 CheckLoadLibrary("libANALYSIS");
14
15 // Load the PWG2 library
16 CheckLoadLibrary("libPWG2AOD");
17
18 // Set the include paths
b340141d 19 gROOT->ProcessLine(".include PWG2AOD/AOD");
7f2a4d8b 20
21 // Set our location, so that other packages can find us
aad44575 22 gSystem->Setenv("PWG2AOD_INCLUDE", "PWG2AOD/AOD");
7f2a4d8b 23}
24
25Int_t CheckLoadLibrary(const char* library) {
26 // checks if a library is already loaded, if not loads the library
27
28 if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
29 return 1;
30
31 return gSystem->Load(library);
32}