[ROOT] $(ROOTSYS)/tutorials in rootrc MacroPath and empty TPaveText in demo fit1.C

From: Frankland John (frankland@ganil.fr)
Date: Sat Aug 23 2003 - 12:07:47 MEST


Hello Rene, Fons, Philippe et al.,

2 small and definitely not urgent remarks:
1) in $ROOTSYS/etc/system.rootrc, why not add $(ROOTSYS)/tutorials to 
the lines
Unix.*.Root.MacroPath and WinNT.*.Root.MacroPath ?
This way, by default, a first-time user would be greeted by the message:

"Welcome to the ROOT tutorials
Type ".x demos.C" to get a toolbar from which to execute the demos
Type ".x demoshelp.C" to see the help window"

and would be indeed able to execute said demos.

2) the demo fit1.C uses a TPaveText to display the script used to obtain 
the fit.
To my knowledge this TPaveText has always been empty - it's a small problem,
but a little disconcerting when trying to demonstrate the power of ROOT 
to new users !!
Replacing the line
   fitlabel->ReadFile("fit1_C.C");
by
   
fitlabel->ReadFile(gSystem->ExpandPathName("$(ROOTSYS)/tutorials/fit1_C.C"));
seems to fix this, and should be valid for any installation (??)

Best regards
John
-- 

ganil logo <http://www.ganil.fr>
John D. Frankland <mailto:frankland@ganil.fr>
Beam Coordinator
GANIL
B.P. 55027
14076 CAEN Cedex 05

*tel:* +33 (0)231454628
*fax:* +33 (0)231454665



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET