2 TString libs0 = gSystem->GetDynamicPath();
3 TString
libs = libs0 +
":/usr/lib:/usr/local/lib:/opt/lib:/opt/local/lib";
4 gSystem->SetDynamicPath(libs.Data());
7 gSystem->Load(
"libPythia6");
10 gSystem->Load(
"libPhysics");
11 gSystem->Load(
"libEG");
12 gSystem->Load(
"libEGPythia6");
13 gSystem->Load(
"libGeom");
14 gSystem->Load(
"libTree");
17 gSystem->Load(
"libxml2");
18 gSystem->Load(
"liblog4cpp");
26 FILE *
f = gSystem->OpenPipe(command.Data(),
"r");
28 TPRegexp
re(
"-l([\\d\\w]*)");
31 if (!line.Gets(f)) {
break;}
32 TObjArray * tokens = line.Tokenize(
" ");
33 for (
int i = 0 ;
i < tokens->GetEntries() ;
i++) {
34 TObjString * token_os =
static_cast<TObjString*
>(tokens->At(
i));
35 if (!token_os) {
continue;}
36 TObjArray *
matches =
re.MatchS(token_os->GetString());
37 if (matches->GetEntries()!=2) {
continue; }
38 TObjString * libname_os =
static_cast<TObjString*
>(matches->At(1));
39 if (!libname_os) {
continue;}
40 TString full_libname =
"lib"+libname_os->GetString();
42 gSystem->Load(full_libname.Data());
47 gSystem->ClosePipe(f);
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
TPRegexp re("-l([\\d\\w]*)")