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