Re: [ROOT] $(ROOTSYS)/tutorials in rootrc MacroPath and empty TPaveText in demofit1.C

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Aug 25 2003 - 09:48:31 MEST


Hi John,

The tutorials are supposed to be executed in the tutorials directory
or in a full copy of this directory. The later case is frequent, most people
having no write access (required by the tutorials) in the original
tutorials directory. For this reason, encoding the path of the tutorials
with the ROOTSYS as a prefix is not a good idea.

Note that your mail contains un attachement that is very likely rejected
by most mail systems today. Avoid including gif, jpeg files as attachement.

Rene Brun

Frankland John wrote:
> 
> 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]
> 
>                      John D. Franklandtel: +33
>                      Beam Coordinator (0)231454628
>                      GANIL            fax: +33
>                      B.P. 55027       (0)231454665
>                      14076 CAEN Cedex
>                      05



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