GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PANDA - Computing » Grid and Infrastructure » Upcoming DC
Re: Upcoming DC [message #6283 is a reply to message #6281] Mon, 07 April 2008 18:49 Go to previous messageGo to previous message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *KVI.nl
Hi all,

To run DPM is not so difficult, since we anyway run from a (bash) script. The jdl scripts can take arguments, which can be passed to the shell scripts. Actually, last time we run the DPM generator in combination with fast simulations.

Just make sure that also the macros use input parameters (random number see, input filename, outputfilename, energy,..), then it is very trivial (see example below).

(ps, we might have to think a little bit more about the random number seed. I am not sure whether one can take any number for that)


Johan

-- example shell scripts called by JDL --

#!/bin/bash
#
# $1 unique number for seed
# $2 momentum
# $3 number of events
#
#
echo "This is the fast simulation test production"
echo "provided by Johan Messchendorp"

echo "Starting the job"

export RANSEED=`expr 1202677345 + $1`

cat <<EOF >input.$1
$RANSEED
$2
1
$3
EOF

cat input.$1
DPMGen < input.$1

root -b -q "simfast_jgm.C(\"Background-micro.root\",0,$3,\"simfast_jgm.root\")" ||
exit 11
echo "----------------------------------------------------------------------- "
echo "From wrapper script: job finished successfully"

[Updated on: Mon, 07 April 2008 20:31]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vmplayer and Grid
Next Topic: Please run the MonALISA Toolbar
Goto Forum:
  


Current Time: Tue Sep 21 18:29:13 CEST 2021

Total time taken to generate the page: 0.02642 seconds