# Changes between Version 8 and Version 9 of MC4BSM

Ignore:
Timestamp:
04/06/12 16:33:29 (7 years ago)
Comment:

--

### Legend:

Unmodified
 v8 Installation instructions and pre-workshop exercises Instructions for the on-site exercise Final result from the on-site exercise [http://www.phys.ufl.edu/~matchev/mc4bsm6/ Links to all tutorial presented at the MC4BSM conferences] == !MC4BSM tutorial == == Installation instructions and pre-workshop exercises == The tutorial consists in implementing the so-called ''Hill Model'', described in [http://arxiv.org/abs/hep-ph/0603082 hep-ph/0603082], into !MadGraph, and to simulate the full chain down to PGS level events for a sample of ''tt~h'' events at the !LHC. A very brief description of the model can be found [attachment:MC4BSM_FeynRules.pdf here]. * The !MC4BSM [http://particle.physics.ucdavis.edu/workshops/doku.php?id=2009:mc4bsm_wishlist/ website]. === Implementing the model into !FeynRules === [http://feynrules.phys.ucl.ac.be/ FeynRules]  is a Mathematica® package that allows the calculation of Feynman rules in momentum space for any !QFT physics model. The Feynman rules calculated by the code can then be used to implement the new physics model into other existing tools, such as MC generators. Usefull material for the tutorial: * A ready-to-go !FeynRules model file for the Hill model: [attachment:HillModel.fr.tar.gz HillModel.fr.tar.gz]. * An example notebook of how to run !FeynRules: [attachment:MC4BSM.nb.tar.gz MC4BSM.nb]. * A short introduction to implementing new models into !FeynRules, and how to run the !MadGraph interface: [attachment:MC4BSM_FeynRules.pdf MC4BSM_FR.pdf]. === Generating parton level events with MG/ME === After the model has been implemented into !FeynRules, it can easily be exported to !MadGraph via the corresponding !FeynRules interface. The model can then be used just like any other built-in !MadGraph model. In this tutorial we use the !FeynRules implementation of the Hill model to generate a sample of ''pp>tt~h1'' events at the !LHC @ 14TeV. * A short introduction of how to import !FeynRules models into MG/ME: [attachment:MG_MC4BSM.pdf MC4BSM_MG.pdf]. === Decaying the BSM particles with BRIDGE === We can use [http://www.lepp.cornell.edu/public/theory/BRIDGE/ BRIDGE] to * Compute the branching ratios and the decay tables for the BSM particles contained in the Hill model. * Decay the ''tt~h1'' final state obtained in the previous step. === Pythis and PGS === Finally, we can run [http://home.thep.lu.se/~torbjorn/Pythia.html Pythia] and [http://www.physics.ucdavis.edu/~conway/research/software/pgs/pgs.html PGS] to obtained hadron-level and detector level events. === Install on Windows === 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. This video might help you to do so: http://video.google.com/videoplay?docid=-2369893842637434537 virtual machine are fine, but quite often the library readline is not present on the system. This package is not mandatory but allozs mg5 to have history and nice auto-completions. So you might consider to install that library first and the compile python2.6. === Install on Linux === * '''python 2.6/2.7'''[[BR]] !MadGraph 5 requires python 2.6 or python 2.7. In order to check your version of python, you can type: python --version. Some of the repositories are still on python 2.5. So if updating python via your repository manager didn't work. you can download directly python from the following link: http://www.python.org/download/ and follow instructions. * '''Madgraph5'''[[BR]] You will find madgraph5 package on the following page:  https://launchpad.net/madgraph5. For this program, you just need to untar it. To check if mg5 is correctly install you directly try to run it by doing: ./bin/mg5 If you don't have a valid python version. It will fail directly. * '''MadAnalysis'''[[BR]] This programs is not mandatory but allows to have partonic distributions done automatically. In order to install this program, you need to launch mg5 (./bin/mg5) and then type {{{ install MadAnalysis }}} === Install on !MacOs === 1. '''Basic program''' * perl * bash [[BR]] Those programs are by default present in any Mac distribution, but just in case you should check that they are all installed in your computer (by doing perl --version). * gmake [[BR]] By default, makefile are not recognize on mac. In order to check, you can do 'make --version'. If it says: -bash: make: command not found then you should install it. The easiest is to install the xcode. 1. For !MacOs 10.5: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20414 2. For !MacOs 10.6: http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20792 3. For !MacOs 10.7: http://itunes.apple.com/us/app/xcode/id448457090?mt=12 In order to be able to download it, you will need to a apple developer account (which is free) * gfortran 4.x (To check the version do gfortran do: gfortran --version) This program is often not included in standard mac version. In order to download it, you can download it from: a.  http://prdownloads.sourceforge.net/hpc/gcc-lion.tar.gz?download for !MacOs 10.7 b.  http://prdownloads.sourceforge.net/hpc/gcc-snwleo-intel-bin.tar.gz?download for !MacOs 10.6 c.  http://sourceforge.net/projects/hpc/files/hpc/gcc/gcc-leopard-intel-bin.tar.gz/download for !MacOs 10.5 2. '''!MadGraph5''' * '''python''' 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. b. The python version of !MacOs 10.7 is python 2.7. And this one works perfectly, so nothing to install for you. c. For other version of MacOS, you will need to install python2.7 from the python web site: http://www.python.org/download/ * '''Madgraph5'''[[BR]] You will find madgraph5 package on the following page:  https://launchpad.net/madgraph5. For this program, you just need to untar it. To check if mg5 is correctly install you directly try to run it by doing: ./bin/mg5 If you don't have a valid python version. It will fail directly. * '''MadAnalysis'''[[BR]] This programs is not mandatory but allows to have partonic distributions done automatically. In order to install this program, you need to launch mg5 (./bin/mg5) and then type {{{ install MadAnalysis }}} === pre-workshop exercises === As a pre-workshop exercises and a proof that the full instalation is succesfull. Please launch mg5 ./bin/mg5 and type the following command: {{{ tutorial }}} and follow the tutorial instructions on the screen. == Instructions for the on-site exercise == -- Main.ClaudeDuhr - 14 Apr 2009 * If you don't have run the tutorial before the lectures please do it now. Please launch mg5 ./bin/mg5 and type the following command: {{{ tutorial }}} and follow the tutorial instructions on the screen. * The exercice of this tutorial is to 1. Use the model generatedby Feynrules 2. generate $p p \to U \bar U$ 3. generate some events 4. pass the events to Pythia 5. Restart the chain but this time by including all the decay chain in MG5. Note that in order to have the correct cross-sections in the second cases or to have the correct branching ratio computed by Pythia in the first case, we need first to compute the width and the branching ratio of the non standard model particles. * '''The model'''[[BR]] The simple way to have access to a model in MG5 is to put in the directory: MG5_DIR/models after that you can simply import it in MG5 by doing {{{ import model MODELNAME }}} or {{{ import model MODELNAME --modelname }}} The option --modelname tells MG5 to use the name of the particles defines in the UFO model, and not the usual MG5 conventions for the particles of the SM and the MSSM. In principle this shouldn't change anything in the model that you load. For the first time that you import a new model, it's allow a good points to test it. For this 1. It's advice to run MG5 in debug mode (./bin/mg5 --debug) 2. It's useful to test the Lorentz invariance/Gauge invariance/... of at least a couple of processes. This is one examples: {{{ import model MODELNAME check p p > urv urv~ }}} * ''' Computation of the width and branching ratio''' The first element in order to have a valid generations is to have valid input parameters. This includes in particular to have the correct width (and the correct branching ratio for Pythia). If you tell all the channel of desintegration, MG5 is able to compute all those parameters. {{{ import model MODELNAME generate urv > u p1 add process urv > u p2 add process [ADD all 1->2 decay and relevant 1->3 decay, for both interesting particles] output launch }}} This will creates to you one valid param_card with the computed width and the computed branching ratio. Note that the solution (and the valid files to produces it are in attachment of this page) Note that particles which doesn't have a specify decays keeps the width defines by the UFO Model. This might be problematic for p1 (If you don't set the width of p1 to zero in the model) * '''Generation of events (Decay done in pythia)''' {{{ import model MODELNAME generate p p  > urv urv~ output launch }}} One of the questions will be to ask you if you want to edit the param_card. At this stage, you can enter the path of the previously created param_card.dat. * '''Generation of events (Decay done in MG5)''' Add the decay in MG5 (such that the full spin correlation is taken into-account) and generate events. In order to learn the syntax of the decay chain. Please type {{{ help generate }}} Solution in attachments.