]>
Commit | Line | Data |
---|---|---|
6bc03c45 | 1 | void SETUP() |
2 | { | |
c6109fad | 3 | // Load some Root libraries needed by STEERBase |
830f5072 | 4 | gSystem->Load("libVMC"); |
c6109fad | 5 | gSystem->Load("libNet"); |
6 | gSystem->Load("libTree"); | |
2c39fad9 | 7 | gSystem->Load("libPhysics"); |
53fdb519 | 8 | gSystem->Load("libMinuit"); |
c6109fad | 9 | |
10 | // Load the STEERBase library | |
8bfe3849 | 11 | TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath()); |
bffad3dc | 12 | gSystem->SetDynamicPath(dypath); |
6bc03c45 | 13 | gSystem->Load("libSTEERBase"); |
14 | ||
3e228187 | 15 | // Set the include paths |
816bbbf4 | 16 | gROOT->ProcessLine(".include STEERBase/STEERBase"); |
6bc03c45 | 17 | |
18 | // Set our location, so that other packages can find us | |
1076657b | 19 | gSystem->Setenv("STEERBase_INCLUDE", "STEERBase/STEERBase"); |
8bfe3849 | 20 | |
21 | // Set our lib coordinates, so that other packages can link to us | |
22 | TString lib = TString::Format("-L%s -lSTEERBase", gSystem->WorkingDirectory()); | |
23 | gSystem->Setenv("STEERBase_LIBS", lib.Data()); | |
6bc03c45 | 24 | } |