loadincs.C
Go to the documentation of this file.
1 {
2  TString genie_topdir = gSystem->Getenv("GENIE");
3 
4  TString mp = gROOT->GetMacroPath();
5  TString ip;
6 
7  TString ginc = genie_topdir + "/src";
8  const char* p = ginc.Data();
9  if (p) {
10  mp += ":";
11  mp += p;
12  ip += " -I";
13  ip += p;
14  }
15 
16  mp += ":/usr/local/include/";
17  ip += " -I/usr/local/include/";
18 
19  gROOT->SetMacroPath(mp.Data());
20  gSystem->SetIncludePath(ip);
21 
22  // additions to .include must be done individually or CINT will
23  // try to quote all the spaces as a single path
24 
25  TString dip = ".include ";
26  dip += genie_topdir.Data();
27  dip += "/src ";
28  gROOT->ProcessLine(dip.Data());
29 
30  dip = ".include /usr/local/include/";
31  gROOT->ProcessLine(dip.Data());
32 
33  dip = ".include /usr/local/include/log4cpp";
34  gROOT->ProcessLine(dip.Data());
35 
36 }
37 
TString ip
Definition: loadincs.C:5
TString dip
Definition: loadincs.C:25
TString mp
Definition: loadincs.C:4
TString ginc
Definition: loadincs.C:7
const char * p
Definition: loadincs.C:8