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