Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Installing using ilcinstall

SLIC is

JLab Installation

An old version of SLIC is installed at SLAC and JLab:

No Format
/nfs/slac/g/lcd/mc/prj/sw/dist/SimDist/pro/scripts/slic.sh
No Format
/home/clashps/HPS_Software/SimDist/scripts/slic.sh

New instructions

Instead of "SimDist", SLIC is now installed using the ilcinstall tool. It only , which requires a local install of Python, which is the case for nearly all .  Most distributions of Linux and Mac OS X should have Python installed by default. Currently there is no support for Windows.

Obtain the installation code with:

...

You now want to edit the file examples/slic/hps-versions.py to set the location where the software is installed. Edit the line:

Code Block
ilcsoft_install_prefix = "/scratch/$USER/slic/"

to set the ilcsoft_install_prefix to the desired location.

Next you run the installer with:

Code Block
python ilcsoft-install -i ./examples/slic/hps-scratch.cfg

(This takes a long time, as it compiles the code, including a full Geant4 distribution, and downloads a lot of data and builds the code.

You may want to background it with "nohup python the build with a command like:

No Format
nohup python ilcsoft-install -i ./examples/slic/hps-scratch.cfg >& Install.log

...

 &

...

Info

If you get a Python error that states that something is not found, try unsetting your PYTHONPATH first, with "unset PYTHONPATH"

You Once the build completes successfully, you can now run slic as follows: 

Code Block
source /scratch/jeremym/slic/v00-00/init_ilcsoft.sh 
$SLIC/build/bin/slic [args]

There are more complicated complete instructions at the web page for IlcInstall at http://ilcsoft.desy.de/portal/software_packages/ilcinstall/.

Installing

...

with Qt support

SLIC can be installed supporting Qt which can be useful when looking at geometries interactively. These instructions worked for Qt 4.8.5 and slic hps_v01-00-02 tag on a mac os x (Lion) with gcc i686-apple-darwin11-llvm-gcc-4.2

...

To use the nice visualization tool add the following to the macro:

Code Block
/vis/open OGLI

Old Instructions for SLIC

Follow the instructions here.

The instructions linked to above need to have a few amendments:

...