...
No Format |
---|
#!/bin/sh # work area export sim_work=~/sim # clhep installation area export CLHEP_BASE_DIR=${sim_work}/clhep # geant4 export G4INSTALL=${sim_work}/geant4/geant4.7.1 export G4SYSTEM=Linux-g++ # LCPhys export LCPHYS_BASE=${sim_work}/LCPhys # LCIO export LCIO=${sim_work}/lcio # if rebuilding LCIO export LD_LIBRARY_PATH=$LCIO/tools:$LCIO/bin:$PATH # Xerces-C++ installation area export XERCESCROOT=${sim_work}/xercesc export LD_LIBRARY_PATH=$XERCESCROOT/lib:$PATH$LD_LIBRARY_PATH # GDML export GDML_BASE=${sim_work}/GDML2/CPPGDML # LCDD export LCDD_BASE=${sim_work}/lcdd # SLIC export SLIC_BASE=${sim_work}/slic |
The above should be sufficient to "bootstrap" the environment for any future (re)builds of SLIC dependencies.
Running SLIC
To run SLIC once it is built, simply add the Xerces library location to your load path.
Then you can execute the binary from the SLIC_BASE directory.
No Format |
---|
...
export LD_LIBRARY_PATH=$XERCESCROOT/lib:$LD_LIBRARY_PATH
bin/Linux-g++/slic [args]
|
Tip | ||
---|---|---|
| ||
You should create a run script for your site, so that simply typing "slic" from the command line executes the simulator. A sample run script is found in $SLIC_BASE/scripts/run.sh. |
Done.
That's it. Happy simulating!
See links in the next section for more information.
If you think this guide could be improved in any way, then please contact the author
Someday, I will get around to packaging all of this as RPMs to save everyone the hassle.
Happy simulating...