From fdc720bea2fdb97b8f104d8bc49136997d815a7e Mon Sep 17 00:00:00 2001
From: Jan Kretzschmar <jan.kretzschmar@liverpool.ac.uk>
Date: Sun, 14 Mar 2021 20:18:09 +0100
Subject: [PATCH 1/2] Herwig7 yj

---
 830xxx/830034/log.generate.short              |  4 ++
 .../mc.H7EG_gammajet_MMHT2014lo_DP17_35.py    | 40 +++++++++++++++++++
 830xxx/830035/log.generate.short              |  4 ++
 .../mc.H7EG_gammajet_MMHT2014lo_DP35_70.py    | 40 +++++++++++++++++++
 830xxx/830036/log.generate.short              |  4 ++
 .../mc.H7EG_gammajet_MMHT2014lo_DP70_140.py   | 40 +++++++++++++++++++
 830xxx/830037/log.generate.short              |  4 ++
 .../mc.H7EG_gammajet_MMHT2014lo_DP140_280.py  | 40 +++++++++++++++++++
 830xxx/830038/log.generate.short              |  4 ++
 .../mc.H7EG_gammajet_MMHT2014lo_DP280_500.py  | 40 +++++++++++++++++++
 10 files changed, 220 insertions(+)
 create mode 100644 830xxx/830034/log.generate.short
 create mode 100755 830xxx/830034/mc.H7EG_gammajet_MMHT2014lo_DP17_35.py
 create mode 100644 830xxx/830035/log.generate.short
 create mode 100755 830xxx/830035/mc.H7EG_gammajet_MMHT2014lo_DP35_70.py
 create mode 100644 830xxx/830036/log.generate.short
 create mode 100755 830xxx/830036/mc.H7EG_gammajet_MMHT2014lo_DP70_140.py
 create mode 100644 830xxx/830037/log.generate.short
 create mode 100755 830xxx/830037/mc.H7EG_gammajet_MMHT2014lo_DP140_280.py
 create mode 100644 830xxx/830038/log.generate.short
 create mode 100755 830xxx/830038/mc.H7EG_gammajet_MMHT2014lo_DP280_500.py

diff --git a/830xxx/830034/log.generate.short b/830xxx/830034/log.generate.short
new file mode 100644
index 0000000000..311ee013e2
--- /dev/null
+++ b/830xxx/830034/log.generate.short
@@ -0,0 +1,4 @@
+- estimated CPU for CI job = 0.32 hrs
+- using release =  AthGeneration-21.6.61
+- ecmEnergy =  13000.0
+- LHEonly =  False
diff --git a/830xxx/830034/mc.H7EG_gammajet_MMHT2014lo_DP17_35.py b/830xxx/830034/mc.H7EG_gammajet_MMHT2014lo_DP17_35.py
new file mode 100755
index 0000000000..9ca35dc1cb
--- /dev/null
+++ b/830xxx/830034/mc.H7EG_gammajet_MMHT2014lo_DP17_35.py
@@ -0,0 +1,40 @@
+## Initialise Herwig7 for run with built-in matrix elements
+include("Herwig7_i/Herwig7_BuiltinME.py")
+include("Herwig7_i/Herwig71_EvtGen.py")
+
+## Provide config information
+evgenConfig.generators += ["Herwig7"]
+evgenConfig.tune        = "H7.2-Default"
+evgenConfig.description = "Photon+jet production with H71UE default tune"
+evgenConfig.keywords = ["QCD", "photon", "jets"]
+evgenConfig.contact  = [ "olszewsk@cern.ch" ]
+evgenConfig.nEventsPerJob = 50
+
+## hard process setup
+Herwig7Config.add_commands("set /Herwig/Partons/RemnantDecayer:AllowTop Yes")
+Herwig7Config.me_pdf_commands(order="LO", name="MMHT2014lo68cl")
+
+command = """
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[1] /Herwig/MatrixElements/MEGammaJet
+set /Herwig/UnderlyingEvent/MPIHandler:IdenticalToUE 0
+
+## cut on photon pT
+set /Herwig/Cuts/PhotonKtCut:MinKT 10.2*GeV
+
+## increase pT of jet cut to match photon cut
+set /Herwig/Cuts/JetKtCut:MinKT 10.2*GeV
+"""
+
+print command
+
+Herwig7Config.add_commands(command)
+
+include("GeneratorFilters/DirectPhotonFilter.py")
+filtSeq.DirectPhotonFilter.NPhotons = 1
+filtSeq.DirectPhotonFilter.Ptmin = [ 17000. ]
+filtSeq.DirectPhotonFilter.Ptmax = [ 35000. ]
+filtSeq.DirectPhotonFilter.OrderPhotons = True
+
+## run the generator
+Herwig7Config.run()
diff --git a/830xxx/830035/log.generate.short b/830xxx/830035/log.generate.short
new file mode 100644
index 0000000000..25c903b010
--- /dev/null
+++ b/830xxx/830035/log.generate.short
@@ -0,0 +1,4 @@
+- estimated CPU for CI job = 0.17 hrs
+- using release =  AthGeneration-21.6.61
+- ecmEnergy =  13000.0
+- LHEonly =  False
diff --git a/830xxx/830035/mc.H7EG_gammajet_MMHT2014lo_DP35_70.py b/830xxx/830035/mc.H7EG_gammajet_MMHT2014lo_DP35_70.py
new file mode 100755
index 0000000000..411008d685
--- /dev/null
+++ b/830xxx/830035/mc.H7EG_gammajet_MMHT2014lo_DP35_70.py
@@ -0,0 +1,40 @@
+## Initialise Herwig7 for run with built-in matrix elements
+include("Herwig7_i/Herwig7_BuiltinME.py")
+include("Herwig7_i/Herwig71_EvtGen.py")
+
+## Provide config information
+evgenConfig.generators += ["Herwig7"]
+evgenConfig.tune        = "H7.2-Default"
+evgenConfig.description = "Photon+jet production with H71UE default tune"
+evgenConfig.keywords = ["QCD", "photon", "jets"]
+evgenConfig.contact  = [ "olszewsk@cern.ch" ]
+evgenConfig.nEventsPerJob = 50
+
+## hard process setup
+Herwig7Config.add_commands("set /Herwig/Partons/RemnantDecayer:AllowTop Yes")
+Herwig7Config.me_pdf_commands(order="LO", name="MMHT2014lo68cl")
+
+command = """
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[1] /Herwig/MatrixElements/MEGammaJet
+set /Herwig/UnderlyingEvent/MPIHandler:IdenticalToUE 0
+
+## cut on photon pT
+set /Herwig/Cuts/PhotonKtCut:MinKT 21.0*GeV
+
+## increase pT of jet cut to match photon cut
+set /Herwig/Cuts/JetKtCut:MinKT 21.0*GeV
+"""
+
+print command
+
+Herwig7Config.add_commands(command)
+
+include("GeneratorFilters/DirectPhotonFilter.py")
+filtSeq.DirectPhotonFilter.NPhotons = 1
+filtSeq.DirectPhotonFilter.Ptmin = [ 35000. ]
+filtSeq.DirectPhotonFilter.Ptmax = [ 70000. ]
+filtSeq.DirectPhotonFilter.OrderPhotons = True
+
+## run the generator
+Herwig7Config.run()
diff --git a/830xxx/830036/log.generate.short b/830xxx/830036/log.generate.short
new file mode 100644
index 0000000000..25c903b010
--- /dev/null
+++ b/830xxx/830036/log.generate.short
@@ -0,0 +1,4 @@
+- estimated CPU for CI job = 0.17 hrs
+- using release =  AthGeneration-21.6.61
+- ecmEnergy =  13000.0
+- LHEonly =  False
diff --git a/830xxx/830036/mc.H7EG_gammajet_MMHT2014lo_DP70_140.py b/830xxx/830036/mc.H7EG_gammajet_MMHT2014lo_DP70_140.py
new file mode 100755
index 0000000000..3bf4dbc854
--- /dev/null
+++ b/830xxx/830036/mc.H7EG_gammajet_MMHT2014lo_DP70_140.py
@@ -0,0 +1,40 @@
+## Initialise Herwig7 for run with built-in matrix elements
+include("Herwig7_i/Herwig7_BuiltinME.py")
+include("Herwig7_i/Herwig71_EvtGen.py")
+
+## Provide config information
+evgenConfig.generators += ["Herwig7"]
+evgenConfig.tune        = "H7.2-Default"
+evgenConfig.description = "Photon+jet production with H71UE default tune"
+evgenConfig.keywords = ["QCD", "photon", "jets"]
+evgenConfig.contact  = [ "olszewsk@cern.ch" ]
+evgenConfig.nEventsPerJob = 50
+
+## hard process setup
+Herwig7Config.add_commands("set /Herwig/Partons/RemnantDecayer:AllowTop Yes")
+Herwig7Config.me_pdf_commands(order="LO", name="MMHT2014lo68cl")
+
+command = """
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[1] /Herwig/MatrixElements/MEGammaJet
+set /Herwig/UnderlyingEvent/MPIHandler:IdenticalToUE 0
+
+## cut on photon pT
+set /Herwig/Cuts/PhotonKtCut:MinKT 42.0*GeV
+
+## increase pT of jet cut to match photon cut
+set /Herwig/Cuts/JetKtCut:MinKT 42.0*GeV
+"""
+
+print command
+
+Herwig7Config.add_commands(command)
+
+include("GeneratorFilters/DirectPhotonFilter.py")
+filtSeq.DirectPhotonFilter.NPhotons = 1
+filtSeq.DirectPhotonFilter.Ptmin = [ 70000. ]
+filtSeq.DirectPhotonFilter.Ptmax = [ 140000. ]
+filtSeq.DirectPhotonFilter.OrderPhotons = True
+
+## run the generator
+Herwig7Config.run()
diff --git a/830xxx/830037/log.generate.short b/830xxx/830037/log.generate.short
new file mode 100644
index 0000000000..2a163b5e7c
--- /dev/null
+++ b/830xxx/830037/log.generate.short
@@ -0,0 +1,4 @@
+- estimated CPU for CI job = 0.15 hrs
+- using release =  AthGeneration-21.6.61
+- ecmEnergy =  13000.0
+- LHEonly =  False
diff --git a/830xxx/830037/mc.H7EG_gammajet_MMHT2014lo_DP140_280.py b/830xxx/830037/mc.H7EG_gammajet_MMHT2014lo_DP140_280.py
new file mode 100755
index 0000000000..8cae2ba8e2
--- /dev/null
+++ b/830xxx/830037/mc.H7EG_gammajet_MMHT2014lo_DP140_280.py
@@ -0,0 +1,40 @@
+## Initialise Herwig7 for run with built-in matrix elements
+include("Herwig7_i/Herwig7_BuiltinME.py")
+include("Herwig7_i/Herwig71_EvtGen.py")
+
+## Provide config information
+evgenConfig.generators += ["Herwig7"]
+evgenConfig.tune        = "H7.2-Default"
+evgenConfig.description = "Photon+jet production with H71UE default tune"
+evgenConfig.keywords = ["QCD", "photon", "jets"]
+evgenConfig.contact  = [ "olszewsk@cern.ch" ]
+evgenConfig.nEventsPerJob = 50
+
+## hard process setup
+Herwig7Config.add_commands("set /Herwig/Partons/RemnantDecayer:AllowTop Yes")
+Herwig7Config.me_pdf_commands(order="LO", name="MMHT2014lo68cl")
+
+command = """
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[1] /Herwig/MatrixElements/MEGammaJet
+set /Herwig/UnderlyingEvent/MPIHandler:IdenticalToUE 0
+
+## cut on photon pT
+set /Herwig/Cuts/PhotonKtCut:MinKT 84.0*GeV
+
+## increase pT of jet cut to match photon cut
+set /Herwig/Cuts/JetKtCut:MinKT 84.0*GeV
+"""
+
+print command
+
+Herwig7Config.add_commands(command)
+
+include("GeneratorFilters/DirectPhotonFilter.py")
+filtSeq.DirectPhotonFilter.NPhotons = 1
+filtSeq.DirectPhotonFilter.Ptmin = [ 140000. ]
+filtSeq.DirectPhotonFilter.Ptmax = [ 280000. ]
+filtSeq.DirectPhotonFilter.OrderPhotons = True
+
+## run the generator
+Herwig7Config.run()
diff --git a/830xxx/830038/log.generate.short b/830xxx/830038/log.generate.short
new file mode 100644
index 0000000000..1299616020
--- /dev/null
+++ b/830xxx/830038/log.generate.short
@@ -0,0 +1,4 @@
+- estimated CPU for CI job = 0.10 hrs
+- using release =  AthGeneration-21.6.61
+- ecmEnergy =  13000.0
+- LHEonly =  False
diff --git a/830xxx/830038/mc.H7EG_gammajet_MMHT2014lo_DP280_500.py b/830xxx/830038/mc.H7EG_gammajet_MMHT2014lo_DP280_500.py
new file mode 100755
index 0000000000..35abf069e7
--- /dev/null
+++ b/830xxx/830038/mc.H7EG_gammajet_MMHT2014lo_DP280_500.py
@@ -0,0 +1,40 @@
+## Initialise Herwig7 for run with built-in matrix elements
+include("Herwig7_i/Herwig7_BuiltinME.py")
+include("Herwig7_i/Herwig71_EvtGen.py")
+
+## Provide config information
+evgenConfig.generators += ["Herwig7"]
+evgenConfig.tune        = "H7.2-Default"
+evgenConfig.description = "Photon+jet production with H71UE default tune"
+evgenConfig.keywords = ["QCD", "photon", "jets"]
+evgenConfig.contact  = [ "olszewsk@cern.ch" ]
+evgenConfig.nEventsPerJob = 50
+
+## hard process setup
+Herwig7Config.add_commands("set /Herwig/Partons/RemnantDecayer:AllowTop Yes")
+Herwig7Config.me_pdf_commands(order="LO", name="MMHT2014lo68cl")
+
+command = """
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[0] /Herwig/MatrixElements/MEQCD2to2
+insert /Herwig/MatrixElements/SubProcess:MatrixElements[1] /Herwig/MatrixElements/MEGammaJet
+set /Herwig/UnderlyingEvent/MPIHandler:IdenticalToUE 0
+
+## cut on photon pT
+set /Herwig/Cuts/PhotonKtCut:MinKT 168.0*GeV
+
+## increase pT of jet cut to match photon cut
+set /Herwig/Cuts/JetKtCut:MinKT 168.0*GeV
+"""
+
+print command
+
+Herwig7Config.add_commands(command)
+
+include("GeneratorFilters/DirectPhotonFilter.py")
+filtSeq.DirectPhotonFilter.NPhotons = 1
+filtSeq.DirectPhotonFilter.Ptmin = [ 280000. ]
+filtSeq.DirectPhotonFilter.Ptmax = [ 500000. ]
+filtSeq.DirectPhotonFilter.OrderPhotons = True
+
+## run the generator
+Herwig7Config.run()
-- 
GitLab


From 7c573221a06714fde791ba9a4ed67fc838b9c42e Mon Sep 17 00:00:00 2001
From: mcgensvc <mcgensvc@cern.ch>
Date: Sun, 14 Mar 2021 20:30:13 +0100
Subject: [PATCH 2/2] Pipeline for fdc720be succeeded. Removing log.generate
 files [skip all]

---
 830xxx/830034/log.generate.short | 4 ----
 830xxx/830035/log.generate.short | 4 ----
 830xxx/830036/log.generate.short | 4 ----
 830xxx/830037/log.generate.short | 4 ----
 830xxx/830038/log.generate.short | 4 ----
 5 files changed, 20 deletions(-)
 delete mode 100644 830xxx/830034/log.generate.short
 delete mode 100644 830xxx/830035/log.generate.short
 delete mode 100644 830xxx/830036/log.generate.short
 delete mode 100644 830xxx/830037/log.generate.short
 delete mode 100644 830xxx/830038/log.generate.short

diff --git a/830xxx/830034/log.generate.short b/830xxx/830034/log.generate.short
deleted file mode 100644
index 311ee013e2..0000000000
--- a/830xxx/830034/log.generate.short
+++ /dev/null
@@ -1,4 +0,0 @@
-- estimated CPU for CI job = 0.32 hrs
-- using release =  AthGeneration-21.6.61
-- ecmEnergy =  13000.0
-- LHEonly =  False
diff --git a/830xxx/830035/log.generate.short b/830xxx/830035/log.generate.short
deleted file mode 100644
index 25c903b010..0000000000
--- a/830xxx/830035/log.generate.short
+++ /dev/null
@@ -1,4 +0,0 @@
-- estimated CPU for CI job = 0.17 hrs
-- using release =  AthGeneration-21.6.61
-- ecmEnergy =  13000.0
-- LHEonly =  False
diff --git a/830xxx/830036/log.generate.short b/830xxx/830036/log.generate.short
deleted file mode 100644
index 25c903b010..0000000000
--- a/830xxx/830036/log.generate.short
+++ /dev/null
@@ -1,4 +0,0 @@
-- estimated CPU for CI job = 0.17 hrs
-- using release =  AthGeneration-21.6.61
-- ecmEnergy =  13000.0
-- LHEonly =  False
diff --git a/830xxx/830037/log.generate.short b/830xxx/830037/log.generate.short
deleted file mode 100644
index 2a163b5e7c..0000000000
--- a/830xxx/830037/log.generate.short
+++ /dev/null
@@ -1,4 +0,0 @@
-- estimated CPU for CI job = 0.15 hrs
-- using release =  AthGeneration-21.6.61
-- ecmEnergy =  13000.0
-- LHEonly =  False
diff --git a/830xxx/830038/log.generate.short b/830xxx/830038/log.generate.short
deleted file mode 100644
index 1299616020..0000000000
--- a/830xxx/830038/log.generate.short
+++ /dev/null
@@ -1,4 +0,0 @@
-- estimated CPU for CI job = 0.10 hrs
-- using release =  AthGeneration-21.6.61
-- ecmEnergy =  13000.0
-- LHEonly =  False
-- 
GitLab