]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/PROOF-INF.PWGCFebye/SETUP.C
Minor fix to dynamic cast introduced in e4edd69
[u/mrichter/AliRoot.git] / PWGCF / PROOF-INF.PWGCFebye / SETUP.C
1 void SETUP() {
2   CheckLoadLibrary("libPWGCFebye");
3
4   // Set the include paths
5   gROOT->ProcessLine(".include PWGCFebye/EBYE");
6   gROOT->ProcessLine(".include PWGCFebye/EBYE/BalanceFunctions");
7   gROOT->ProcessLine(".include PWGCFebye/EBYE/LRC");
8   gROOT->ProcessLine(".include PWGCFebye/EBYE/MeanPtFluctuations");
9
10   // Set our location, so that other packages can find us
11   gSystem->Setenv("PWGCFebye_INCLUDE", "PWGCFebye");
12 }
13
14 Int_t CheckLoadLibrary(const char* library) {
15   // checks if a library is already loaded, if not loads the library
16
17   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
18     return 1;
19   
20   return gSystem->Load(library);
21 }