From d6a7259654c4baf6c8936fa5e2c25158c8910aad Mon Sep 17 00:00:00 2001
From: Goetz Gaycken <goetz.gaycken@cern.ch>
Date: Tue, 3 Oct 2017 17:49:12 +0200
Subject: [PATCH] Updated HIGG5D1 and HIGG5D2 missing ET trigger for 2017.

Former-commit-id: 02859c968432da2758fa28efb4710f1355e767b3
---
 .../DerivationFrameworkHiggs/share/HIGG5D1.py | 18 ++++++++++++++++++
 .../DerivationFrameworkHiggs/share/HIGG5D2.py | 19 +++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D1.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D1.py
index f13e57325a0c..dc905300a223 100644
--- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D1.py
+++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D1.py
@@ -215,6 +215,24 @@ if (beamEnergy > 6.0e+06): # 13 TeV, name should be HLT_xxx
     triglist.append("HLT_xe120_tc_lcw_wEFMu")
     triglist.append("HLT_xe120_tc_em")
     triglist.append("HLT_noalg_L1J400") # added on Nov 2016
+print 'DEBUG projectName=%s [%s;%s; cond=%s]' % (rec.projectName.get_Value(),type(rec.projectName),dir(rec.projectName),rec.projectName.get_Value() in ['data17_13TeV','data18_13TeV','mc16_13TeV', 'mc17_13TeV', 'mc18_13TeV'] )
+if (beamEnergy > 6.0e+06 and rec.projectName.get_Value() in ['data17_13TeV','data18_13TeV','mc16_13TeV', 'mc17_13TeV', 'mc18_13TeV']) :  # 13 TeV,   and project 2017:
+    triglist.append("HLT_e28_lhtight_nod0_ivarloose")
+    triglist.append("HLT_e28_lhtight_nod0_ivarloose_L1EM24VHIM")
+    triglist.append("HLT_e26_lhtight_nod0_ivarloose_L1EM22VHIM")
+    triglist.append("HLT_e60_lhmedium_nod0_L1EM24VHI")
+    triglist.append("HLT_e140_lhloose_nod0_L1EM24VHI")
+    triglist.append("HLT_e300_etcut_L1EM24VHI")
+    triglist.append("HLT_mu60")
+    triglist.append("HLT_xe110_pufit_L1XE60")
+    triglist.append("HLT_xe120_pufit_L1XE60")
+    triglist.append("HLT_xe120_mht_xe80_L1XE60")
+    triglist.append("HLT_xe110_pufit_L1XE55")
+    triglist.append("HLT_xe120_pufit_L1XE55")
+    triglist.append("HLT_xe120_mht_xe80_L1XE55")
+    triglist.append("HLT_xe110_pufit_L1XE50")
+    triglist.append("HLT_xe120_pufit_L1XE50")
+    triglist.append("HLT_xe120_mht_xe80_L1XE50")
 
     # triglist.append("L1_XE50")
     # triglist.append("L1_XE60")
diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D2.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D2.py
index 79c5a93e129e..ca98e2bf52d5 100644
--- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D2.py
+++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG5D2.py
@@ -265,6 +265,25 @@ if (beamEnergy > 6.0e+06): # 13 TeV, name should be HLT_xxx
     triglist.append("HLT_xe120_tc_lcw_wEFMu")
     triglist.append("HLT_xe120_tc_em")
     triglist.append("HLT_noalg_L1J400") # added on Nov 2016
+#print 'DEBUG projectName=%s [%s;%s]' % (rec.projectName.get_Value(),type(rec.projectName),dir(rec.projectName))
+print 'DEBUG projectName=%s [%s;%s; cond=%s]' % (rec.projectName.get_Value(),type(rec.projectName),dir(rec.projectName), rec.projectName.get_Value() in ['data17_13TeV','data18_13TeV','mc16_13TeV', 'mc17_13TeV', 'mc18_13TeV'] )
+if (beamEnergy > 6.0e+06 and rec.projectName.get_Value() in ['data17_13TeV','data18_13TeV','mc16_13TeV', 'mc17_13TeV', 'mc18_13TeV']) :  # 13 TeV,   and project 2017:
+    triglist.append("HLT_e28_lhtight_nod0_ivarloose")
+    triglist.append("HLT_e28_lhtight_nod0_ivarloose_L1EM24VHIM")
+    triglist.append("HLT_e26_lhtight_nod0_ivarloose_L1EM22VHIM")
+    triglist.append("HLT_e60_lhmedium_nod0_L1EM24VHI")
+    triglist.append("HLT_e140_lhloose_nod0_L1EM24VHI")
+    triglist.append("HLT_e300_etcut_L1EM24VHI")
+    triglist.append("HLT_mu60")
+    triglist.append("HLT_xe110_pufit_L1XE60")
+    triglist.append("HLT_xe120_pufit_L1XE60")
+    triglist.append("HLT_xe120_mht_xe80_L1XE60")
+    triglist.append("HLT_xe110_pufit_L1XE55")
+    triglist.append("HLT_xe120_pufit_L1XE55")
+    triglist.append("HLT_xe120_mht_xe80_L1XE55")
+    triglist.append("HLT_xe110_pufit_L1XE50")
+    triglist.append("HLT_xe120_pufit_L1XE50")
+    triglist.append("HLT_xe120_mht_xe80_L1XE50")
 
     # triglist.append("L1_EM18VH")
     # triglist.append("L1_EM20VH")
-- 
GitLab