Update master to aliroot
[u/mrichter/AliRoot.git] / STEER / PROOF-INF.STEERBase / SETUP.C
1 void SETUP()
2 {
3    // Load some Root libraries needed by STEERBase
4    gSystem->Load("libVMC");
5    gSystem->Load("libNet");
6    gSystem->Load("libTree");
7    gSystem->Load("libPhysics");
8    gSystem->Load("libMinuit");
9
10    // Load the STEERBase library
11    TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
12    gSystem->SetDynamicPath(dypath);
13    gSystem->Load("libSTEERBase");
14
15    // Set the include paths
16    gROOT->ProcessLine(".include STEERBase/STEERBase");
17
18    // Set our location, so that other packages can find us
19    gSystem->Setenv("STEERBase_INCLUDE", "STEERBase/STEERBase");
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());
24 }