-fix for Ionuts ttree stuff (thanks to markus)
[u/mrichter/AliRoot.git] / PWGDQ / PROOF-INF.PWGDQdielectron / SETUP.C
CommitLineData
0539bffb 1
2
3
4void SETUP()
b2a297fa 5{
0539bffb 6 // Load some ROOT libraries
1da31297 7 CheckLoadLibrary("libCore");
0539bffb 8 CheckLoadLibrary("libTree");
9 CheckLoadLibrary("libGeom");
10 CheckLoadLibrary("libVMC");
11 CheckLoadLibrary("libMinuit");
0539bffb 12
13 // Load the AliROOT library
14 CheckLoadLibrary("libANALYSIS");
15 CheckLoadLibrary("libSTEERBase");
16 CheckLoadLibrary("libESD");
0539bffb 17 CheckLoadLibrary("libAOD");
0539bffb 18 CheckLoadLibrary("libANALYSISalice");
1da31297 19 CheckLoadLibrary("libCORRFW");
a14d0b3e 20 CheckLoadLibrary("libPWGDQdielectron");
b2a297fa 21
0539bffb 22 // Set the include paths
a14d0b3e 23 gROOT->ProcessLine(".include PWGDQdielectron/dielectron");
0539bffb 24
b2a297fa 25 // Set our location, so that other packages can find us
a14d0b3e 26 gSystem->Setenv("PWGDQdielectron_INCLUDE", "PWGDQdielectron");
0539bffb 27}
28
29
30Int_t CheckLoadLibrary(const char* library)
31{
32 // checks if a library is already loaded, if not loads the library
33
34 if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
35 return 1;
b2a297fa 36
0539bffb 37 return gSystem->Load(library);
b2a297fa 38}