]>
Commit | Line | Data |
---|---|---|
87405e9a | 1 | void SETUP() |
2 | { | |
4749653c | 3 | |
87405e9a | 4 | gSystem->SetDynamicPath(Form("%s:%s", gSystem->pwd(), gSystem->GetDynamicPath())); |
2343deb0 | 5 | CheckLoadLibrary("libPWGLFresonances"); |
4749653c | 6 | |
2343deb0 | 7 | gROOT->ProcessLine(".include PWGLFresonances"); |
8 | gROOT->ProcessLine(".include PWGLFresonances/RESONANCES"); | |
87405e9a | 9 | |
10 | // Set our location, so that other packages can find us | |
2343deb0 | 11 | gSystem->Setenv("PWGLFresonances_INCLUDE", "PWGLFresonances/RESONANCES"); |
4749653c | 12 | } |
13 | ||
87405e9a | 14 | Int_t CheckLoadLibrary(const char* library) |
15 | { | |
16 | // checks if a library is already loaded, if not loads the library | |
4749653c | 17 | |
87405e9a | 18 | if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0) |
19 | return 1; | |
272c2ad9 | 20 | |
87405e9a | 21 | return gSystem->Load(library); |
4749653c | 22 | } |