You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Along with other software for LCD research, a common distribution of the
SLIC simulator package is available for SLAC NFS users.

From a Unix terminal, open a connection to noric-new and login.

ssh noric-new

Now, switch to the bash shell.

bash

You need to setup the project environment to access the common software
distribution.

source /nfs/slac/g/lcd/mc/prj/bin/prj.sh

Now, you should be able to run slic from $PRJ_BIN.

slic arguments

To see available command line options, invoke the help command.

slic --help

There are a number of different ways to run SLIC, including purely
macro or command-line driven.

For instance, here is a command to load the SDJan03 test geometry
and start an interactive terminal.

slic -g $PRJ_DIST/slic/current/examples/sdjan03/SDJan03.lcdd -z -n

Now, in order to have a work area for your SLIC usage, checkout the
package from CVS.

export CVSROOT=:pserver:anonymous@cvs.freehep.org:/cvs/lcd
cvs co slic
cd slic

Within this directory, you will be able to write LCIO files.

This is an example of visualizing a single muon event in the SDJan03 test
detector using GPS. From your slic directory, execute the following
commands.

slic -g examples/sdjan03/SDJan03.lcdd -z -n
Idle>/control/execute macros/vis_gl.mac
Idle>/control/execute macros/gps.mac
Idle>/run/beamOn

You could also dump a heprep.

Idle>/control/execute macros/heprep2.mac

Or you may want to check for overlaps in the detector.

Idle>/geometry/test/recursive_test

A purely macro-driven job can be executed from the slic directory like so.

slic macros/sdjan03_dbg.mac

In general, a minimalist SLIC session will be started as follows.

slic -g /path/to/geometry/file -z -n

The -z option tells SLIC to initialize the simulator at that
point and -n will start an interactive session.

If you need access to SLAC NFS, contact unix-admin@slac.stanford.edu.

  • No labels