Minor fix for software triggers.
[u/mrichter/AliRoot.git] / PWG3 / PROOF-INF.PWG3vertexingHF / SETUP.C
CommitLineData
e8fd9be7 1void SETUP()
2{
3 // Load some ROOT libraries
4 CheckLoadLibrary("libTree");
5 CheckLoadLibrary("libGeom");
6 CheckLoadLibrary("libVMC");
034b71b0 7 CheckLoadLibrary("libMinuit");
e8fd9be7 8
9 // Load the ESD library
10 CheckLoadLibrary("libANALYSIS");
11 CheckLoadLibrary("libSTEERBase");
12 CheckLoadLibrary("libESD");
13 CheckLoadLibrary("libAOD");
b0c9efdb 14 CheckLoadLibrary("libCORRFW");
e8fd9be7 15 CheckLoadLibrary("libANALYSISalice");
ab9bbfe5 16 CheckLoadLibrary("libPWG3base");
e8fd9be7 17 CheckLoadLibrary("libPWG3vertexingHF");
18
19 // Set the include paths
ab9bbfe5 20 gROOT->ProcessLine(".include PWG3vertexingHF/vertexingHF");
e8fd9be7 21
22 // Set our location, so that other packages can find us
ab9bbfe5 23 gSystem->Setenv("PWG3vertexingHF_INCLUDE", "PWG3vertexingHF/vertexingHF");
e8fd9be7 24}
25
26Int_t CheckLoadLibrary(const char* library)
27{
28 // checks if a library is already loaded, if not loads the library
29
30 if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
31 return 1;
32
33 return gSystem->Load(library);
34}