Automating job submission
There's a script to simplify running Mokka simulations on the PPE compute farm. You can find it here:
/afs/phas.gla.ac.uk/data/ilc/datasets01/350gev/hzee/mokka_dp/run-ecal-run.sh
I run it like this
ppepc102> ./run-ecal-run.sh <#events> <geom_version> <gen_set>
for example ./run-ecal-run.sh 500 mdf1 1335_16 will run 500 events, using template hzee-steer-mdf1.tpl for the Ecal geometry, and hzee_gen_1335_16.stdhep as input.
One will have to customise a few settings before using it, and download the stdhep files for input. Can also define a few more Ecal geometries (see templates/) to play with.
The script will create the relevant mac, steer and PBS script files, and submit the job straight away. If you modify the script, it’s best to test your settings before actually submitting the jobs.
How to find the optimal number of events
One can use the stdhepjob utility from LCIO to count the number of events in the input .stdhep file, e.g.
ppepc102> stdhepjob hzee_gen_1335_16.stdhep /tmp/out.slcio -1
This will simply run over all events and print out how many were processed.
We found out that on our farm a 500 events jobs runs approximately 15h, so we could split the input in 2-3 runs by making use of /generator/skipEvents . |