This wiki is now closed and kept for historical purposes. Please visit the new wiki at https://lbne.bnl.gov/wiki/
This information is obsolete. For information about WCSim, see its home at GitHub:
WCSim is a Geant4 based detector simulation application.
For an automated installation see the topic on Garpi Based WCSim. This is the recommended method.
For instructions on how to used pre-installed WCSim on collaboration clusters see:
For instructions on how to use pre-installed WCSim on the Fermilab interactive and batch machines, see:
Getting the code
The code is served from a SVN repository (you can use "guest"/"guest" for read only access) at Duke. To check it out do:
cd /path/to/working/direcotry svn co http://svn.phy.duke.edu/repos/neutrino/dusel/WCSim/trunk WCSim
For read/write access contact Chris Walter (email@example.com) for an SVN account.
To compile the application one needs Geant4 and ROOT installed and with your environment properly configured.
Setup for Geant4
After installing Geant4 you must set these environment variables:
- points to where Geant4's lib/, include/ and config/ directories are
- defines the platform (eg "Linux-g++")
- where output of building the application goes
- where CLHEP (also needed for Geant4) is installed
Setup for ROOT
After installing ROOT you must set these environment variables:
- where ROOT is installed
- add location where root-config lives
make clean make rootcint make
make clean is needed even if you have yet to build the code.
Running the application
The application assumes a file
to exist in the current working directory. An example is included with the code.
Analysis of output
There are example ROOT scripts in the directory
that can be used as starting points for your own analysis of the output.
ROOT TTree format
The output TTree format is documented starting page 10 of DocDB document#245. When reading this ignore the "JHF2km" prefixes.