]>
Commit | Line | Data |
---|---|---|
e90260d2 | 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 | } |