Skip to content

Commit d9254bb

Browse files
committed
Add comparison of measured inclusive jets with q and g jets.
1 parent db3b1a5 commit d9254bb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

machine_learning_hep/plotting/plot_jetsubstructure.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,4 +650,26 @@ def main(): # pylint: disable=too-many-locals, too-many-statements, too-many-bra
650650
cshape_mc.Update()
651651
cshape_mc.SaveAs("%s/%s_mc_id_%s.pdf" % (rootpath, shape, suffix))
652652

653+
# data inclusive vs PYTHIA, quark, gluon
654+
655+
#leg_pos = [.6, .65, .75, .85]
656+
#leg_pos = [.72, .55, .85, .85]
657+
leg_pos = [.6, .7, .85, .85]
658+
list_obj = [incl_data_syst, quark_pythia_syst, gluon_pythia_syst, incl_data_stat, quark_pythia_stat, gluon_pythia_stat]
659+
labels_obj = ["inclusive (data)", "quark (PYTHIA 8)", "gluon (PYTHIA 8)"]
660+
colours = [get_colour(i, j) for i, j in zip((c_incl_data, c_quark_mc, c_gluon_mc, c_incl_data, c_quark_mc, c_gluon_mc), (2, 2, 2, 1, 1, 1))]
661+
markers = [m_incl_data, m_quark_mc, m_gluon_mc, m_incl_data, m_quark_mc, m_gluon_mc]
662+
y_margin_up = 0.3
663+
y_margin_down = 0.05
664+
cshape_mc, list_obj_mc_new = make_plot("cshape_mc_data_iqg" + suffix, size=size_can, \
665+
list_obj=list_obj, labels_obj=labels_obj, opt_leg_g=opt_leg_g, opt_plot_g=opt_plot_g, offsets_xy=offsets_axes, \
666+
colours=colours, markers=markers, leg_pos=leg_pos, margins_y=[y_margin_down, y_margin_up], margins_c=margins_can, \
667+
title=title_full)
668+
for gr, c in zip((incl_data_syst, quark_pythia_syst, gluon_pythia_syst), (c_incl_data, c_quark_mc, c_gluon_mc)):
669+
gr.SetMarkerColor(get_colour(c))
670+
leg_mc = list_obj_mc_new[0]
671+
leg_mc.SetTextSize(fontsize)
672+
cshape_mc.Update()
673+
cshape_mc.SaveAs("%s/%s_data_i_mc_qg_%s.pdf" % (rootpath, shape, suffix))
674+
653675
main()

0 commit comments

Comments
 (0)