BSM model mg5 scripting for updating parameter changes
I'm writing a bash script to automate all the commands in a program I run but automatically editing a .dat file with all the values for standard model Lagrangian parameters
But, I am essentially wanting to run multiple interactive sessions at once, rather than one by one which is what it's doing atm, but it also has to update a parameter before every new session is opened which it's doing fine, but one by one atm.
It's doing :
Update parameter
Open interactive session
Execute other commands
Finish
Open new session
... Repeat
Rather than:
Update parameter
Open interactive session
Execute other commands in that session and run in that directory ...
move into new directory whilst previous interactive session is running
Update parameter
Open 2nd interactive session of mg5
Execute other commands in that session and run in that directory .. etc
Attached is my code:
how can I fix this?
thanks.
-------
#! /bin/bash
#Example loop for SMEFT cW EFT parameter values
mkdir "cW"
cd cW
for i in -1.0 -0.75 -0.50 -0.25 1.00000e-99 0.25 0.50 0.75 1.0
do
mkdir "parameter_
cp /home/smustafa/
find parameter_
mv -f parameter_
rm -r parameter_
#######
echo “Loading MG5 …”
~/SFNP/
import model SMEFTsim_
generate p p > Z Z j j QCD==0
add process generate p p > Z Z j j QCD==2
output EWK_QCD_
launch
shower = pythia8
0
set nevents 10
set ebeam1 7000
set ebeam2 7000
0
EOF
done
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was reopened
- by Saif Mustafa