Fork me on GitHub

Changes between Version 1 and Version 2 of WorkBook/Tutorials/Prefit


Ignore:
Timestamp:
Mar 5, 2020, 2:14:30 PM (5 years ago)
Author:
Michele Selvaggi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/Tutorials/Prefit

    v1 v2  
    99https://twiki.cern.ch/twiki/bin/view/VBSCan/PREFIT20
    1010
     11If 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
     13FIXME: find out how these files where named during tutorial
     14
     15If not you can download the files from here (but it might take a while):
     16
     17{{{
     18cd Delphes-3.4.2
     19curl -o pp_ll_sm.hepmc  https://cernbox.cern.ch/index.php/s/4rnlQ0bybBYvLTS/download
     20curl -o pp_ll_bsm.hepmc  https://cernbox.cern.ch/index.php/s/DfDDS5QixZaBsYO/download
     21}}}
    1122
    1223
    13 - gcc/tcl:
    1424
    15 For linux users gcc/tcl should be already installed. For Mac users you should install XCode.
     25== I) Produce Delphes root files ==
    1626
    17 - ROOT:
     27In 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.
    1828
    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
    2131
    22 - Pythia8:
    2332
    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 ==
    5834
    5935
     
    6137
    6238{{{
    63 root -l delphes_ee_zh_zmumu.root
     39root -l pp_ll_sm.root
    6440gSystem->Load("libDelphes");
    6541TBrowser t;
     
    6743
    6844
    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?
     452) 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?
    7346
    7447{{{
    7548Delphes->Draw("Muon_size");
    76 Delphes->Draw("Jet_size");
     49Delphes->Draw("Electron_size");
    7750}}}
     51
     523) Compare the leading muon transverse momentum and pseudo-rapidity in the SM and the BSM sample.
     53
     54
     55
     56{{{
     57Delphes->Draw("Muon_size");
     58Delphes->Draw("Electron_size");
     59}}}
     60
     61
    7862
    7963== III) Write a simple analysis macro ==