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 
14 
15 # HLT_Mu37_Ele27_CaloIdL_MW
16 # HLT_Mu27_Ele37_CaloIdL_MW
17 # HLT_Mu37_TkMu27
18 #
19 # Additionally, we monitor mjj and mSD for PFHT1050 and AK8PFJet500
20 
21 # HT and AK8jet monitoring
22 
23 PFHT1050_Mjjmonitoring = hltMjjmonitoring.clone(
24  FolderName = 'HLT/B2G/PFHT1050',
25  jets = "ak8PFJetsPuppi",
26  jetSelection = "pt > 200 && eta < 2.4",
27  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_PFHT1050_v*"])
28 )
29 
30 PFHT1050_Softdropmonitoring = hltSoftdropmonitoring.clone(
31  FolderName = 'HLT/B2G/PFHT1050',
32  jetSelection = "pt > 65 && eta < 2.4",
33  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_PFHT1050_v*"])
34 )
35 
36 AK8PFJet500_Mjjmonitoring = hltMjjmonitoring.clone(
37  FolderName = 'HLT/B2G/AK8PFJet500',
38  jets = "ak8PFJetsPuppi",
39  jetSelection = "pt > 200 && eta < 2.4",
40  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet500_v*"])
41 )
42 
43 AK8PFJet500_Softdropmonitoring = hltSoftdropmonitoring.clone(
44  FolderName = 'HLT/B2G/AK8PFJet500',
45  jetSelection = "pt > 65 && eta < 2.4",
46  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet500_v*"])
47 )
48 
49 # AK8PFHT800_TrimMass50 monitoring
50 
51 AK8PFHT800_TrimMass50_HTmonitoring = hltHTmonitoring.clone(
52  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
53  jets = "ak8PFJetsPuppi",
54  jetSelection = "pt > 0 && eta < 2.5",
55  jetSelection_HT = "pt > 200 && eta < 2.5",
56  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
57 )
58 
59 AK8PFHT800_TrimMass50_Mjjmonitoring = hltMjjmonitoring.clone(
60  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
61  jets = "ak8PFJetsPuppi",
62  jetSelection = "pt > 200 && eta < 2.4",
63  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
64 )
65 
66 AK8PFHT800_TrimMass50_Softdropmonitoring = hltSoftdropmonitoring.clone(
67  FolderName = 'HLT/B2G/AK8PFHT800_TrimMass50',
68  jetSelection = "pt > 65 && eta < 2.4",
69  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFHT800_TrimMass50_v*"])
70 )
71 
72 # AK8PFJet400_TrimMass30 monitoring
73 
74 AK8PFJet400_TrimMass30_PromptMonitoring = hltJetMETmonitoring.clone(
75  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
76  ptcut = 400,
77  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"])
78 )
79 
80 AK8PFJet400_TrimMass30_Mjjmonitoring = hltMjjmonitoring.clone(
81  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
82  jets = "ak8PFJetsPuppi",
83  jetSelection = "pt > 200 && eta < 2.4",
84  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"])
85 )
86 
87 AK8PFJet400_TrimMass30_Softdropmonitoring = hltSoftdropmonitoring.clone(
88  FolderName = 'HLT/B2G/AK8PFJet400_TrimMass30',
89  jetSelection = "pt > 200 && eta < 2.4",
90  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_TrimMass30_v*"]),
91  histoPSet = dict(
92  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
93  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
94  )
95 )
96 
97 # AK8PFJet400_MassSD30 monitoring
98 
99 AK8PFJet400_MassSD30_PromptMonitoring = hltJetMETmonitoring.clone(
100  FolderName = 'HLT/B2G/AK8PFJet400_MassSD30',
101  ptcut = 400,
102  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_MassSD30_v*"])
103 )
104 
105 AK8PFJet400_MassSD30_Mjjmonitoring = hltMjjmonitoring.clone(
106  FolderName = 'HLT/B2G/AK8PFJet400_MassSD30',
107  jets = "ak8PFJetsPuppi",
108  jetSelection = "pt > 200 && eta < 2.4",
109  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8PFJet400_MassSD30_v*"])
110 )
111 
112 AK8PFJet400_MassSD30_Softdropmonitoring = hltSoftdropmonitoring.clone(
113  FolderName = 'HLT/B2G/AK8PFJet400_MassSD30',
114  jetSelection = "pt > 200 && eta < 2.4",
115  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8PFJet400_MassSD30_v*"]),
116  histoPSet = dict(
117  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
118  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
119  )
120 )
121 
122 # AK8DiPFJet250_250_MassSD30 monitoring
123 
124 AK8DiPFJet250_250_MassSD30_PromptMonitoring = hltJetMETmonitoring.clone(
125  FolderName = 'HLT/B2G/AK8DiPFJet250_250_MassSD30',
126  ptcut = 400,
127  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8DiPFJet250_250_MassSD30_v*"])
128 )
129 
130 AK8DiPFJet250_250_MassSD30_Mjjmonitoring = hltMjjmonitoring.clone(
131  FolderName = 'HLT/B2G/AK8DiPFJet250_250_MassSD30',
132  jets = "ak8PFJetsPuppi",
133  jetSelection = "pt > 200 && eta < 2.4",
134  numGenericTriggerEventPSet= dict(hltPaths = ["HLT_AK8DiPFJet250_250_MassSD30_v*"])
135 )
136 
137 AK8DiPFJet250_250_MassSD30_Softdropmonitoring = hltSoftdropmonitoring.clone(
138  FolderName = 'HLT/B2G/AK8DiPFJet250_250_MassSD30',
139  jetSelection = "pt > 200 && eta < 2.4",
140  numGenericTriggerEventPSet = dict(hltPaths = ["HLT_AK8DiPFJet250_250_MassSD30_v*"]),
141  histoPSet = dict(
142  htBinning = [0., 10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130., 140., 150., 160., 170., 180., 190., 200., 210., 220., 230., 240., 250., 260., 270., 280., 290., 300., 310., 320., 330., 340., 350.],
143  htPSet = dict(nbins = 200, xmin = -0.5, xmax = 19999.5)
144  )
145 )
146 
147 # Lepton cross trigger monitoring
148 
149 hltDQMonitorB2G_MuEle = hltTOPmonitoring.clone(
150  FolderName = 'HLT/B2G/Dileptonic/HLT_MuXX_EleXX_CaloIdL_MW',
151  nelectrons = 1,
152  eleSelection = 'pt>20 & abs(eta)<2.5',
153  nmuons = 1,
154  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  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_Ele27_CaloIdL_MW_v*', 'HLT_Mu27_Ele37_CaloIdL_MW_v*'])
156 )
157 
158 hltDQMonitorB2G_MuTkMu = hltTOPmonitoring.clone(
159  FolderName = 'HLT/B2G/Dileptonic/HLT_Mu37_TkMu27',
160  nmuons = 2,
161  muoSelection = 'pt>20 & abs(eta)<2.4 & ((pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25) & isPFMuon & (isTrackerMuon || isGlobalMuon)',
162  numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu37_TkMu27_v*'])
163 )
164 
165 
166 # the sequence
167 
168 b2gMonitorHLT = cms.Sequence(
169 
170  PFHT1050_Mjjmonitoring +
171 
172  AK8PFJet500_Mjjmonitoring +
173 
174  AK8PFHT800_TrimMass50_HTmonitoring +
175  AK8PFHT800_TrimMass50_Mjjmonitoring +
176 
177  AK8PFJet400_TrimMass30_PromptMonitoring +
178  AK8PFJet400_TrimMass30_Mjjmonitoring +
179 
180  AK8PFJet400_MassSD30_PromptMonitoring +
181  AK8PFJet400_MassSD30_Mjjmonitoring +
182 
183  AK8DiPFJet250_250_MassSD30_PromptMonitoring +
184  AK8DiPFJet250_250_MassSD30_Mjjmonitoring +
185 
186  B2GegHLTDQMOfflineTnPSource
187 
188  * hltDQMonitorB2G_MuEle
189  * hltDQMonitorB2G_MuTkMu
190 
191  , cms.Task(B2GegmGsfElectronIDsForDQM)
192 )
193 
194 
198 b2gHLTDQMSourceWithRECO = cms.Sequence(
199  PFHT1050_Softdropmonitoring +
200  AK8PFJet500_Softdropmonitoring +
201  AK8PFHT800_TrimMass50_Softdropmonitoring +
202  AK8PFJet400_TrimMass30_Softdropmonitoring +
203  AK8PFJet400_MassSD30_Softdropmonitoring +
204  AK8DiPFJet250_250_MassSD30_Softdropmonitoring
205 )
206 
207 b2gHLTDQMSourceExtra = cms.Sequence(
208 )