| 1 | = '''Taiwan School on MadGraph for LHC Physics''' = |
| 2 | |
| 3 | == Lectures and tutorials (to be posted) == |
| 4 | * [wiki:SchoolNTU/MadGraph Event generation with MadGraph 5] |
| 5 | * [wiki:SchoolNTU/PsMlm MLM matching with MadGraph] |
| 6 | * [wiki:SchoolNTU/FeynRules FeynRules] |
| 7 | |
| 8 | == Installation of the needed software == |
| 9 | |
| 10 | In order to be efficient during the time of the school, we would like to ask you to install all the software packages that you will need during the school in advance. |
| 11 | If you have any difficulties, please contact Olivier Mattelaer at the following address: olivier.mattelaer@uclouvain.be or Johan Alwall at jalwall@ntu.edu.tw. |
| 12 | |
| 13 | === Windows === |
| 14 | The different program are foreseen to run on !Linux/Mac. If you don't have Linux or Mac, the best solution is to install Linux (I would advice to install Ubuntu) in dual boot and follow the instructions for Linux. |
| 15 | This video might help you to do so: http://video.google.com/videoplay?docid=-2369893842637434537 |
| 16 | |
| 17 | === Linux === |
| 18 | |
| 19 | 1. '''Basic requirements''' |
| 20 | * perl |
| 21 | * bash |
| 22 | * gfortran 4.x (To check the version do gfortran do: gfortran --version) |
| 23 | Those programs are by default present in any linux distribution, |
| 24 | but just in case you should check that they are all installed in your computer. If they are not, |
| 25 | you can use apt-get/yum/... in order to have those. |
| 26 | |
| 27 | 2. '''Madgraph 5''' |
| 28 | * '''python 2.6/2.7'''[[BR]] |
| 29 | !MadGraph 5 requires python 2.6 or python 2.7. In order to check your version of python, you can type: |
| 30 | python --version. Some of the repositories are still on python 2.5. So if updating python via your repository manager didn't work. |
| 31 | you can download directly python from the following link: |
| 32 | http://www.python.org/download/ |
| 33 | and follow instructions. |
| 34 | * '''Madgraph5'''[[BR]] |
| 35 | You will find madgraph5 package on the following page: https://launchpad.net/madgraph5. |
| 36 | For this program, you just need to untar it. |
| 37 | To check if mg5 is correctly install you directly try to run it by doing: |
| 38 | ./bin/mg5 |
| 39 | If you don't have a valid python version. It will fail directly. |
| 40 | * '''Root''' [[BR]] |
| 41 | Root is require, in order to make some of the plots in !MadEvent. |
| 42 | Except if you are in SLC4 or SLC5 distribution, you will need to install root from scratch on your computer. |
| 43 | The current last verstion of Root is 5.30, which you can download from here: ftp://root.cern.ch/root/root_v5.30.02.source.tar.gz |
| 44 | After Un-packing, follow the instruction of the file README/INSTALL. |
| 45 | Finally you should edit the file ~/.bashrc, by adding the following line into it |
| 46 | {{{ |
| 47 | export ROOTSYS=PATH_TO_YOUR_UNPACK_DIRECTORY |
| 48 | export PATH=$PATH:$ROOTSYS:$ROOTSYS/bin |
| 49 | }}} |
| 50 | |
| 51 | |
| 52 | 3. '''Pythia/pgs/MadAnalysis''' |
| 53 | In order to install those programs, you need to launch mg5 (./bin/mg5) and then type |
| 54 | {{{ |
| 55 | install pythia-pgs |
| 56 | install MadAnalysis |
| 57 | }}} |
| 58 | |
| 59 | 4. '''!FeynRules''' |
| 60 | * '''Mathematica''' |
| 61 | This program is NOT free, but your university should have the possibility to provide a license for you. Please contact your IT team. |
| 62 | * '''!FeynRules''' |
| 63 | Please download the Feynrule package (mathematica package): http://feynrules.irmp.ucl.ac.be/downloads/feynrules-current.tar.gz |
| 64 | |
| 65 | === !MacOs === |
| 66 | |
| 67 | 1. '''Basic requirements''' |
| 68 | * perl |
| 69 | * bash [[BR]] |
| 70 | Those programs are by default present in any Mac distribution, |
| 71 | but just in case you should check that they are all installed in your computer (by doing perl --version). |
| 72 | * gmake [[BR]] |
| 73 | By default, makefile are not recognize on mac. In order to check, you can do 'make --version'. If it says: |
| 74 | -bash: make: command not found |
| 75 | then you should install it. The easiest is to install the xcode. |
| 76 | 1. For !MacOs 10.5: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20414 |
| 77 | 2. For !MacOs 10.6: http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20792 |
| 78 | 3. For !MacOs 10.7: http://itunes.apple.com/us/app/xcode/id448457090?mt=12 |
| 79 | In order to be able to download it, you will need to a apple developer account (which is free) |
| 80 | * gfortran 4.x (To check the version do gfortran do: gfortran --version) |
| 81 | This program is often not included in standard mac version. In order to download it, you can download it from: |
| 82 | a. http://prdownloads.sourceforge.net/hpc/gcc-lion.tar.gz?download for !MacOs 10.7 |
| 83 | b. http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz?download for !MacOs 10.6 |
| 84 | c. http://sourceforge.net/projects/hpc/files/hpc/gcc/gcc-leopard-intel-bin.tar.gz/download for !MacOs 10.5 |
| 85 | |
| 86 | 2. '''!MadGraph5''' |
| 87 | * '''python''' |
| 88 | a. The default python version of !MacOs 10.6 is python 2.6 and is (in 99% of the case) fully working with Madgraph5, so nothing to install for you. |
| 89 | b. The python version of !MacOs 10.7 is python 2.7. We never test this python version with MG5 but in principle it should be fine. |
| 90 | c. For other version of MacOS, you will need to install python2.7 from the python web site: http://www.python.org/download/ |
| 91 | * '''Madgraph5'''[[BR]] |
| 92 | You will find madgraph5 package on the following page: https://launchpad.net/madgraph5. |
| 93 | For this program, you just need to untar it. |
| 94 | To check if mg5 is correctly install you directly try to run it by doing: |
| 95 | ./bin/mg5 |
| 96 | If you don't have a valid python version. It will fail directly. |
| 97 | * '''Root''' [[BR]] |
| 98 | Root is require, in order to make some of the plots in !MadEvent. |
| 99 | a. for !MacOs 10.5, you can install this version: ftp://root.cern.ch/root/root_v5.26.00.macosx105-i386-gcc-4.0.tar.gz |
| 100 | After unpacking the directory. you will need to performed the two following action in the terminal |
| 101 | {{{ |
| 102 | cd |
| 103 | emacs .bash_profile |
| 104 | }}} |
| 105 | The last command will open a terminal, add in this file the following line: |
| 106 | {{{ |
| 107 | export ROOTSYS=PATH_TO_YOUR_UNPACK_DIRECTORY |
| 108 | export PATH=$PATH:$ROOTSYS:$ROOTSYS/bin |
| 109 | }}} |
| 110 | In order to exit the emacs editor, you need to do CTRL-X CTRL-S (this will save your modification) and after CTRL-X CTRL-C. Finally in your terminal you will need to type |
| 111 | {{{ |
| 112 | source .bash_profile |
| 113 | }}} |
| 114 | b. for !MacOs 10.6 (and maybe 10.7), you can install this version: ftp://root.cern.ch/root/root_v5.30.02.macosx106-i386-gcc-4.2.tar.gz .Then follow the instruction for !MacOs 10.5. |
| 115 | c. Otherwise, you will need to install from the source: ftp://root.cern.ch/root/root_v5.30.02.source.tar.gz |
| 116 | After Un-packing, follow the instruction of the file README/INSTALL. |
| 117 | |
| 118 | If the installation is successful, you will need to have root working. In order to test it type '''root''' in the terminal. If it's not fine, please install it from Source. |
| 119 | |
| 120 | |
| 121 | |
| 122 | 3. '''Pythia/pgs/MadAnalysis''' |
| 123 | In order to install those programs, you need to launch mg5 (./bin/mg5) and then type |
| 124 | {{{ |
| 125 | install pythia-pgs |
| 126 | install MadAnalysis |
| 127 | }}} |
| 128 | |
| 129 | |
| 130 | 4. '''!FeynRules''' |
| 131 | * '''Mathematica''' |
| 132 | This program is NOT free, but your university should have the possibility to provide a license for you. Please contact your IT team. |
| 133 | * '''!FeynRules''' |
| 134 | Please download the Feynrule package (mathematica package): http://feynrules.irmp.ucl.ac.be/downloads/feynrules-current.tar.gz |
| 135 | |