ATLAS Offline Software
Loading...
Searching...
No Matches
mc.PhPy8EG_A14NNPDF23_NNLOPS_example.py
Go to the documentation of this file.
1# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
2
3# --------------------------------------------------------------
4# EVGEN configuration
5# --------------------------------------------------------------
6evgenConfig.description = "PowhegControl example of NNLOPS syntax"
7evgenConfig.keywords = ["SM", "Higgs", "jet"]
8evgenConfig.contact = ["james.robinson@cern.ch"]
9
10# --------------------------------------------------------------
11# Load ATLAS defaults for the Powheg Hj process
12# --------------------------------------------------------------
13include("PowhegControl/PowhegControl_Hj_Common.py")
14
15# --------------------------------------------------------------
16# Set integration parameters to tiny values for fast testing
17# DO NOT USE THESE SETTINGS IN PRODUCTION!
18# --------------------------------------------------------------
19PowhegConfig.ncall1 = 1000
20PowhegConfig.ncall1rm = 1000
21PowhegConfig.ncall2 = 1000
22PowhegConfig.ncall2rm = 1000
23PowhegConfig.nubound = 1000
24PowhegConfig.foldphi = 1
25PowhegConfig.foldcsi = 1
26PowhegConfig.foldy = 1
27PowhegConfig.itmx1 = 1
28PowhegConfig.itmx2 = 1
29
30# --------------------------------------------------------------
31# Reweighting: construct event weight group for quark mass variations.
32# --------------------------------------------------------------
33PowhegConfig.define_event_weight_group(group_name="quark_mass_variation", parameters_to_vary=["bmass_in_minlo", "quarkmasseffects"])
34# mtmb means both top and b masses are considered in the loop. This is the nominal choice.
35# mtinf is "EFT", meaning the top quark mass is set to infinity, and mb=0 (ignored)
36# mtmb-bminlo is an alternative treatment of the b-mass
37PowhegConfig.add_weight_to_group(group_name="quark_mass_variation", weight_name="mtmb", parameter_values=[0, 1])
38PowhegConfig.add_weight_to_group(group_name="quark_mass_variation", weight_name="mtinf", parameter_values=[0, 0])
39PowhegConfig.add_weight_to_group(group_name="quark_mass_variation", weight_name="mtmb-bminlo", parameter_values=[1, 1])
40
41# --------------------------------------------------------------
42# NNLOPS: specify the input files
43# --------------------------------------------------------------
44PowhegConfig.NNLO_reweighting_inputs["nn-mtinf"] = "H1250_CM13_CT10_APX0_11.top"
45PowhegConfig.NNLO_reweighting_inputs["nn-mtmb"] = "H1250_CM13_CT10_APX2_22.top"
46
47# --------------------------------------------------------------
48# NNLOPS: specify the output weights: remember to escape nested quotes
49# --------------------------------------------------------------
50PowhegConfig.NNLO_output_weights["nnlops-mtmb"] = "combine 'nn-mtmb' and 'mtmb'"
51PowhegConfig.NNLO_output_weights["nnlops-mtinf"] = "combine \"nn-mtinf\" and \"mtinf\""
52PowhegConfig.NNLO_output_weights["nnlops-mtmb-bminlo"] = "combine \"nn-mtmb\" and 'mtmb-bminlo'"
53
54# --------------------------------------------------------------
55# Generate events
56# --------------------------------------------------------------
57PowhegConfig.generate()
58
59# --------------------------------------------------------------
60# Pythia8 showering with the AZNLO tune
61# --------------------------------------------------------------
62include("Pythia8_i/Pythia8_AZNLO_CTEQ6L1_EvtGen_Common.py")
63include("Pythia8_i/Pythia8_Powheg.py")
64# Decay to diphoton only
65genSeq.Pythia8.Commands += ["25:onMode = off", "25:onIfMatch = 22 22"]