Skip to content

Commit

Permalink
Merge pull request #10 from mfasDa/hotfix-stableparticles
Browse files Browse the repository at this point in the history
Few more bug fixes
  • Loading branch information
preghenella authored Oct 14, 2020
2 parents e06ee19 + 88560f4 commit 475d20e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions aligenmc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ par_k() {

par_K() {
help "set ktmax"
setvar KTMAX
}

# initialisation
Expand Down
2 changes: 1 addition & 1 deletion gen/herwig/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gen_herwig(){
run_in_env 'Herwig --repo=${HERWIG_ROOT}/share/Herwig/HerwigDefaults.rpo read herwig.in' > setup.log
fi

run_in_env 'Herwig --repo=${HERWIG_ROOT}/share/Herwig/HerwigDefaults.rpo run herwig.run -N ${NEV} --seed ${SEED}' > hwgen.log
run_in_env 'Herwig --repo=${HERWIG_ROOT}/share/Herwig/HerwigDefaults.rpo run herwig.run -N ${NEV} --seed=${SEED}' > hwgen.log
;;
*)
help "Herwig 7"
Expand Down
4 changes: 2 additions & 2 deletions gen/herwig/generate_hwgin.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ def GenerateHerwigInput(outputfile, tune, cmsenegy, events, hepmcfile, ktmin, kt
# - Omega (3334)
# Also set corresponding antiparticles to stable
stableparticles = ["K0", "Kbar0", "Lambda0", "Lambdabar0", "Sigma0", "Sigmabar0",
"Sigma+", "Sigmabar-", "Sigma-", "Sigmabar+", "Xi0", "Xibar0"
"Sigma+", "Sigmabar-", "Sigma-", "Sigmabar+", "Xi0", "Xibar0",
"Xi-", "Xibar+", "Omega-", "Omegabar+"]
for particle in stableparticles:
myfile.write("set /Herwig/Particle/{}:Stable Stable".format(particle))
myfile.write("set /Herwig/Particles/{}:Stable Stable\n".format(particle))

# In addition: stable particles with a lifetime > 10 mm (decay externally)
myfile.write("set /Herwig/Decays/DecayHandler:MaxLifeTime 10*mm\n")
Expand Down
2 changes: 1 addition & 1 deletion lib/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ run_in_env() {
fi
# alienv setenv ${GEN_PACKAGES} -c "$*"
else
/bin/bash -c "$*"
(eval $*)
fi
}

0 comments on commit 475d20e

Please sign in to comment.