Changes between Version 1 and Version 2 of WorkBook/Tutorials/Prefit
- Timestamp:
- Mar 5, 2020, 2:14:30 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkBook/Tutorials/Prefit
v1 v2 9 9 https://twiki.cern.ch/twiki/bin/view/VBSCan/PREFIT20 10 10 11 If you have successfully produced Pythia8 event files in the MadGraph and Parton Shower lecture (Admir Greljo, Ilaria Brivio), copy (or move) the pp->ll (SM and BSM) into the Delphes directory Delphes-3.4.2 12 13 FIXME: find out how these files where named during tutorial 14 15 If not you can download the files from here (but it might take a while): 16 17 {{{ 18 cd Delphes-3.4.2 19 curl -o pp_ll_sm.hepmc https://cernbox.cern.ch/index.php/s/4rnlQ0bybBYvLTS/download 20 curl -o pp_ll_bsm.hepmc https://cernbox.cern.ch/index.php/s/DfDDS5QixZaBsYO/download 21 }}} 11 22 12 23 13 - gcc/tcl:14 24 15 For linux users gcc/tcl should be already installed. For Mac users you should install XCode. 25 == I) Produce Delphes root files == 16 26 17 - ROOT: 27 In this section you will run Delphes Fast Detector simulation using the default CMS card. Delphes will produce a ROOT file starting from the hepmc format produced by MG5+Pythia8. 18 28 19 can be downloaded from https://root.cern.ch/downloading-root 20 Go on latest release, and download a version under "Binary distributions". 29 ./DelphesHepMC cards/delphes_card_CMS.tcl pp_ll_sm.root pp_ll_sm.hepmc 30 ./DelphesHepMC cards/delphes_card_CMS.tcl pp_ll_bsm.root pp_ll_bsm.hepmc 21 31 22 - Pythia8:23 32 24 following instructions from here (or using the Pythia8 installation in !MadGraph): 25 26 https://cp3.irmp.ucl.ac.be/projects/delphes/wiki/WorkBook/Pythia8 27 28 The solutions for all the exercises can be found in the attachment file (suggestion: download file locally). 29 30 == I) Event generation with Pythia8 + Delphes sample == 31 32 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. 33 34 1) Create a Pythia8 configuration card that generates N=10k events of ee->Zh->mumu at sqrt(s)=240 GeV (call it "examples/Pythia8/config_ee_zh_zmumu.cmd"). 35 36 {{{ 37 Main:numberOfEvents = 10000 ! number of events to generate 38 39 Beams:idA = 11 ! first beam, e- = -11 40 Beams:idB = -11 ! second beam, e+ = 11 41 Beams:eCM = 240. ! CM energy of collision 42 43 ! Higgsstrahlung process 44 HiggsSM:ffbar2HZ = on 45 46 ! 5) Force the Z decays to muons 47 23:onMode = off 48 23:onIfAny = 13 -13 49 }}} 50 51 2) 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 {{{ 54 ./DelphesPythia8 cards/delphes_card_CEPC.tcl examples/Pythia8/config_ee_zh_zmumu.cmd delphes_ee_zh_zmumu.root 55 }}} 56 57 == II) Simple Tree analysis == 33 == II) Simple Interactive Tree analysis == 58 34 59 35 … … 61 37 62 38 {{{ 63 root -l delphes_ee_zh_zmumu.root39 root -l pp_ll_sm.root 64 40 gSystem->Load("libDelphes"); 65 41 TBrowser t; … … 67 43 68 44 69 Note: Most objects are described in terms of pp specific variables (PT, Eta, Phi). 70 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). 71 72 2) Interactively draw the muon multiplicity and the jet multiplicity. You first have to double-click on the root file icon in the TBrowser. Do you understand these distributions? 45 2) Interactively draw the muon and electron multiplicity. You first have to double-click on the root file icon in the TBrowser. Do you understand these distributions? 73 46 74 47 {{{ 75 48 Delphes->Draw("Muon_size"); 76 Delphes->Draw(" Jet_size");49 Delphes->Draw("Electron_size"); 77 50 }}} 51 52 3) Compare the leading muon transverse momentum and pseudo-rapidity in the SM and the BSM sample. 53 54 55 56 {{{ 57 Delphes->Draw("Muon_size"); 58 Delphes->Draw("Electron_size"); 59 }}} 60 61 78 62 79 63 == III) Write a simple analysis macro ==