The Root Environment
To use the Root framework, some environment should be provided. The Root
environment is set in two steps.
- set the ROOTSYS environment variable
(on UNIX machines it is done by STAR
login script)
- Adjust the Root profile ".rootrc". This file contains
some information useful to Root. Root looks for this file in
- the current directory
- the user's home directory
- the $ROOTSYS directory
The last means if you do nothing
special, your Root defaults are defined by $ROOTSYS/.rootrc.
Here are some examples of what parameters are defined in the Root profile:
- the Root macro search path
- the Root dynamic library search
path
- the name and place of the
Root logon macro that is executed just
as one launches the Root session before a Root
prompt is displayed
- the name and place of the
Root alias macro that is loaded just
before any Root
script is executed
Here is a piece of the STAR Root profile:
Unix.*.Root.DynamicPath:.:$(ROOTSYS)/lib:$(STAR_LIB):$(STAF_LIB)
Unix.*.Root.MacroPath:.:$(STAR)/StRoot/macros:$(STAR)/StRoot/test:$(ROOTSYS)/macros
WinNT.*.Root.DynamicPath:./;$(ROOTSYS)/star/bin;//Sol/afs_rhic/star/packages/dev/.intel_wnt/bin;$(ROOTSYS);$(ROOTSYS)/bin;$(PATH)
WinNT.*.Root.MacroPath:./;$(home)/root/macros;$(ROOTSYS)/tutorials;$(ROOTSYS)/star/macros;//Sol/afs_rhic/star/packages/dev/.intel_wnt/bin;$(ROOTSYS)/macros
# Rint (interactive ROOTexecutable) specific alias, logon and logoff macros
Rint.Load: $(ROOTSYS)/tutorials/rootalias.C
Rint.Logon: $(STAR)/StRoot/macros/rootlogon.C
Rint.Logoff: $(ROOTSYS)/tutorials/rootlogoff.C
Rint.History: $(HOME)/.root_hist
To see some Root startup options, just type "root4star -h"
(or "root4star -h" under UNIX)
J:\Public\root> root4star -h
Usage: root [-l] [-b] [-n] [-q] [file1.C ... fileN.C]
Options:
-b : run in batch mode without graphics
-n : do not execute logon and logoff macros as specified in .rootrc
-q : exit after processing command line macro files
-l : do not show splash screen
How to start STAR Root demos on UNIX
(sample
log)
(Sun Solaris and Linux only, for the moment)
- Select
on the latest STAR Library versions:
- starpro -
to select version
- stardev - to select version
- starnew - to select version
- starver 98j - to select the version <98j> of STAR library
(this is the library which was used for MDC1)
- Type: root4star
- See the Html version of the
STAR_demos on
the Web below.
How to quit STAR Root
To end the interactive Root session, just type the
".q" command as follows:
(or see the
sample
log)
root [3] .q
This is the end of ROOT -- Goodbye
How to install Root and start STAR Root demos with Windows NT
- Click the "START" button
- Select "Run"
- Type:
- \\hepburn\info\installation
- Double click "Root icon"
- Watch for Root banner:
- See Learning to User Root in STAR
- Read about using
"ROOT in Windows" by
Andrew Haas