Skip to content

Commit

Permalink
Some more fixes/improvements to script
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdkay committed Mar 5, 2020
1 parent 79cfded commit 952ac60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ data/RootFiles/
*.root
*.lund
build/
*_job.txt
*_job.txt
Config_EIC_*
8 changes: 5 additions & 3 deletions run_EIC_batch.csh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
set FileNum=$1
set NumEvents=$2
echo "Running target polarisation up, FF setting for file $FileNum with $NumEvents events per file"
sed -i 's/"file_name" \:.*/"file_name" \: "DEMPGen_'$NumEvents'_'$FileNum'",/' Config_EIC.json
sed -i 's/"n_events" \:.*/"n_events" \: '$NumEvents',/' Config_EIC.json
cp Config_EIC.json Config_EIC_$FileNum.json
sed -i 's/"file_name" \:.*/"file_name" \: "DEMPGen_'$NumEvents'_'$FileNum'",/' Config_EIC_$FileNum.json
sed -i 's/"n_events" \:.*/"n_events" \: '$NumEvents',/' Config_EIC_$FileNum.json
cd data/
./../build/DEMPgen ../Config_EIC.json
./../build/DEMPgen ../Config_EIC_$FileNum.json
sleep 5
mv "LundFiles/eic_input_DEMPGen_"$NumEvents"_"$FileNum".dat" "LundFiles/eic_DEMPGen_"$NumEvents"_"$FileNum".lund"
rm -rf ../Config_EIC_$FileNum.json

0 comments on commit 952ac60

Please sign in to comment.