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

Compare with Current View Page History

« Previous Version 7 Next »

JLab Installation

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

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

New instructions

Instead of "SimDist", SLIC is now installed using the ilcinstall tool. It only requires a local install of Python, which is the case for nearly all distributions of Linux and Mac OS X. 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/release-versions.py to set the location where the software is installed. Edit the line:

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

to set the ilcsoft_install_prefix to the desired location.

Next you run the installer with:

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

(This takes a long time, it downloads a lot of data and builds the code. You may want to background it with "nohup python ilcsoft-install -i ./examples/slic/hps-scratch.cfg >& Install.log &" instead.)

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

You can now run slic as follows: 

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

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

Installing SLIC 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

 

  1. Install Qt
  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.

  3. Complete the slic installation as per above instructions.

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

/vis/open OGLI

Old Instructions for SLIC

Follow the instructions here.

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

  • Make sure your "cmake" copy is 2.8 or newer. At jlab, see ~clashps/local_packages/bin for a copy of cmake. You need to add this to your PATH before running "configure".
  • You need direct access to svn.freehep.org and cvs.freehep.org over ports 2401 and 3690. This is now fixed at Jlab for "jlabl1" (2013-03-11), your own system may or may not have this difficulty. If blocked:
  • No labels