STAR   Computing  
ROOT in STAR
  Maintenance Valeri Fine

Learning to use ROOT for STAR

ROOT environment

To use ROOT framework some environment should be provided.

ROOT environment is set in two steps.

  1. set ROOTSYS environment variable (on UNIX machines it is done by STAR login script)
  2. Adjust the ROOT profile ".rootrc". This file contains some information ROOT consumes. ROOT looks for this file in

The last means if you do nothing special your ROOT defaults are defined via the $ROOTSYS/.rootrc profile. ROOT profile defines many useful parameters. For example it defines

Below we present the 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 ROOT executable) 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 to get:

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
(Sun Solaris and Linux only, for the moment)

How to quit STAR ROOT

To end the interactive ROOT session just type ".q" command as follows:

root [3] .q
This is the end of ROOT -- Goodbye

How to install ROOT and start STAR ROOT demos with Windows NT


ROOT integration into STAR offline

ROOT in STAR and RHIC

ROOT is under evaluation for use as an analysis tool in STAR, with possible application also for parts of the transient and persistent OO/C++ data model we plan to migrate to.
State of ROOT in STAR as of 6/23/98

ROOT-generated code documentation

ROOT web