STAR   Computing Tutorials main page
Setting up your offline computing environment
Offline computing tutorial Maintained by T. Wenaus

Setup for the offline environment

Your ROOT environment is set up by a STAR-standard .rootrc file in $ROOTSYS/.rootrc

Set up your PAW/STAF environment by copying the file $STAR/mgr/.pawlogon.kumac to your home directory: ~/.pawlogon.kumac. If you already have this file, then add the following aliases:

            alias/create make 'exec $STAR/mgr/make' C
            kuip/alias/create ls   dui/ls c
            kuip/alias/create cd   dui/cd c
This sets up aliases for make, call, ls, cd,etc. that are needed by STAF & PAW.

Get an AFS token. In general, before working with code and/or running root4star you should do a klog to get an AFS token. A convenient way to do this semi-automatically is to insert

     if ($?prompt) then
       if ( -e /usr/afsws/bin/tokens ) then
         if ( "`/usr/afsws/bin/tokens | grep rhic | grep Expires`" == "" ) then
           echo No token, doing klog
           /usr/afsws/bin/klog `whoami` -cell rhic
right at the top of your .tcshrc file. This will query you for your AFS password -- iff you need a token -- when you log in.

Select your release version

As described in the release organization and policy document there are five release versions maintained at any given time: dev, new, pro, old. The recommended version for end users is pro. If you are making use of very new software or you're working at the bleeding edge of development you may need to use new or dev.

The default that is set up by the standard login is pro. To see what version you're set up to use, type 'which root4star' or 'STAR_LEVELS'.

To change to another version ==>
If you want to use something other than pro, issue from your .tcshrc or at the command line one of the commands
stardev, starnew, starpro, starold.

To see what version maps to what software library look in $STAR_PATH.Versions dev, new, pro etc. are links pointing to release directories SL*.

   ls -al $STAR_PATH

  shows (10/2/98)
lrwxr-xr-x   1 fisyak   root           5 Sep 17 17:02 dev -> SL98i
lrwxr-xr-x   1 fisyak   root           5 Sep 17 17:02 new -> SL98h
lrwxr-xr-x   1 fisyak   root           5 Sep 28 09:13 old -> SL98g
lrwxr-xr-x   1 fisyak   root           5 Sep 28 09:13 pro -> SL98h

Set up a workspace

Set up a working directory, eg. mkdir ~/workdir and cd to it.

You should now be able to invoke ROOT or STAF; type root4star or staf to check.