Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions bin/MadGraph5_aMCatNLO/gridpack_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ make_gridpack () {
#get needed BSM model
if [[ $model = *[!\ ]* ]]; then
echo "Loading extra model $model"
wget --no-check-certificate https://cms-project-generators.web.cern.ch/cms-project-generators/$model
wget --no-check-certificate https://cms-project-generators.web.cern.ch/cms-project-generators/$model
cd models
if [[ $model == *".zip"* ]]; then
unzip ../$model
Expand Down Expand Up @@ -522,6 +522,11 @@ make_gridpack () {
if [ -e $CARDSDIR/${name}_madspin_card.dat ]; then
cp $CARDSDIR/${name}_madspin_card.dat ./Cards/madspin_card.dat
fi

if [ -e $CARDSDIR/${name}_MadLoopParams.dat ]; then
cp $CARDSDIR/${name}_MadLoopParams.dat ./Cards/MadLoopParams.dat
fi


echo "shower=OFF" > makegrid.dat
echo "reweight=OFF" >> makegrid.dat
Expand Down Expand Up @@ -577,15 +582,19 @@ make_gridpack () {
#######################

echo "starting LO mode"

if [ -e $CARDSDIR/${name}_MadLoopParams.dat ]; then
cp $CARDSDIR/${name}_MadLoopParams.dat ./Cards/MadLoopParams.dat
fi


echo "done" > makegrid.dat
echo "set gridpack True" >> makegrid.dat
if [ -e $CARDSDIR/${name}_customizecards.dat ]; then
cat $CARDSDIR/${name}_customizecards.dat | sed '/^$/d;/^#.*$/d' >> makegrid.dat
echo "" >> makegrid.dat
fi
echo "done" >> makegrid.dat

# set +e
cat makegrid.dat | ./bin/generate_events pilotrun
echo "finished pilot run"
Expand Down