- update PROOF-INF remove obsolete RooFit, correct include path
[u/mrichter/AliRoot.git] / PWG3 / PROOF-INF.PWG3dielectron / 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");
0539bffb 20 CheckLoadLibrary("libPWG3dielectron");
b2a297fa 21
0539bffb 22 // Set the include paths
1da31297 23 gROOT->ProcessLine(".include PWG3dielectron/dielectron");
0539bffb 24
b2a297fa 25 // Set our location, so that other packages can find us
0539bffb 26 gSystem->Setenv("PWG3dielectron_INCLUDE", "PWG3dielectron");
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}