]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PROOF-INF.PWG4JCORRAN/SETUP.C
Generator for dimuon decays of low masses resonances in AliRoot.
[u/mrichter/AliRoot.git] / PWG4 / PROOF-INF.PWG4JCORRAN / SETUP.C
1 void SETUP() {
2   // Load the BASE library
3   CheckLoadLibrary("libPWG4JCORRAN");
4   gROOT->ProcessLine(".include PWG4JCORRAN");
5   // Set our location, so that other packages can find us
6   gSystem->Setenv("PWG4JCORRAN_INCLUDE", "PWG4JCORRAN");
7 }
8
9 Int_t CheckLoadLibrary(const char* library) {
10   // checks if a library is already loaded, if not loads the library
11   
12   if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0)
13     return 1;
14   
15   return gSystem->Load(library);
16 }