Changes for #90303: Fix PROOF-INF/SETUP.C to create PAR files for AliRoot trunk
[u/mrichter/AliRoot.git] / PWGUD / PROOF-INF.PWGUDbase / SETUP.C
CommitLineData
d4fe2555 1void SETUP()
2{
7229e085 3 // Load some ROOT libraries
0bd1f8a0 4 CheckLoadLibrary("libEG");
5 CheckLoadLibrary("libGeom");
7229e085 6
7 // Load the ESD library
aac5ed2f 8 CheckLoadLibrary("libANALYSIS");
9 CheckLoadLibrary("libESD");
d4af460b 10 CheckLoadLibrary("libPWGUDbase");
7229e085 11
16e24ca3 12
7229e085 13 // Set the include paths
816bbbf4 14 gROOT->ProcessLine(".include PWGUDbase/base");
7229e085 15
16 // Set our location, so that other packages can find us
816bbbf4 17 gSystem->Setenv("PWGUDbase_INCLUDE", "PWGUDbase/base");
d4fe2555 18}
0bd1f8a0 19
20Int_t CheckLoadLibrary(const char* library)
21{
22 // checks if a library is already loaded, if not loads the library
23
24 if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
25 return 1;
26
27 return gSystem->Load(library);
28}