| 1 | [[TOC]] |
| 2 | |
| 3 | = Pythia8+Delphes Tutorial - Pisa September 2018 = |
| 4 | |
| 5 | == Pre-requisites == |
| 6 | |
| 7 | To successfully run this tutorial the following prerequisite packages should be installed: |
| 8 | |
| 9 | - gcc/tcl: |
| 10 | |
| 11 | For linux users gcc/tcl should be already installed. For Mac users you should install XCode. |
| 12 | |
| 13 | - ROOT: |
| 14 | |
| 15 | can be downloaded from https://root.cern.ch/downloading-root |
| 16 | Go on latest release, and download a version under "Binary distributions". |
| 17 | |
| 18 | - Pythia8: |
| 19 | |
| 20 | following instructions from here (or using the Pythia8 installation in MadGraph): |
| 21 | https://cp3.irmp.ucl.ac.be/projects/delphes/wiki/WorkBook/Pythia8 |
| 22 | |
| 23 | == I) Event generation with Pythia8 + Delphes sample == |
| 24 | |
| 25 | |
| 26 | This exercise will teach how to configure the Pythia8 event generator for a simple production of e+e- -> ZH events. Next, you will generate events and simulate the detector with the DelphesPythia8 executable. |
| 27 | |
| 28 | 1) First have a look at the Pythia8 configuration file "examples/Pythia8/configNoLHE.cmnd". |
| 29 | In this card identify the parameters that control: |
| 30 | |
| 31 | - the number of events to be generated |
| 32 | - the nature of the colliding beams |
| 33 | - the center of mass energy |
| 34 | - the physics process to be generated |
| 35 | |
| 36 | 2) Create a Pythia8 configuration card that generates N=10k events of ee->Zh->mumu at sqrt(s)=240 GeV. |
| 37 | |
| 38 | Find the above process in the Pythia8 manual (Hint: under "Higgs", then "Standard-Model Higgs, basic processes"): |
| 39 | |
| 40 | http://home.thep.lu.se/~torbjorn/pythia81html/Welcome.html |
| 41 | |
| 42 | Hint1: the code of electron (positron) is 11 (-11). |
| 43 | |
| 44 | Hint2: the Z decay can be forced to muons with the following syntax: |
| 45 | |
| 46 | {{{ |
| 47 | 23:onMode = off |
| 48 | 23:onIfAny = 13 -13 |
| 49 | }}} |
| 50 | |
| 51 | 3) Produce Delphes events using the above Pythia8 configuration (this command should run Pythia and Delphes on the fly!), using the CEPC detector card "cards/delphes_card_CEPC.tcl" |
| 52 | |
| 53 | Hint: find the command to be executed here (adapting it to the above Delphes and Pythia8 cards of course): |
| 54 | |
| 55 | https://cp3.irmp.ucl.ac.be/projects/delphes/wiki/WorkBook/Pythia8 |
| 56 | |
| 57 | |
| 58 | == II) Simple Tree analysis == |
| 59 | |
| 60 | |
| 61 | 1) Open Delphes ROOT tree and explore the branches |
| 62 | |
| 63 | {{{ |
| 64 | root -l delphes_ee_zh_zmumu.root |
| 65 | gSystem->Load("libDelphes"); |
| 66 | TBrowser t; |
| 67 | }}} |
| 68 | |
| 69 | |
| 70 | Note: Most objects are described in terms of pp specific variables (PT, Eta, Phi). |
| 71 | This is simply for historical reasons (and makes of course no difference whatsoever) since Delphes was developed originally as a tool for LHC physics. To plot ee-like variables, one needs to write the translation (or make use of the very useful TLorentzVector of ROOT, see part III). |
| 72 | |
| 73 | 2) Interactively draw the muon multiplicity and the jet multiplicity. Do you understand these distributions? |
| 74 | |
| 75 | == III) Write a simple analysis macro == |
| 76 | |
| 77 | 1) Write down the formula for the recoil Higgs mass. |
| 78 | |
| 79 | 2) You can find a simple analysis macro in "example/Example1.py". It can be executed like this: |
| 80 | |
| 81 | {{{ |
| 82 | python examples/Example1.py delphes_ee_zh_zmumu.root |
| 83 | }}} |
| 84 | |
| 85 | This Example1.py macro does not produce anything interesting here (it most likely produce an empty plot). The above command is simply shown as an example for how to run a macro. You should open Example1.py with a text editor, and write a small analysis that first selects events with two muons and then reconstructs and plot the recoil Higgs mass using the formula found in III.1) |
| 86 | |
| 87 | |
| 88 | == IV) Modify the Delphes detector card == |
| 89 | |
| 90 | |
| 91 | You have now produced a Delphes simulated event with the hypothetical CEPC default detector configuration. |
| 92 | |
| 93 | 1) Can you think of 2 detector parameters that determine and drive the sensitivity of the Higgs recoil measurement in this particular final state? |
| 94 | |
| 95 | 2) Identify where they are configured in the delphes detector card. |
| 96 | |
| 97 | 3) Create two new detector configurations by degrading these two parameters by a sizable factor. |
| 98 | |
| 99 | 4) Reproduce a Delphes sample with these new configurations and observe the impact on the recoil mass distribution. |
| 100 | |
| 101 | |
| 102 | |