]>
Commit | Line | Data |
---|---|---|
be761987 | 1 | void SETUP() { |
2 | // Load some ROOT libraries | |
3 | CheckLoadLibrary("libEG"); | |
4 | CheckLoadLibrary("libGeom"); | |
5 | ||
6 | // Load the ESD library | |
7 | CheckLoadLibrary("libESD"); | |
8 | ||
9 | // Load the PWG2 library | |
10 | CheckLoadLibrary("libPWG2"); | |
11 | ||
12 | // Set the include paths | |
13 | gROOT->ProcessLine(".include PWG2"); | |
14 | ||
15 | // Set our location, so that other packages can find us | |
16 | gSystem->Setenv("PWG2_INCLUDE", "PWG2"); | |
17 | } | |
18 | ||
19 | Int_t CheckLoadLibrary(const char* library) { | |
20 | // checks if a library is already loaded, if not loads the library | |
21 | ||
22 | if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0) | |
23 | return 1; | |
24 | ||
25 | return gSystem->Load(library); | |
26 | } |