CMS 3D CMS Logo

B2GMonitoring_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.Trigger.JetMonitor_cfi import hltJetMETmonitoring
4 from DQMOffline.Trigger.HTMonitor_cfi import hltHTmonitoring
5 from DQMOffline.Trigger.MjjMonitor_cfi import hltMjjmonitoring
6 from DQMOffline.Trigger.SoftdropMonitor_cfi import hltSoftdropmonitoring
7 from DQMOffline.Trigger.B2GTnPMonitor_cfi import B2GegmGsfElectronIDsForDQM,B2GegHLTDQMOfflineTnPSource
8 from DQMOffline.Trigger.TopMonitor_cfi import hltTOPmonitoring
9 
10 # B2G triggers:
11 # HLT_PFHT1050_v*
12 # HLT_AK8PFJet500_v*
13 # HLT_AK8PFHT750_TrimMass50_v*
14 # HLT_AK8PFJet380_TrimMass30_v*
15 # HLT_AK8PFHT800_TrimMass50_v*
16 # HLT_AK8PFJet400_TrimMass30_v*
17 # HLT_AK8PFHT850_TrimMass50_v*
18 # HLT_AK8PFJet420_TrimMass30_v*
19 # HLT_AK8PFHT900_TrimMass50_v*
20 # HLT_AK8PFHT700_TrimR0p1PT0p03Mass50
21 
22 PFHT1050_Mjjmonitoring = hltMjjmonitoring.clone()
23 PFHT1050_Mjjmonitoring.FolderName = cms.string('HLT/B2G/PFHT1050')
24 PFHT1050_Mjjmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_PFHT1050_v*")
25 PFHT1050_Mjjmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
26 PFHT1050_Mjjmonitoring.jetSelection = cms.string("pt > 200 && eta < 2.4")
27 
28 PFHT1050_Softdropmonitoring = hltSoftdropmonitoring.clone()
29 PFHT1050_Softdropmonitoring.FolderName = cms.string('HLT/B2G/PFHT1050')
30 PFHT1050_Softdropmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_PFHT1050_v*")
31 PFHT1050_Softdropmonitoring.jetSelection = cms.string("pt > 65 && eta < 2.4")
32 
33 
34 AK8PFJet500_Mjjmonitoring = hltMjjmonitoring.clone()
35 AK8PFJet500_Mjjmonitoring.FolderName = cms.string('HLT/B2G/AK8PFJet500')
36 AK8PFJet500_Mjjmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFJet500_v*")
37 AK8PFJet500_Mjjmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
38 AK8PFJet500_Mjjmonitoring.jetSelection = cms.string("pt > 200 && eta < 2.4")
39 
40 AK8PFJet500_Softdropmonitoring = hltSoftdropmonitoring.clone()
41 AK8PFJet500_Softdropmonitoring.FolderName = cms.string('HLT/B2G/AK8PFJet500')
42 AK8PFJet500_Softdropmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFJet500_v*")
43 AK8PFJet500_Softdropmonitoring.jetSelection = cms.string("pt > 65 && eta < 2.4")
44 
45 
46 AK8PFHT750_TrimMass50_HTmonitoring = hltHTmonitoring.clone()
47 AK8PFHT750_TrimMass50_HTmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT750_TrimMass50')
48 AK8PFHT750_TrimMass50_HTmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT750_TrimMass50_v*")
49 AK8PFHT750_TrimMass50_HTmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
50 AK8PFHT750_TrimMass50_HTmonitoring.jetSelection = cms.string("pt > 0 && eta < 2.5")
51 AK8PFHT750_TrimMass50_HTmonitoring.jetSelection_HT = cms.string("pt > 200 && eta < 2.5")
52 
53 AK8PFHT750_TrimMass50_Mjjmonitoring = hltMjjmonitoring.clone()
54 AK8PFHT750_TrimMass50_Mjjmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT750_TrimMass50')
55 AK8PFHT750_TrimMass50_Mjjmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT750_TrimMass50_v*")
56 AK8PFHT750_TrimMass50_Mjjmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
57 AK8PFHT750_TrimMass50_Mjjmonitoring.jetSelection = cms.string("pt > 200 && eta < 2.4")
58 
59 AK8PFHT750_TrimMass50_Softdropmonitoring = hltSoftdropmonitoring.clone()
60 AK8PFHT750_TrimMass50_Softdropmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT750_TrimMass50')
61 AK8PFHT750_TrimMass50_Softdropmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT750_TrimMass50_v*")
62 AK8PFHT750_TrimMass50_Softdropmonitoring.jetSelection = cms.string("pt > 65 && eta < 2.4")
63 
64 
65 AK8PFHT800_TrimMass50_HTmonitoring = hltHTmonitoring.clone()
66 AK8PFHT800_TrimMass50_HTmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT800_TrimMass50')
67 AK8PFHT800_TrimMass50_HTmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT800_TrimMass50_v*")
68 AK8PFHT800_TrimMass50_HTmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
69 AK8PFHT800_TrimMass50_HTmonitoring.jetSelection = cms.string("pt > 0 && eta < 2.5")
70 AK8PFHT800_TrimMass50_HTmonitoring.jetSelection_HT = cms.string("pt > 200 && eta < 2.5")
71 
72 AK8PFHT800_TrimMass50_Mjjmonitoring = hltMjjmonitoring.clone()
73 AK8PFHT800_TrimMass50_Mjjmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT800_TrimMass50')
74 AK8PFHT800_TrimMass50_Mjjmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT800_TrimMass50_v*")
75 AK8PFHT800_TrimMass50_Mjjmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
76 AK8PFHT800_TrimMass50_Mjjmonitoring.jetSelection = cms.string("pt > 200 && eta < 2.4")
77 
78 AK8PFHT800_TrimMass50_Softdropmonitoring = hltSoftdropmonitoring.clone()
79 AK8PFHT800_TrimMass50_Softdropmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT800_TrimMass50')
80 AK8PFHT800_TrimMass50_Softdropmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT800_TrimMass50_v*")
81 AK8PFHT800_TrimMass50_Softdropmonitoring.jetSelection = cms.string("pt > 65 && eta < 2.4")
82 
83 
84 AK8PFHT850_TrimMass50_HTmonitoring = hltHTmonitoring.clone()
85 AK8PFHT850_TrimMass50_HTmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT850_TrimMass50')
86 AK8PFHT850_TrimMass50_HTmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT850_TrimMass50_v*")
87 AK8PFHT850_TrimMass50_HTmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
88 AK8PFHT850_TrimMass50_HTmonitoring.jetSelection = cms.string("pt > 0 && eta < 2.5")
89 AK8PFHT850_TrimMass50_HTmonitoring.jetSelection_HT = cms.string("pt > 200 && eta < 2.5")
90 
91 AK8PFHT850_TrimMass50_Mjjmonitoring = hltMjjmonitoring.clone()
92 AK8PFHT850_TrimMass50_Mjjmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT850_TrimMass50')
93 AK8PFHT850_TrimMass50_Mjjmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT850_TrimMass50_v*")
94 AK8PFHT850_TrimMass50_Mjjmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
95 AK8PFHT850_TrimMass50_Mjjmonitoring.jetSelection = cms.string("pt > 200 && eta < 2.4")
96 
97 AK8PFHT850_TrimMass50_Softdropmonitoring = hltSoftdropmonitoring.clone()
98 AK8PFHT850_TrimMass50_Softdropmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT850_TrimMass50')
99 AK8PFHT850_TrimMass50_Softdropmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT850_TrimMass50_v*")
100 AK8PFHT850_TrimMass50_Softdropmonitoring.jetSelection = cms.string("pt > 65 && eta < 2.4")
101 
102 
103 AK8PFHT900_TrimMass50_HTmonitoring = hltHTmonitoring.clone()
104 AK8PFHT900_TrimMass50_HTmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT900_TrimMass50')
105 AK8PFHT900_TrimMass50_HTmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT900_TrimMass50_v*")
106 AK8PFHT900_TrimMass50_HTmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
107 AK8PFHT900_TrimMass50_HTmonitoring.jetSelection = cms.string("pt > 0 && eta < 2.5")
108 AK8PFHT900_TrimMass50_HTmonitoring.jetSelection_HT = cms.string("pt > 200 && eta < 2.5")
109 
110 AK8PFHT900_TrimMass50_Mjjmonitoring = hltMjjmonitoring.clone()
111 AK8PFHT900_TrimMass50_Mjjmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT900_TrimMass50')
112 AK8PFHT900_TrimMass50_Mjjmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT900_TrimMass50_v*")
113 AK8PFHT900_TrimMass50_Mjjmonitoring.jets = cms.InputTag("ak8PFJetsCHS")
114 AK8PFHT900_TrimMass50_Mjjmonitoring.jetSelection = cms.string("pt > 200 && eta < 2.4")
115 
116 AK8PFHT900_TrimMass50_Softdropmonitoring = hltSoftdropmonitoring.clone()
117 AK8PFHT900_TrimMass50_Softdropmonitoring.FolderName = cms.string('HLT/B2G/AK8PFHT900_TrimMass50')
118 AK8PFHT900_TrimMass50_Softdropmonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFHT900_TrimMass50_v*")
119 AK8PFHT900_TrimMass50_Softdropmonitoring.jetSelection = cms.string("pt > 65 && eta < 2.4")
120 
121 
122 
123 AK8PFJet360_TrimMass30_PromptMonitoring = hltJetMETmonitoring.clone()
124 AK8PFJet360_TrimMass30_PromptMonitoring.FolderName = cms.string('HLT/B2G/AK8PFJet360_TrimMass30')
125 AK8PFJet360_TrimMass30_PromptMonitoring.ptcut = cms.double(360)
126 AK8PFJet360_TrimMass30_PromptMonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFJet360_TrimMass30_v*")
127 
128 AK8PFJet380_TrimMass30_PromptMonitoring = hltJetMETmonitoring.clone()
129 AK8PFJet380_TrimMass30_PromptMonitoring.FolderName = cms.string('HLT/B2G/AK8PFJet380_TrimMass30')
130 AK8PFJet380_TrimMass30_PromptMonitoring.ptcut = cms.double(380)
131 AK8PFJet380_TrimMass30_PromptMonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFJet380_TrimMass30_v*")
132 
133 AK8PFJet400_TrimMass30_PromptMonitoring = hltJetMETmonitoring.clone()
134 AK8PFJet400_TrimMass30_PromptMonitoring.FolderName = cms.string('HLT/B2G/AK8PFJet400_TrimMass30')
135 AK8PFJet400_TrimMass30_PromptMonitoring.ptcut = cms.double(400)
136 AK8PFJet400_TrimMass30_PromptMonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFJet400_TrimMass30_v*")
137 
138 AK8PFJet420_TrimMass30_PromptMonitoring = hltJetMETmonitoring.clone()
139 AK8PFJet420_TrimMass30_PromptMonitoring.FolderName = cms.string('HLT/B2G/AK8PFJet420_TrimMass30')
140 AK8PFJet420_TrimMass30_PromptMonitoring.ptcut = cms.double(420)
141 AK8PFJet420_TrimMass30_PromptMonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_AK8PFJet420_TrimMass30_v*")
142 
143 hltDQMonitorB2G_MuEle = hltTOPmonitoring.clone()
144 hltDQMonitorB2G_MuEle.FolderName = 'HLT/B2G/Dileptonic/HLT_MuXX_EleXX_CaloIdL_MW'
145 hltDQMonitorB2G_MuEle.nelectrons = 1
146 hltDQMonitorB2G_MuEle.eleSelection = 'pt>20 & abs(eta)<2.5'
147 hltDQMonitorB2G_MuEle.nmuons = 1
148 hltDQMonitorB2G_MuEle.muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)'
149 hltDQMonitorB2G_MuEle.numGenericTriggerEventPSet.hltPaths = ['HLT_Mu37_Ele27_CaloIdL_MW_v*', 'HLT_Mu27_Ele37_CaloIdL_MW_v*']
150 
151 hltDQMonitorB2G_MuTkMu = hltTOPmonitoring.clone()
152 hltDQMonitorB2G_MuTkMu.FolderName = 'HLT/B2G/Dileptonic/HLT_Mu37_TkMu27'
153 hltDQMonitorB2G_MuTkMu.nmuons = 2
154 hltDQMonitorB2G_MuTkMu.muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)'
155 hltDQMonitorB2G_MuTkMu.numGenericTriggerEventPSet.hltPaths = ['HLT_Mu37_TkMu27_v*']
156 
157 b2gMonitorHLT = cms.Sequence(
158 
159  PFHT1050_Mjjmonitoring +
160 # PFHT1050_Softdropmonitoring +
161 
162  AK8PFJet500_Mjjmonitoring +
163 # AK8PFJet500_Softdropmonitoring +
164 
165  AK8PFHT750_TrimMass50_HTmonitoring +
166  AK8PFHT750_TrimMass50_Mjjmonitoring +
167 # AK8PFHT750_TrimMass50_Softdropmonitoring +
168 
169  AK8PFHT800_TrimMass50_HTmonitoring +
170  AK8PFHT800_TrimMass50_Mjjmonitoring +
171 # AK8PFHT800_TrimMass50_Softdropmonitoring +
172 
173  AK8PFHT850_TrimMass50_HTmonitoring +
174  AK8PFHT850_TrimMass50_Mjjmonitoring +
175 # AK8PFHT850_TrimMass50_Softdropmonitoring +
176 
177  AK8PFHT900_TrimMass50_HTmonitoring +
178  AK8PFHT900_TrimMass50_Mjjmonitoring +
179 # AK8PFHT900_TrimMass50_Softdropmonitoring +
180 
181  AK8PFJet360_TrimMass30_PromptMonitoring +
182  AK8PFJet380_TrimMass30_PromptMonitoring +
183 
184  AK8PFJet400_TrimMass30_PromptMonitoring +
185  AK8PFJet420_TrimMass30_PromptMonitoring +
186 
187  B2GegHLTDQMOfflineTnPSource
188 
189  * hltDQMonitorB2G_MuEle
190  * hltDQMonitorB2G_MuTkMu
191 
192  , cms.Task(B2GegmGsfElectronIDsForDQM) ## unschedule execution [Use of electron VID requires this module being executed first]
193 )
194 
195 ## as reported in https://github.com/cms-sw/cmssw/issues/24444
196 ## it turned out that all softdrop modules rely on a jet collection which is available only if the miniAOD step is run @Tier0
197 ## ==> it is fine in the PromptReco workflow, but this collection is not available in the Express reconstruction
198 ## in addition, it is not available in the AOD (!!!!) ==> these modules needs to be run *WithRECO* step workflow (actually w/ the miniAOD step ....)
199 b2gHLTDQMSourceWithRECO = cms.Sequence(
200  PFHT1050_Softdropmonitoring +
201  AK8PFJet500_Softdropmonitoring +
202  AK8PFHT750_TrimMass50_Softdropmonitoring +
203  AK8PFHT800_TrimMass50_Softdropmonitoring +
204  AK8PFHT850_TrimMass50_Softdropmonitoring +
205  AK8PFHT900_TrimMass50_Softdropmonitoring
206 )
207 
208 b2gHLTDQMSourceExtra = cms.Sequence(
209 )