Utilities for the Generator Comparison

Plotting LHE Files

To plot different distributions (e.g. p_T, eta) from a generated LHE Files in ROOT the python class LHEAnalyzer Python script can be used together with an additional analysis file.

Note: The Python script was not created by myself, but due to the unknown origin of the python script I can not cite the original author.

Merge Histograms from Two or More ROOT Files in One Histogram

For the comparison it would be nice to have the possibility to merge easily histograms of the same distribution (e.g. p_T, eta) but from two or more ROOT files (e.g. MadGraph5 vs. aMC@NLO) in one histogram.

This ROOT macro plots automatically a common histogram for each distribution together with a ratio plot. The only requirement is, that the name of the distribution is the same in all ROOT files.

Distribution Name Description
Pt pT distribution
DeltaR DeltaR distribution
Eta Eta distribution
Mass Mass distribution
t1 Top quark or top antiquark with high pT
t2 Top quark or top antiquark with low pT
top Top quark
topbar Top antiquark
b1 Bottom quark or bottom antiquark with high pT
b2 Bottom quark or bottom antiquark with low pT
bottom Bottom quark
bottombar Bottom antiquark
h Higgs boson
add Additional particles / jets
DeltaR_t1t2 DeltaR between top quark or top antiquark with high pT (t1) and top quark or top antiquark with low pT (t2)
DeltaR_toptopbar DeltaR between top quark and top antiquark
Pt_t1 pT of top quark or top antiquark with high pT
Pt_t2 pT of top quark or top antiquark with low pT
Pt_top pT of top quark
Pt_topbar pT of top antiquark
Eta_t1 Eta of top quark or top antiquark with high pT
Eta_t2 Eta of top quark or top antiquark with low pT
Eta_top Eta of top quark
Eta_topbar Eta of top antiquark
Pt_b1 pT of bottom quark
Pt_h pT of Higgs boson
Mass_h Mass of Higgs boson
Pt_add pT of additional particles / jets
Eta_add Eta of additional particles / jets

-- MarcoHarrendorf - 31 Jan 2014

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt analyze_tt.py.txt r1 manage 3.0 K 2014-01-31 - 17:36 MarcoHarrendorf Analysis script for tt
Texttxt analyze_ttbb.py.txt r1 manage 7.5 K 2014-01-31 - 17:13 MarcoHarrendorf Analysis file for ttbb
Texttxt analyze_tth.py.txt r1 manage 4.1 K 2014-01-31 - 17:12 MarcoHarrendorf Analysis script for ttH
C source code filec compareplots.C r1 manage 6.5 K 2014-01-31 - 17:34 MarcoHarrendorf ROOT macro to compare distributions from different ROOT files
Texttxt lheanalyzer.py.txt r1 manage 5.0 K 2015-04-22 - 19:02 MarcoHarrendorf  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2015-04-22 - MarcoHarrendorf
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback