]>
Commit | Line | Data |
---|---|---|
47755bcb | 1 | Int_t SETUP() |
02fc82ff | 2 | { |
47755bcb | 3 | |
4 | // Load the EventMixing library | |
5 | TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath()); | |
6 | gSystem->SetDynamicPath(dypath); | |
7 | ||
8 | if (gSystem->Load("libEventMixing")<0) return -1; | |
02fc82ff | 9 | |
10 | // Set the include paths | |
11 | gROOT->ProcessLine(".include EventMixing"); | |
12 | gROOT->ProcessLine(".include EventMixing/EventMixing"); | |
13 | ||
14 | // Set our location, so that other packages can find us | |
15 | gSystem->Setenv("EventMixing_INCLUDE", "EventMixing"); | |
47755bcb | 16 | |
17 | // Set our lib coordinates, so that other packages can link to us | |
18 | TString lib = TString::Format("-L%s -lEventMixing", gSystem->WorkingDirectory()); | |
19 | gSystem->Setenv("EventMixng_LIBS", lib.Data()); | |
20 | ||
21 | return 0; | |
22 | ||
02fc82ff | 23 | } |