Collider Analysis
Collider Analysis
For smooth compatibility, it is essential to download MadGraph files of version 3.x.x or higher. After extracting the files, move to the created folder. If you prefer a different version, please download it from https://launchpad.net/mg5amcnlo/+download.
$ wget https://launchpad.net/mg5amcnlo/3.0/3.5.x/+download/MG5_aMC_v3.5.0.tar.gz
$ tar -xzvf MG5_aMC_v3.5.0.tar.gz
$ cd MG5_aMC_v3_5_0
After running MadGraph, you need to install the Pythia8 package. During this process, you may encounter the message "LHAPDF was not found. Do you want to install LHAPDF6? (recommended) y/n >[y] [60s to answer]." In this case, you should type "y" to install LHAPDF6, which is the recommended option. Once the installation is complete, you can test if Pythia8 is working properly by simulating the pp > tt~ model.
$ ./bin/mg5_aMC
$ install pythia8
$ generate p p > t t~
$ output pptt
$ launch
$ 1
$ 0
$ 0
Download root from https://root.cern/install/dependencies/. If you use Ubuntu,
$ sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python libssl-dev
$ sudo apt-get install gfortran libpcre3-dev xlibmesa-glu-dev libglew-dev libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python-dev libxml2-dev libkrb5-dev libgsl0-dev qtwebengine5-dev
Download "Source distribution" from https://root.cern/releases/release-62406/.
$ wget https://root.cern/download/root_v6.24.06.source.tar.gz
$ tar -xzvf root_v6.24.06.source.tar.gz
Create a new folder, move to the newly created folder. Then generate a build file and execute it.
$ mkdir root
$ cd root
$ cmake ../root-6.24.06/ -Dgdml=ON -Dminuit2=ON -Droofit=ON -DPYTHON_EXECUTABLE=/your/directory/bin/python3
$ cmake --build . -- -j8
Set that the root is always working, adding the code below in the bashrc file, and then verify that ROOT is working properly.
$ vi ~/.bashrc
source /your/directory/root/bin/thisroot.sh
$ source ~/.bashrc
$ root
Download the fastjet from http://fastjet.fr/. Then unzip the file and move to the directory created during the extraction process. Configure the environment for the source file and compiling it, install the build file. If there is no problem, the "fastjet-install" folder created outside of the folder.
$ wget http://fastjet.fr/repo/fastjet-3.4.1.tar.gz
$ tar -xzvf fastjet-3.4.1.tar.gz
$ cd fastjet-3.4.1/
$ ./configure --prefix=$PWD/../fastjet-install --enable-allcxxplugins --enable-shared
$ make -j8
$ make install
Download "delphes_hack-3.5.0.tar.xz" from Google Drive, unzip the file and move to the directory created during the extraction process. Then generate a build file.
$ cd delphes_hack-3.5.0
$ make clean
$ make -j8
Download "delphes_code" from Google Drive, unzip the file and move to the directory created during the extraction process.
$ cd delphes_code
Modify the "FASTJET_DIR", "ROOT_DIR" and "DELPHES_DIR" of main Makefile, functions/src/Makefile, htness/src/Makefile, mt2/src/Makefile to suit.
FASTJET_DIR = /home/mhkim/Programs/fastjet3
ROOT_DIR = /home/mhkim/Programs/root6
DELPHES_DIR = /home/mhkim/Programs/delphes-3.4.2pre16
->
FASTJET_DIR = /your/directory/fastjet-install
ROOT_DIR = /your/directory/root
DELPHES_DIR = /your/directory/delphes_hack-3.5.0
Revise the main Makefile of the delphes_code. Copy the code below and drag and paste it from lines 43 to 68.
SOURCES=delphes_analy13_DNN.cc
OBJECTS=$(SOURCES:.cc=.o)
CC = g++
ExcName = delphes_analy13
######### RULES ####################
all:
cd functions/src; make
cd mt2/src; make
cd htness/src; make
make $(ExcName)
$(ExcName): $(OBJECTS)
$(CC) $(CXXFLAGS) $(OBJECTS) $(CXXLIBS) -o $@
.cc.o:
$(CC) $(CXXFLAGS) $(MODEL_OBJ) $(INCLUDES) -c $<
clean:
rm -f $(OBJECTS) $(ExcName)
proper:
rm -f $(OBJECTS) $(ExcName)
cd functions/src; make clean
cd mt2/src; make clean
Edit line 861 of delphes_analy13_DNN.cc to the path of hepmc.gz.
char *physics[nTrees] = {"/your/directory/tag_1_pythia8_events.hepmc.gz"};
Generate a build file. If the make is successfully performed, the delphes_analy13 and delphes_analy13_DNN.o are created. Then verify that Delphes is working properly.
$ make -j8
$ ./delphes_analy13 card.tcl Jet.csv Kinetic_variables.csv