SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
Workbook HEPIC Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Wkbk. Search
Wkbk. Sitemap
Introduction
Non SLAC
HOWTO's
Introduction
Logging In
QuickTour
Detector
Info Resources
Software Infrastructure
CM2 Introduction
Unix
OO
SRT
Objectivity
Event Store
Framework
Beta
Modifying Code
Writing and Editing
Compiling
Debugging
Analysis
Framework II
Analysis
Find Data
Batch Processing
PAW
PAW II
ROOT I
ROOT II
ROOT III
Advanced Infrastructure
New Releases
Workdir
Main Packages
Event Displays
Gen/Sim/Reco
Contributing Software
SRT and CVS
Coding
Advanced Topics
Make CM2 Ntuples
New Packages
New Packages 2
Persistent Classes
Java
Site Installation
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)

Workbook for BaBar Offline Users - Users with Existing csh and tcsh Accounts

The following instructions tell you how to set up HEPiX for an already existing account using csh or tcsh.

Users with new accounts should instead follow the instructions in Logging In.

Users with already existing accounts using bsh, bash, korn or zsh should instead follow the instructions in for Users with Existing bsh, bash, korn or zsh Accounts

Do not log out after you make these changes. Keep the existing session up and start a new session to check that your log in still works properly. If the new log in has problems, you will want your original session to make any corrections.

To repeat: after you make the changes, do not log out until you have tested them with a separate session.

Copy your $HOME/.cshrc and $HOME/.login just in case you need to go back to them:

   > cd $HOME
   > cp .cshrc original.cshrc
   > cp .login original.login

Create the directory .hepix and insert the file that identifies babar as the preferred group. This will cause the BABAR-specific environment to be established.

   > mkdir $HOME/.hepix
   > cp /afs/slac/g/babar/etc/hepix/Newuser/preferred-group $HOME/.hepix

Add the following lines at or near the beginning of your .cshrc file:

   if ( -r /usr/local/lib/hepix/central_env.csh ) then
     source /usr/local/lib/hepix/central_env.csh
   endif

If you currently call the BABAR login scripts in your .cshrc, remove them. This obsolete code may look like any of the following lines (other variations are possible):

   source /nfs/juno/u5/etc/profile/.babar_environ
   source /afs/slac.stanford.edu/g/babar/etc/profile/.babar_environ
   source $BFPROFILE/.babar_slac
   source /nfs/juno/u5/etc/profile/.bfcshrc
   source /afs/slac.stanford.edu/g/babar/etc/profile/.bfcshrc

If you currently call the SLAC environ script, remove it. This obsolete code may look like:

   eval `/usr/local/bin/environ /bin/tcsh -i${?prompt} motif -e emacs:vi`

Look through your .cshrc file for other BaBar-related items, such as defining environmental variables (setenv BF...) or setting up the SRT system:

   source $BFROOT/dist/releases/current/SoftRelTools/SRTstartup.csh
In most cases, all of this stuff may be safely discarded. If you do not know if you need this or not, it is probably safe to discard it.

Add the following code at or near the beginning of your .login file:

   if ( -r /usr/local/lib/hepix/central_login.csh ) then
     source /usr/local/lib/hepix/central_login.csh
   endif

If you currently call the BABAR login script from your .login, remove it. The code will look similar to the that in the steps above, but with names like .bflogin.

This completes the HEPiX setup.

Test the new setup from a separate session before you log out.

If you need to back out of the changes, restore your original $HOME/.cshrc and $HOME/.login:

   > cd $HOME
   > cp original.cshrc .cshrc
   > cp original.login .login

Once you have demonstrated that you can open a new session, exit the old session.


Back to Logging In

Author: Joseph Perl
Page maintained by: Jenny Williams

Last modification: 21 March 2001
Last significant update: 23 December 1998