The following commands are tested on the LPC cluster, using the bash shell.
You can run echo "$SHELL"
to check that you are indeed running bash.
export GENTUTPATH=${HOME}/nobackup/GENTUTORIAL
export GENMGPATH=${GENTUTPATH}/standalone-tut/MG5_aMC_v2_9_18
export GENGRIDPACKPATH=${GENTUTPATH}/gridpack-tut/genproductions
export GENSHOWERPATH=${GENTUTPATH}/shower-tut
export GENPLOTPATH=${HOME}/GENTUTORIAL/plotter-tut
First create the Generator Tutorial session directory.
mkdir -p ${GENTUTPATH}
cd ${GENTUTPATH}
git clone https://github.com/sihyunjeon/generators-cmsdaslpc2024-git.git
Let’s start setting up CMS specific environments.
source /cvmfs/cms.cern.ch/cmsset_default.sh
cmsrel CMSSW_12_4_14_patch2
cd CMSSW_12_4_14_patch2/src
cmsenv
cd ${GENTUTPATH}
Now we will download MadGraph v3.5.2 to run it standalone before discussing “gridpack” which is how CMS produces the samples. This is to first demonstrate how MadGraph runs as it is before going deeper into CMS specifics.
mkdir -p ${GENTUTPATH}/standalone-tut
cd ${GENTUTPATH}/standalone-tut
wget https://cms-project-generators.web.cern.ch/cms-project-generators/MG5_aMC_v2.9.18.tar.gz
tar -xvf MG5_aMC_v2.9.18.tar.gz
rm MG5_aMC_v2.9.18.tar.gz
cd MG5_aMC_v2_9_18
As for the second step of tutorial, we will learn how “gridpacks” are how produced using MadGraph. To do this we need to clone the lite version genproductions repository.
mkdir -p ${GENTUTPATH}/gridpack-tut/
cd ${GENTUTPATH}/gridpack-tut/
git clone https://github.com/sihyunjeon/genproductions_lite genproductions
The full version genproductions is in (link)[https://github.com/cms-sw/genproductions]. Remember that we are using the lite version just in order to fetch the necessary files. For up-to-date and official CMS usages, use the link above instead.
Return back to the home path to start with standalone tutorial.
cd ${GENTUTPATH}/standalone-tut/MG5_aMC_v2_9_18
cp -r ${GENTUTPATH}/generators-cmsdaslpc2024-git/standalone ./
./bin/mg5_aMC standalone/setup.config
./bin/mg5_aMC standalone/install.config &> install.log &
When opening a new terminal screen
In case you escape from the current terminal and open a new one, always execute below before starting the exercises.
cd ${HOME}/nobackup/GENTUTORIAL/generators-cmsdaslpc2024-git/ source setup.sh