Re: [ROOT] .rootrc parsing

From: Rutger van der Eijk (r36@nikhef.nl)
Date: Tue Aug 15 2000 - 19:06:07 MEST


Hoi Fons,

How is life?

Ik ben een tijdje bezig geweest met het schrijven van notes over
testbeams. heerlijk om te hebben afgerond. Nu weer bezig in de LHCb track
reconstructie groep. En uiteraard kan ik daar wat ROOT gebruiken...

Anyway. In mijn homedirectory heb ik al tijden:

----------.rootrc------------
#/ This is the file .rootrc
#// The description of possible variables in .rootrc is given in TEnv.
# Path used by dynamic loader to find shared libraries
*.Root.DynamicPath:    .:$ROOTSYS/lib
*.Root.MacroPath:      .:$ROOTSYS/macros

# Activate memory statistics
Rint.Root.MemStat:       0
Rint.Load:               rootalias.C
Rint.Logon:              rootlogon.C
Rint.Logoff:             rootlogoff.C

Rint.Canvas.MoveOpaque:  false
Rint.Canvas.HighLightColor: 5
----------------------

Daar bovenop gebruik ik altijd een locale .rootrc in een project.

Voor het project heb ik de dir structuur
pclhcb56:v5> ls -ltr
total 88
drwxr-xr-x   2 rutger   z5           4096 Jul 10 15:41 CVS
drwxr-xr-x   3 rutger   z5           4096 Aug  7 13:30 InnerTr
drwxr-xr-x   3 rutger   z5           4096 Aug  7 13:30 OuterTr
drwxr-xr-x   3 rutger   z5           4096 Aug 15 10:46 RootUISvc
...
drwxr-xr-x   3 rutger   z5           4096 Aug 15 17:08 macros
drwxr-xr-x   3 rutger   z5           4096 Aug 15 18:07 dict
drwxr-xr-x   2 rutger   z5           4096 Aug 15 18:47 i386_linux22
drwxr-xr-x   3 rutger   z5           4096 Aug 15 18:49 mgr
drwxr-xr-x   3 rutger   z5           4096 Aug 15 17:09 Applications

in de directory macros staan een aantal macros, waaronder rootlogon.C:

-----rootlogon.C-------
{
cout << "rootlogon.C: (local)" << endl;

// ...

}
------------


in de directory Applications staat de locale .rootrc
-------.rootrc---------------
# This is the file .rootrc
# The description of possible variables in .rootrc is given in TEnv.

# Path used by RINT to find macros
*.Root.MacroPath: .:$HOME/mycmt/TrackingTest/v5/macros:$ROOTSYS/macros

Gui.NormalFont:
-adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-iso88
59-1
Gui.BoldFont:
-adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859
-1
Gui.SmallFont:
-adobe-helvetica-medium-r-*-*-8-*-*-*-*-*-iso885
9-1
Gui.ProportionalFont:
-adobe-courier-medium-r-*-*-12-*-*-*-*-*-iso8859
-1
Gui.BackgroundColor:            #c0c0c0
Gui.ForegroundColor:            black
Gui.SelectForegroundColor:      white
Gui.SelectBackgroundColor:      #008080
Gui.IconPath:                   ./icons:$HOME/icons:$ROOTSYS/icons:.
Gui.MimeTypeFile:               $HOME/.root.mimes (else
$ROOTSYS/icons/root.mime
s)

Browser.IconStyle:              big
Browser.SortBy:                 type

Root.Html.SearchEngine:
http://hpna49-7.cern.ch/cgi-bin/search/root
Root.Html.OutputDir:            /afs/cern.ch/user/l/lhcbott/www/software
Root.Html.SourceDir:            code/current/Collect/all
Root.Html.Author:               //   Author: 
Root.Html.LastUpdate:           //   Version: 
Root.Html.HomePage:             http://home.cern.ch/lhcbott/
Root.Html.Root:                 http://root.cern.ch/root/html

# Activate memory statistics (size and cnt is used to trap allocation of
# blocks of a certain size after cnt times)
Root.MemStat:                   0
Root.MemStat.size:              -1
Root.MemStat.cnt:               -1
Root.ObjectStat:                1
------------------


Als ik nu in de directory Applications root opstart krijg ik onder v2.23:

pclhcb56:Applications> root
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   2.23/12   1 February 2000   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************
Compiled with thread support.

CINT/ROOT C/C++ Interpreter version 5.14.25, Nov 25 1999
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
rootlogon.C: (local)
root [0] 

maar onder v2.25:

pclhcb56:Applications> root
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   2.25/01    11 August 2000   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

FreeType Engine v1.x used to render TrueType fonts.
Compiled with thread support.

CINT/ROOT C/C++ Interpreter version 5.14.44, Jul 18 2000
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] 


Ofwel rootlogon.C wordt niet gesourced. En als ik verder kijk is uberhaubt
het macro path niet geupdate vanuit de locale .rootrc met de regel

*.Root.MacroPath: .:$HOME/mycmt/TrackingTest/v5/macros:$ROOTSYS/macros

ofwel de locale .rootrc lijkt niet geparsed... (was hier een debug-flag
voor?)

Enig idee?


Groeten,

Rutger




On Tue, 15 Aug 2000, Fons Rademakers wrote:

> No that I remember. Contact me with specifics.
> 
> Cheers, Fons.
> 
> 
> Rutger van der Eijk wrote:
> > 
> > Hi rooters,
> > 
> > Yesterday I finally moved to v2.25 (from v2.23). I have a small problem
> > which I couldn't find in release notes so decided to ask.
> > 
> > It seems my .rootrc files are not correctly sourced anymore in v2.25.
> > Did anything change here?
> > 
> > Rutger
> 
> -- 
> Org:    CERN, European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:31 MET