This wiki is now closed and kept for historical purposes. Please visit the new wiki at https://lbne.bnl.gov/wiki/

WCSim on RACF

From DUSEL
Jump to navigationJump to search

This topic collects information on running WCSim on RACF. Following this will also set up ROOT and Geant4.

Shared Installation

WCSim + ROOT + Geant4 is installed into AFS using GARPI (see this and this).

AFS Access

To access AFS you need a token. Get this via:

klog

and provide your password. Tokens last for several days. If you command line errors you likely need to refresh your token.

Finding available releases

Currently releases are date-based. To see what releases are available you can list all of the setup scripts:

# Bash
ls /afs/rhic.bnl.gov/lbne/software/trunk/setup-*.sh
/afs/rhic.bnl.gov/lbne/software/trunk/setup-2010-06-10.sh
/afs/rhic.bnl.gov/lbne/software/trunk/setup-2010-06-08.sh 
...

# tcsh
ls /afs/rhic.bnl.gov/lbne/software/trunk/setup-*.csh
/afs/rhic.bnl.gov/lbne/software/trunk/setup-2010-06-10.csh
/afs/rhic.bnl.gov/lbne/software/trunk/setup-2010-06-08.csh 
...

Environment Setup

To setup your environment for one of the release do, for example:

# for bash
source /afs/rhic.bnl.gov/lbne/software/trunk/setup-2010-06-10.sh

# for tcsh
source /afs/rhic.bnl.gov/lbne/software/trunk/setup-2010-06-10.csh

At this point "WCSim" "root" are in your PATH.

Build Notes

Selection of recent YYYY-MM-DD builds. Most recent release is 2010-06-10. (update this template when new ones are made)

2010-06-10
Geant4.9.3p01, ROOT 5.26/00b, WCSim release-0.3.1 (r176)
2010-06-08
Geant4.9.2p03, ROOT 5.22/00d, WCSim release-0.2.1 (r172 with 64 bit fix (-fPIC added))

See WCSim Releases on RACF for details of what "release-X.Y.Z" means.

Personal copy of WCSim

You can (and should) develop your own copy of WCSim against the centrally installed ROOT and Geant4. The basic steps are:

  1. source a setup-YYYY-MM-DD.sh file
  2. set additional variables as below
  3. build the code as described in this topic

Extra Environment Needed

After sourcing the central release setup script most of the required environment variables will be correctly set for you. You will need to set the following additional ones:

G4WORKDIR
set this to where you want your resulting WCSim executable to be installed. An example:
export G4WORKDIR=$HOME/wcsim   # bash
setenv G4WORKDIR $HOME/wcsim   # tcsh

An alternative suggestion is to set it like

export G4WORKDIR=.   # bash
setenv G4WORKDIR .   # tcsh

which will cause WCSim to be installed in the source directory.

PATH
you must set the location to the resulting WCSim to the beginning of your path. Otherwise you will continue to run the version from the central installation.
PATH=$G4WORKDIR/bin/$G4SYSTEM:$PATH               # bash
setenv PATH ${G4WORKDIR}/bin/${G4SYSTEM}:$PATH    # tcsh

As a check, after building WCSim these commands should point to the same executable:

which WCSim
ls $G4WORKDIR/bin/$G4SYSTEM/WCSim