GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
demos/gem/rootlogon.C
Go to the documentation of this file.
1 
2 {
3  printf("******************************************************************** \n") ;
4  printf(" Messages from rootlogon.C \n") ;
5  printf("******************************************************************** \n") ;
6 
7  // comes from configure
8  TString tmp, gwprefix = "/usr/local";
9 
10  if ( gwprefix.EndsWith("/") == false )
11  gwprefix += "/";
12 
13  // expand path to get specific macros
14  TString macroPATH = gROOT->GetMacroPath();
15  tmp = gwprefix;
16  tmp += "share/gw/macros/";
17  if ( macroPATH.Contains(tmp.Data()) == kFALSE ) {
18  printf("- Add %s to the macros path \n",tmp.Data());
19  tmp += ":";
20  macroPATH.Prepend(tmp.Data()); gROOT->SetMacroPath(macroPATH.Data());
21  }
22 
23  // add GammaWare include path for compilation
24  tmp = gwprefix;
25  tmp += "include/gw"; tmp += "0.9"; printf("- Add %s to the include path \n",tmp.Data());
26 
27  tmp.Prepend(" .include ");
28 
29  gROOT->ProcessLine(tmp.Data());
30 
31  // start a TBrowser
32  TBrowser b;
33 }
printf(" Messages from rootlogon.C \n")
TString tmp
TString macroPATH
TBrowser b
TString gwprefix