Commit 8b87ba2b authored by Christian Gutschow's avatar Christian Gutschow
Browse files

add random-seed support [skip modfiles]

parent fbf276dd
Pipeline #2914595 passed with stages
in 1 minute and 36 seconds
......@@ -382,6 +382,7 @@ for dsid in "${newDSID[@]}" ; do
# Input
grep 'inputGeneratorFile' $tmpLogParserOut >> $dsiddir/log.generate.short
grep 'inputEVNT_PreFile' $tmpLogParserOut >> $dsiddir/log.generate.short
grep 'randomSeed' $tmpLogParserOut >> $dsiddir/log.generate.short
grep 'EVNT to EVNT' $tmpLogParserOut >> $dsiddir/log.generate.short
grep 'LHEonly' $tmpLogParserOut >> $dsiddir/log.generate.short
grep 'ATHENA_PROC_NUMBER' $tmpLogParserOut >> $dsiddir/log.generate.short
......
......@@ -71,7 +71,8 @@ metaDataDict={
'GenFiltEff =':[],
'sumOfNegWeights =':[],
'sumOfPosWeights =':[],
'Number of input LHE events =':[]
'Number of input LHE events =':[],
'randomSeed =':[],
}
generateTfDict={
......
......@@ -54,6 +54,9 @@ nEventsPerJob=$(python $ORIGDIR/scripts/jo_utils.py --parameter="nEventsPerJob"
# Number of events to run = max(1,0.01*nEventsPerJob)
nEvents=$(bc <<< "if (1-0.01*$nEventsPerJob >0) 1 else 0.01*$nEventsPerJob/1")
# random seed used for test production
randomSeed=$(grep 'randomSeed =' $DSID/log.generate.short | awk '{print $NF}')
# Check if it's an LHE-only jO
if [[ $(grep LHEonly $DSID/log.generate.short | awk '{print $NF}') == "True" ]] ; then
LHEonly=true
......@@ -176,6 +179,7 @@ fi
com="Gen_tf.py --ecmEnergy=$ecmEnergy \
--jobConfig=../$DSID \
--maxEvents=$nEvents"
if [ -z $randomSeed ] ; then com="$com --randomSeed=$randomSeed"; fi
if $LHEonly; then # LHE only generation
com="${com} --outputTXTFile=LHE.TXT.tar.gz"
else # EVNT generation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment