Running Mokka simulations locally
Extensive sets of simulations are already available or can
Testing Mokka
This is described in the ILCSoft wiki. One can try quickly:
. /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
cd /afs/phas.gla.ac.uk/data/ilc/software/validation/StandardConfig/current
Mokka -M ILD_o1_v05 -e ./particle.tbl bbudsc_3evt.steer
Changing certain detector parameters
Detector parameters are taken from (a default) database. There are many versions of the ILC detectors. One can browse this database via the
Mokka Detector Model Database Browser
.
To change for example the number of layers in the
Hcal
, and the sensitive Si layer thickness in
Ecal
, one would add in the steering file
/Mokka/init/globalModelParameter Hcal_nlayers 36
/Mokka/init/globalModelParameter Ecal_Si_thickness 0.45
to the steering file and use the "-U" command line option to enable the change:
Mokka -M ILD_o1_v05 -U -e ./particle.tbl my_bbudsc_3evt.steer
Visualisation
To visualise the detector geometry set in the steering file for example:
/Mokka/init/BatchMode false
and then in Geant4 prompt type
/vis/open OGL
/vis/scene/create
/vis/drawVolume
/vis/viewer/set/viewpointThetaPhi 60 45
A good tutorial can be found
here
.
Running Mokka on the PPE batch farm
Here's a simple script (mokka_test.pbs) that runs the Mokka example on the PPE batch farm:
#PBS -N Mokka_test_1
#PBS -m abe
#PBS -M gary.smythe@glasgow.ac.uk
#PBS -q long5
echo "Running Mokka test 1 ..."
. /afs/phas.gla.ac.uk/data/ilc/software/ilcsoft/v01-14/init_ilcsoft.sh
cd /afs/phas.gla.ac.uk/data/ilc/software/validation/StandardConfig/current
Mokka -M ILD_o1_v05 -e ./particle.tbl bbudsc_3evt.steer
echo "Mokka test 1 done!"
To submit the job, in a shell type
qsub mokka_test.pbs