AliAnalysisTaskESDfilter added.
[u/mrichter/AliRoot.git] / PWG0 / PROOF-INF.PWG0base / 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
0bd1f8a0 8 CheckLoadLibrary("libESD");
7229e085 9
0bd1f8a0 10 CheckLoadLibrary("libPWG0base");
16e24ca3 11
7229e085 12 // Set the include paths
d4fe2555 13 gROOT->ProcessLine(".include PWG0base");
7229e085 14
15 // Set our location, so that other packages can find us
16 gSystem->Setenv("PWG0base_INCLUDE", "PWG0base");
d4fe2555 17}
0bd1f8a0 18
19Int_t CheckLoadLibrary(const char* library)
20{
21 // checks if a library is already loaded, if not loads the library
22
23 if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
24 return 1;
25
26 return gSystem->Load(library);
27}