]>
Commit | Line | Data |
---|---|---|
00d878fb | 1 | void SETUP() |
2 | { | |
3 | // Load some ROOT libraries | |
4 | ||
5 | gSystem->Load("libVMC"); | |
6 | gSystem->Load("libNet"); | |
7 | gSystem->Load("libTree"); | |
8 | ||
9 | // Load libSTEERBase, CDB depends on it | |
10 | gSystem->Load("libSTEERBase"); | |
11 | ||
12 | // Load the CDB library | |
8bfe3849 | 13 | TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath()); |
14 | gSystem->SetDynamicPath(dypath); | |
00d878fb | 15 | gSystem->Load("libCDB"); |
16 | ||
17 | // Set the include paths | |
816bbbf4 | 18 | gROOT->ProcessLine(".include CDB/CDB"); |
00d878fb | 19 | |
20 | // Set our location, so that other packages can find us | |
1076657b | 21 | gSystem->Setenv("CDB_INCLUDE", "CDB/CDB"); |
8bfe3849 | 22 | |
23 | // Set our lib coordinates, so that other packages can link to us | |
24 | TString lib = TString::Format("-L%s -lCDB", gSystem->WorkingDirectory()); | |
25 | gSystem->Setenv("CDB_LIBS", lib.Data()); | |
00d878fb | 26 | } |