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

WCSim

From DUSEL
Jump to navigationJump to search

Notice:

This information is obsolete. For information about WCSim, see its home at GitHub:

https://github.com/wcsim/



WCSim is a Geant4 based detector simulation application.


Automated Installation

For an automated installation see the topic on Garpi Based WCSim. This is the recommended method.

Cluster Installation

RACF

For instructions on how to used pre-installed WCSim on collaboration clusters see:

FNAL

For instructions on how to use pre-installed WCSim on the Fermilab interactive and batch machines, see:

Manual Installation

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 (chris.walter@duke.edu) for an SVN account.

Compiling

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:

G4INSTALL
points to where Geant4's lib/, include/ and config/ directories are
G4SYSTEM
defines the platform (eg "Linux-g++")
G4WORKDIR
where output of building the application goes
CLHEP_BASE_DIR
where CLHEP (also needed for Geant4) is installed

Setup for ROOT

After installing ROOT you must set these environment variables:

ROOTSYS
where ROOT is installed
PATH
add location where root-config lives

Building WCSim

Type:

make clean
make rootcint
make

Note: make clean is needed even if you have yet to build the code.

Running the application

The application assumes a file

vis.mac

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

sample-root-scripts

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.