Fork me on GitHub

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


Ignore:
Timestamp:
Jul 20, 2016, 4:34:45 AM (8 years ago)
Author:
Michele Selvaggi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/Tutorials/Mc4Bsm

    v1 v2  
    22
    33= Delphes Tutorial - MC4BSM July 2016 =
     4
     5== Pre-requisites ==
     6
     7To successfully build Delphes the following prerequisite packages should be installed:
     8
     9- gcc/tcl:
     10
     11For linux users gcc/tcl should be already installed. For Mac users you should install XCode.
     12
     13- ROOT:
     14
     15can be downloaded from https://root.cern.ch/downloading-root
     16Go on latest release, and download a version under "Binary distributions".
     17
     18Once it is installed, type:
     19
     20{{{
     21source [path_to_installation]/root/bin/thisroot.sh
     22}}}
     23
     24Then simply type in a terminal:
     25
     26{{{
     27echo $ROOTSYS
     28}}}
     29
     30If a path is shown then root is properly installed.
     31
     32=== Part I - Getting Started ===
     33
     340) Create a tutorial directory:
     35
     36{{{
     37mkdir DelphesTutorial
     38}}}
     39
     401) Get Delphes:
     41{{{
     42git clone https://github.com/delphes/delphes.git
     43cd delphes
     44}}}
     45or, if you don't have "git" installed, simply type:
     46{{{
     47wget http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.3.2.tar.gz
     48tar -zxf Delphes-3.3.2.tar.gz
     49mv Delphes-3.3.2 delphes
     50cd delphes
     51}}}
     522) Install it:
     53{{{
     54./configure
     55make -j 4
     56}}}
     573) Download Z' to WW events in stdhep format
     58{{{
     59gunzip ../MG5_aMC_v2_4_0/pp_h_eemm_res/Events/run_01/tag_1_pythia_events.hep.gz
     60gunzip ../MG5_aMC_v2_4_0/pp_h_eemm_res/Events/run_02/tag_1_pythia_events.hep.gz
     61}}}
     62{{{
     63mkdir -p input
     64mv ../MG5_aMC_v2_4_0/pp_h_eemm_res/Events/run_01/tag_1_pythia_events.hep input/pp_h_eemm_m125.hep
     65mv ../MG5_aMC_v2_4_0/pp_h_eemm_res/Events/run_02/tag_1_pythia_events.hep input/pp_h_eemm_m750.hep
     66}}}
     67
     684) Finally, let's run Delphes. If the compilation went right, you should have three executables:
     69
     70- DelphesLHEF  -> should not be used
     71- DelphesHepMC -> to be used on HepMC input format (*.hepmc)
     72- DelphesSTDHEP -> to be used on STDHEP input format (*.hep)
     73
     74Type for instructions (note that output file comes before input file):
     75{{{
     76./DelphesSTDHEP
     77}}}
     78To run on our your input file, type:
     79{{{
     80./DelphesSTDHEP cards/delphes_card_CMS.tcl delphes_output_m125.root input/pp_h_eemm_m125.hep
     81}}}
     825) Open freshly produced Delphes output with ROOT, and explore it.
     83{{{
     84root -l delphes_output_m125.root
     85TBrowser t;
     86}}}
     87In the browser, double click on the "delphes_output_m125.root", and then on the "Delphes" tree. Play around by double clicking on the various branches/observables.
     88
     89You can then play plot important observable with a simple selection with the following syntax:
     90{{{
     91Delphes->Draw("Muon.PT", "Muon.PT > 20");
     92Delphes->Draw("Electron.PT", "Electron.PT > 20");
     93}}}
     94- Note 1: Delphes - tree name, it can be learnt e.g. from TBrowser
     95- Note 2: !Muon/Electron - branch name; PT - variable (leaf) of this branch
     96{{{
     97Delphes->Draw("Muon.Eta", "Muon.PT > 20");
     98Delphes->Draw("Electron.Eta", "Electron.PT > 20");
     99Delphes->Draw("Jet_size","Electron_size > 1 && Muon_size > 1");
     100}}}
     101Objects are already ordered in PT, you can then plot leading ele/mu in this way:
     102{{{
     103Delphes->Draw("Muon[0].PT", "Muon.PT > 20");
     104Delphes->Draw("Electron[0].PT", "Electron.PT > 20");
     105}}}
     106For more information on ROOT trees:
     107
     108http://cp3.irmp.ucl.ac.be/downloads/RootTreeDescription.html
     109