Search/Navigation:
Related:
SLAC/EPP/HPS Public
Jefferson Lab/Hall B/HPS Run Wiki
S30XL-LESA/LDMX
Build instructions for installing from the github project are here:
https://github.com/slaclab/slic
SLIC is now installed using the ilcinstall tool, which requires Python. 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:
svn co https://svnsrv.desy.de/public/ilctools/ilcinstall/trunk/ ilcinstall
You now want to edit the file examples/slic/hps-versions.py to set the location where the software is installed.
Edit the line:
ilcsoft_install_prefix = "/scratch/$USER/slic/"
and set the ilcsoft_install_prefix to the desired installation directory.
Next, you run the installer with:
cd ilcinstall 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.
You may want to background the build with a command like:
nohup python ilcsoft-install -i ./examples/slic/hps-scratch.cfg >& Install.log &
If you get a Python error that states that something is not found, try unsetting your PYTHONPATH first, with "unset PYTHONPATH"
Once the build completes successfully, you can now run slic as follows:
source /scratch/jeremym/slic/v00-00/init_ilcsoft.sh slic [args]
There are more complete instructions at the web page for IlcInstall at http://ilcsoft.desy.de/portal/software_packages/ilcinstall/.
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
After following the above instructions but before running the ilcsoft-install commmand edit ./examples/slic/hps-scratch.cfg with
geant4.envcmake["GEANT4_USE_QT"]='ON' # requires qt geant4.envcmake["QT_QMAKE_EXECUTABLE"]='/usr/local/Trolltech/Qt-4.8.5/bin/qmake'
Note that your path to the Qt executable might be different.
To use the nice visualization tool add the following to the macro:
/vis/open OGLI