From 38e007a5bf19b36af54cf1606a37b16c87237d3b Mon Sep 17 00:00:00 2001
From: Daniela Rebuzzi <drebuzzi@lxplus769.cern.ch>
Date: Mon, 12 Dec 2022 18:33:16 +0100
Subject: [PATCH 1/6] jobOptions first commit

---
 601xxx/601634/log.generate.short              |  7 +++
 ...8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py | 34 ++++++++++++++
 601xxx/601635/log.generate.short              |  7 +++
 ...G_PDF4LHC21_bbH125_MINLO_ZZ4lep_tauFilt.py | 45 +++++++++++++++++++
 601xxx/601636/log.generate.short              |  7 +++
 ...7EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py | 38 ++++++++++++++++
 6 files changed, 138 insertions(+)
 create mode 100644 601xxx/601634/log.generate.short
 create mode 100644 601xxx/601634/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py
 create mode 100644 601xxx/601635/log.generate.short
 create mode 100644 601xxx/601635/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_tauFilt.py
 create mode 100644 601xxx/601636/log.generate.short
 create mode 100644 601xxx/601636/mc.PhH7EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py

diff --git a/601xxx/601634/log.generate.short b/601xxx/601634/log.generate.short
new file mode 100644
index 0000000000..4e3b11cd17
--- /dev/null
+++ b/601xxx/601634/log.generate.short
@@ -0,0 +1,7 @@
+- estimated CPU for CI job = 0.00 hrs
+- using release =  AthGeneration-22.6.19
+- ecmEnergy =  13600.0
+- inputGeneratorFile =  /eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000002.tar.gz.1
+- randomSeed =  10361
+- EVNT to EVNT =  False
+- LHEonly =  False
\ No newline at end of file
diff --git a/601xxx/601634/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py b/601xxx/601634/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py
new file mode 100644
index 0000000000..fd120dcef1
--- /dev/null
+++ b/601xxx/601634/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py
@@ -0,0 +1,34 @@
+#--------------------------------------------------------------
+# EVGEN configuration
+#--------------------------------------------------------------
+evgenConfig.process     = "bbH H->ZZ->4l"
+evgenConfig.description = "POWHEG+PYTHIA8+EVTGEN, H+jet production via bbH with MiNLO and A14 tune, ZZ->4l decay (no tau)"
+evgenConfig.keywords    = [ "SM", "Higgs", "SMHiggs", "ZZ", "mH125" ]
+evgenConfig.contact     = [ 'guglielmo.frattari@cern.ch' ]
+evgenConfig.inputFilesPerJob = 1
+evgenConfig.nEventsPerJob    = 10000
+
+#--------------------------------------------------------------
+# Pythia8 showering
+#--------------------------------------------------------------
+include('Pythia8_i/Pythia8_A14_NNPDF23LO_EvtGen_Common.py')
+include('Pythia8_i/Pythia8_Powheg_Main31.py')
+genSeq.Pythia8.Commands += [ 'Powheg:pTHard = 0' ]
+genSeq.Pythia8.Commands += [ 'Powheg:NFinal = 3' ]
+genSeq.Pythia8.Commands += [ 'Powheg:pTdef = 2' ]
+genSeq.Pythia8.Commands += [ 'Powheg:veto = 1' ]
+genSeq.Pythia8.Commands += [ 'Powheg:vetoCount = 3' ]
+genSeq.Pythia8.Commands += [ 'Powheg:pTemt  = 0' ]
+genSeq.Pythia8.Commands += [ 'Powheg:emitted = 0' ]
+genSeq.Pythia8.Commands += [ 'Powheg:MPIveto = 0' ]
+
+
+#--------------------------------------------------------------
+# H->ZZ->4l decay
+#--------------------------------------------------------------
+genSeq.Pythia8.Commands += [ '25:onMode = off',
+                             '25:onIfMatch = 23 23',
+                             '23:onMode = off',
+                             '23:mMin = 2.0',
+                             '23:onIfMatch = 11 11',
+                             '23:onIfMatch = 13 13' ]
diff --git a/601xxx/601635/log.generate.short b/601xxx/601635/log.generate.short
new file mode 100644
index 0000000000..9da163463d
--- /dev/null
+++ b/601xxx/601635/log.generate.short
@@ -0,0 +1,7 @@
+- estimated CPU for CI job = 0.00 hrs
+- using release =  AthGeneration-22.6.19
+- ecmEnergy =  13600.0
+- inputGeneratorFile =  /eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000002.tar.gz.1,/eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000008.tar.gz.1
+- randomSeed =  9451
+- EVNT to EVNT =  False
+- LHEonly =  False
\ No newline at end of file
diff --git a/601xxx/601635/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_tauFilt.py b/601xxx/601635/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_tauFilt.py
new file mode 100644
index 0000000000..274cc387fd
--- /dev/null
+++ b/601xxx/601635/mc.PhPy8EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_tauFilt.py
@@ -0,0 +1,45 @@
+#--------------------------------------------------------------
+# EVGEN configuration
+#--------------------------------------------------------------
+evgenConfig.process     = "bbH H->ZZ->4l"
+evgenConfig.description = "POWHEG+PYTHIA8+EVTGEN, H+jet production via bbH with MiNLO and A14 tune, ZZ->4l decay with tau filter"
+evgenConfig.keywords    = [ "SM", "Higgs", "SMHiggs", "ZZ", "mH125" ]
+evgenConfig.contact     = [ 'guglielmo.frattari@cern.ch' ]
+evgenConfig.inputFilesPerJob = 2
+evgenConfig.nEventsPerJob    = 10000
+
+#--------------------------------------------------------------
+# Pythia8 showering
+#--------------------------------------------------------------
+include('Pythia8_i/Pythia8_A14_NNPDF23LO_EvtGen_Common.py')
+include('Pythia8_i/Pythia8_Powheg_Main31.py')
+genSeq.Pythia8.Commands += [ 'Powheg:pTHard = 0' ]
+genSeq.Pythia8.Commands += [ 'Powheg:NFinal = 3' ]
+genSeq.Pythia8.Commands += [ 'Powheg:pTdef = 2' ]
+genSeq.Pythia8.Commands += [ 'Powheg:veto = 1' ]
+genSeq.Pythia8.Commands += [ 'Powheg:vetoCount = 3' ]
+genSeq.Pythia8.Commands += [ 'Powheg:pTemt  = 0' ]
+genSeq.Pythia8.Commands += [ 'Powheg:emitted = 0' ]
+genSeq.Pythia8.Commands += [ 'Powheg:MPIveto = 0' ]
+
+
+#--------------------------------------------------------------
+# H->ZZ->4l decay
+#--------------------------------------------------------------
+genSeq.Pythia8.Commands += [ '25:onMode = off',
+                             '25:onIfMatch = 23 23',
+                             '23:onMode = off',
+                             '23:mMin = 2.0',
+                             '23:onIfMatch = 11 11',
+                             '23:onIfMatch = 13 13',
+                             '23:onIfMatch = 15 15' ]
+
+#------------------
+# Smart tau filter
+#------------------
+include('GeneratorFilters/xAODXtoVVDecayFilterExtended_Common.py')
+filtSeq.xAODXtoVVDecayFilterExtended.PDGGrandParent = 25
+filtSeq.xAODXtoVVDecayFilterExtended.PDGParent = 23
+filtSeq.xAODXtoVVDecayFilterExtended.StatusParent = 22
+filtSeq.xAODXtoVVDecayFilterExtended.PDGChild1 = [15]
+filtSeq.xAODXtoVVDecayFilterExtended.PDGChild2 = [11,13,15]
diff --git a/601xxx/601636/log.generate.short b/601xxx/601636/log.generate.short
new file mode 100644
index 0000000000..178a612321
--- /dev/null
+++ b/601xxx/601636/log.generate.short
@@ -0,0 +1,7 @@
+- estimated CPU for CI job = 0.00 hrs
+- using release =  AthGeneration-22.6.19
+- ecmEnergy =  13600.0
+- inputGeneratorFile =  /eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000002.tar.gz.1
+- randomSeed =  17920
+- EVNT to EVNT =  False
+- LHEonly =  False
\ No newline at end of file
diff --git a/601xxx/601636/mc.PhH7EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py b/601xxx/601636/mc.PhH7EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py
new file mode 100644
index 0000000000..15d3cfea1f
--- /dev/null
+++ b/601xxx/601636/mc.PhH7EG_PDF4LHC21_bbH125_MINLO_ZZ4lep_notau.py
@@ -0,0 +1,38 @@
+#--------------------------------------------------------------
+# EVGEN configuration
+#--------------------------------------------------------------
+evgenConfig.process     = "bbH H->ZZ->4l"
+evgenConfig.description = "POWHEG+Herwig7, H+jet production via bbH with MiNLO and A14 tune, ZZ->4l decay (no tau)"
+evgenConfig.keywords    = [ "SM", "Higgs", "SMHiggs", "ZZ", "mH125" ]
+evgenConfig.generators       += [ 'Powheg', 'Herwig7' ]
+evgenConfig.contact     = [ 'guglielmo.frattari@cern.ch' ]
+evgenConfig.tune       = "H7UE"
+evgenConfig.inputFilesPerJob = 1
+evgenConfig.nEventsPerJob    = 10000
+
+#--------------------------------------------------------------
+# Herwig showering
+#--------------------------------------------------------------
+include("Herwig7_i/Herwig7_LHEF.py")
+
+# configure Herwig7
+Herwig7Config.me_pdf_commands(order="NLO", name="PDF4LHC21_40_pdfas")
+Herwig7Config.lhef_powhegbox_commands(lhe_filename=runArgs.inputGeneratorFile, me_pdf_order="NLO")
+
+# add EvtGen
+include("Herwig7_i/Herwig71_EvtGen.py")
+
+# only consider H->ZZ devays
+Herwig7Config.add_commands("""
+# force H->ZZ decays
+do /Herwig/Particles/h0:SelectDecayModes h0->Z0,Z0;
+# print out Higgs decays modes and branching ratios to the terminal/log.generate
+do /Herwig/Particles/h0:PrintDecayModes
+# force Z->ee/mumu decays
+do /Herwig/Particles/Z0:SelectDecayModes Z0->e-,e+; Z0->mu-,mu+;
+# print out Z decays modes and branching ratios to the terminal/log.generate
+do /Herwig/Particles/Z0:PrintDecayModes
+""")
+
+# run Herwig7
+Herwig7Config.run()
-- 
GitLab


From e4fbd218f27d4574eb1c631f6158d47f65d5dbbb Mon Sep 17 00:00:00 2001
From: Daniela Rebuzzi <drebuzzi@lxplus787.cern.ch>
Date: Tue, 13 Dec 2022 10:34:31 +0100
Subject: [PATCH 2/6] Chenge number of files per job [skip modfiles]

---
 601xxx/601599/mc.PhPy8EG_PDF4LHC21_VBFH125_WWlvlv.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/601xxx/601599/mc.PhPy8EG_PDF4LHC21_VBFH125_WWlvlv.py b/601xxx/601599/mc.PhPy8EG_PDF4LHC21_VBFH125_WWlvlv.py
index 913f9b0293..aa97057285 100644
--- a/601xxx/601599/mc.PhPy8EG_PDF4LHC21_VBFH125_WWlvlv.py
+++ b/601xxx/601599/mc.PhPy8EG_PDF4LHC21_VBFH125_WWlvlv.py
@@ -6,7 +6,7 @@ evgenConfig.description      = "POWHEG+PYTHIA8+EVTGEN, VBF H->WW->lvlv mh=125 Ge
 evgenConfig.keywords         = [ "SM", "Higgs", "SMHiggs", "WW", "mH125", "VBF" ]
 evgenConfig.contact          = [ 'matous.vozak@cern.ch' ]
 evgenConfig.generators       = [ 'Powheg','Pythia8','EvtGen' ]
-evgenConfig.inputFilesPerJob = 12
+evgenConfig.inputFilesPerJob = 2
 evgenConfig.nEventsPerJob    = 10000
 
 #--------------------------------------------------------------
-- 
GitLab


From 65a48d6bbc67e279d85c9cd4671a1a1c11033c54 Mon Sep 17 00:00:00 2001
From: Daniela Rebuzzi <drebuzzi@lxplus787.cern.ch>
Date: Tue, 13 Dec 2022 10:52:05 +0100
Subject: [PATCH 3/6] change nEventsPerJob [skip modfiles]

-- 
GitLab


From e1d8bebd74f084565ff4ec86a747a07659940249 Mon Sep 17 00:00:00 2001
From: Daniela Rebuzzi <drebuzzi@lxplus787.cern.ch>
Date: Tue, 13 Dec 2022 10:54:47 +0100
Subject: [PATCH 4/6] change nEventsPerJob [skip modfiles]

-- 
GitLab


From 8e3eff033d524a17b84fd48a5a8ef43845114e72 Mon Sep 17 00:00:00 2001
From: mcgensvc <mcgensvc@cern.ch>
Date: Tue, 13 Dec 2022 10:58:14 +0100
Subject: [PATCH 5/6] Commit: e1d8bebd pipeline succeeded. Removing
 log.generate files

---
 601xxx/601634/log.generate.short | 7 -------
 601xxx/601635/log.generate.short | 7 -------
 601xxx/601636/log.generate.short | 7 -------
 3 files changed, 21 deletions(-)
 delete mode 100644 601xxx/601634/log.generate.short
 delete mode 100644 601xxx/601635/log.generate.short
 delete mode 100644 601xxx/601636/log.generate.short

diff --git a/601xxx/601634/log.generate.short b/601xxx/601634/log.generate.short
deleted file mode 100644
index 4e3b11cd17..0000000000
--- a/601xxx/601634/log.generate.short
+++ /dev/null
@@ -1,7 +0,0 @@
-- estimated CPU for CI job = 0.00 hrs
-- using release =  AthGeneration-22.6.19
-- ecmEnergy =  13600.0
-- inputGeneratorFile =  /eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000002.tar.gz.1
-- randomSeed =  10361
-- EVNT to EVNT =  False
-- LHEonly =  False
\ No newline at end of file
diff --git a/601xxx/601635/log.generate.short b/601xxx/601635/log.generate.short
deleted file mode 100644
index 9da163463d..0000000000
--- a/601xxx/601635/log.generate.short
+++ /dev/null
@@ -1,7 +0,0 @@
-- estimated CPU for CI job = 0.00 hrs
-- using release =  AthGeneration-22.6.19
-- ecmEnergy =  13600.0
-- inputGeneratorFile =  /eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000002.tar.gz.1,/eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000008.tar.gz.1
-- randomSeed =  9451
-- EVNT to EVNT =  False
-- LHEonly =  False
\ No newline at end of file
diff --git a/601xxx/601636/log.generate.short b/601xxx/601636/log.generate.short
deleted file mode 100644
index 178a612321..0000000000
--- a/601xxx/601636/log.generate.short
+++ /dev/null
@@ -1,7 +0,0 @@
-- estimated CPU for CI job = 0.00 hrs
-- using release =  AthGeneration-22.6.19
-- ecmEnergy =  13600.0
-- inputGeneratorFile =  /eos/home-g/gfrattar/hzz/run3/mc21_13p6TeV.601524.PhPy8EG_PDF4LHC21_4FS_A14NNPDF_bbH.evgen.TXT.e8472/TXT.30993839._000002.tar.gz.1
-- randomSeed =  17920
-- EVNT to EVNT =  False
-- LHEonly =  False
\ No newline at end of file
-- 
GitLab


From f61aa445909eee05ad7adaf5455f407a3c7acf07 Mon Sep 17 00:00:00 2001
From: Christian Gutschow <chris.g@cern.ch>
Date: Tue, 13 Dec 2022 11:05:28 +0100
Subject: [PATCH 6/6] change nFilesPerJob [skip modfiles]

-- 
GitLab