Skip to content

1. The Genesis Device: Madgraph

Jonathan Guiang edited this page Mar 23, 2022 · 11 revisions

All of the code here is taken from the 2022 CMSDAS example. However, it has been consolidated for simplicity. In particular, we will take the following steps using the code contained in the madgraph directory in this repository to make a gridpack.

  1. Create a new set of cards for a process called PROCESS
cd cards
mkdir PROCESS_4f_LO
cp WpToLNu_4f_LO/WpToLNu_4f_LO_run_card.dat PROCESS_4f_LO/PROCESS_4f_LO_run_card.dat
cp WpToLNu_4f_LO/WpToLNu_4f_LO_proc_card.dat PROCESS_4f_LO/PROCESS_4f_LO_proc_card.dat
  1. Edit the process card appropriately
  2. Create a gridpack
./mkgridpack.sh PROCESS_4f_LO cards/PROCESS_4f_LO local
  1. Check that the gridpack is good; the following command should produce an LHE file
mkdir temp
cd temp
tar xf ../PROCESS_4f_LO_slc7_amd64_gcc700_CMSSW_10_6_0_tarball.tar.xz # contains runcmsgrid.sh
./runcmsgrid.sh $NEVENTS $RANDOMSEED $NCPU
head cmsgrid_final.lhe # make sure that the file has content
cd ..
rm -rf temp
  1. Clean up
rm -rf PROCESS_4f_LO
rm -rf PROCESS_4f_LO.log
  1. Move the gridpack to Ceph (if it's large enough)

Clone this wiki locally