Running BaBar Software on Local Computers
Explanation:I recently started using the BaBar software on the local computers and could find no information on the web about how to get going. These notes are intended to be a useful starting point for anyone attempting to follow in my footsteps. I will endeavour to update this page as I learn more about what a "typical setup" involves, and which bits were user-specific.
Feedback welcome: email@example.com
Note: These notes assume that the user has a SLAC account set up already. See here for instructions about setting up a SLAC Unix account.
Manchester only (will vary for different institutes): Need to ssh into sun1 - can only run on the suns.
ssh sun1 -l
Need the environment set up - do this by adding the following lines to .profile:
if [-r /home/bfactory/babar_profile]; then . /home/bfactory/babar_profileThe PCs run with bash shells - these have a few differences to t-shells, which are used at SLAC and in Oxford, among other places. A few of these differences are:
|tsch command/file||equivalent bash command/file|
On my setup, currently ssh-ing into the sun doesn't source the .profile file, so need to do this as soon as you log in with
This will set up the environment variables such the repository ($CVSROOT) so that you will access the Rutherford Lab mirror site for jobs like addpkg.
Before you can start checking out packages, or even setting up a test release, you need to get a "token" at RAL. You can do this by typing
You can check code out much more quickly from RAL than from SLAC. The repository $CVSROOT should have been set by the local system to be the RAL site. To check that it is set correctly, type
echo $CVSROOTIf it's not set to /afs/rl.ac.uk/bfactory/repo, type
export CVSROOT="/afs/rl.ac.uk/bfactory/repo"from the Unix prompt.
Once you get your new accounts and passwords, the password on the Atlas Central AFS server can be changed by logging into, e.g. csfsun, and typing kpasswd. The CSF password is changed by logging into csfsun and typing passwd.
To use the SLAC repository for checking out packages:
After running source .profile, you need to change the environment variable $CVSROOT which is set at when you run .profile. Do this with
export CVSROOT="/afs/slac.stanford.edu/g/babar/repo"Then klog into SLAC to get a token there. If your username at SLAC is the same as your username on the local machine, use kslac, else you will need
klogNow you can install a test release and get working!
Much of the information about setting up new releases is easy to find in the BaBar Offline Workbook.
Next step (for example):
newrel -t currentYou can now also add new packages. For example, the workdir package should be accessible and runable now, by typing (from inside your test release called <projectname>):
addpkg workdir cd workdir gmake setupNote: It is suggested in User's Guide to Software Release Tools by John Bartlet (which is obsolete now), and on a few other web pages, to have a go at running bbrun and bbsim. Don't - these programmes should not be run as standalone.
Note: It might also be necessary to run gmake in the release directory to set up appropriate files. To see if this is needed, check that the above setup has created files in a directory called /database/usersdb/<username>/<releasenum>/. If not, then you'll need to run gmake to complete the setup.
Note:When you do addpkg workdir, a number of directories will be created, namely /databases/usersbin/<username>. When I was first adding the package workdir I got a lot of error messages saying it couldn't create this directory, or any subdirectories. I tried to do it with mkdir, but this also failed. Seems I didn't have the required permissions - need a local sysadmin to fix this up.
Everything should work ok now <clinging to wood>
What to do each time on login
cdAlso need to remember to start each session with
srtpath (don't need to do , , as it picks out optimal ones for you) setboot (if you are using Objectivity)
- If you have a RAL account
ssh sun1 (ssh into which ever local computer runs the BaBar software) source .profile klog
@rl.ac.uk cd srtpath setboot
- If you don't have a RAL account
ssh sun1 source .profile klog
@slac.stanford.edu cd srtpath setboot export CVSROOT="/afs/slac.stanford.edu/g/babar/repo"
for Offline BaBar Users
BaBar Collaboration Home Page (UK Mirror)
|Last modified: Mon 30 Oct 2000||Jenny Williams||Email: firstname.lastname@example.org|
Last modified Fri 24 October 2003 . View page history
Switch to HTTPS . Website Help . Print View . Built with GridSite 2.2.6