]>
Commit | Line | Data |
---|---|---|
128a8042 | 1 | void SETUP() |
2 | { | |
3 | // Load some ROOT libraries | |
4 | CheckLoadLibrary("libTree"); | |
5 | CheckLoadLibrary("libGeom"); | |
6 | CheckLoadLibrary("libVMC"); | |
7 | ||
8 | // Load the MUON libraries | |
9 | ||
10 | // Load the ESD libraries | |
11 | CheckLoadLibrary("libANALYSIS"); | |
12 | CheckLoadLibrary("libSTEERBase"); | |
13 | CheckLoadLibrary("libESD"); | |
14 | CheckLoadLibrary("libAOD"); | |
15 | CheckLoadLibrary("libANALYSISalice"); | |
16 | CheckLoadLibrary("libPWG3muondep"); | |
17 | ||
18 | ||
19 | ||
20 | ||
21 | // Set the include paths | |
22 | gROOT->ProcessLine(".include PWG3muondep"); | |
23 | ||
24 | // Set our location, so that other packages can find us | |
25 | gSystem->Setenv("PWG3muondep_INCLUDE", "PWG3muondep"); | |
26 | } | |
27 | ||
28 | Int_t CheckLoadLibrary(const char* library) | |
29 | { | |
30 | // checks if a library is already loaded, if not loads the library | |
31 | ||
32 | if (strlen(gSystem->GetLibraries(Form("%s.so", library), "", kFALSE)) > 0) | |
33 | return 1; | |
34 | ||
35 | return gSystem->Load(library); | |
36 | } |