CMS 3D CMS Logo

singletopHLTEventDQM_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 SingleTopSingleMuonHLTOfflineDQM = DQMEDAnalyzer('TopSingleLeptonHLTOfflineDQM',
5  ## ------------------------------------------------------
6  ## SETUP
7 
11  setup = cms.PSet(
12  ## sub-directory to write the monitor histograms to
13  ## [mandatory] : should not be changed w/o explicit
14  ## communication to TopCom!
15  directory = cms.string("HLT/TOP/SingleTop/SingleMuon/"),
16  ## [mandatory]
17  sources = cms.PSet(
18  muons = cms.InputTag("muons"),
19  elecs = cms.InputTag("gedGsfElectrons"),
20  jets = cms.InputTag("ak4PFJetsCHS"),
21  mets = cms.VInputTag("met", "tcMet", "pfMet"),
22  pvs = cms.InputTag("offlinePrimaryVertices")
23 
24  ),
25  ## [optional] : when omitted all monitoring plots for primary vertices
26  ## will be filled w/o extras
27  pvExtras = cms.PSet(
28  ## when omitted electron plots will be filled w/o additional pre-
29  ## selection of the primary vertex candidates
30  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
31  ),
32  ## [optional] : when omitted all monitoring plots for muons
33  ## will be filled w/o extras
34  muonExtras = cms.PSet(
35  ## when omitted muon plots will be filled w/o additional pre-
36  ## selection of the muon candidates
37  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1"),
38  ## when omitted isolated muon multiplicity plot will be equi-
39  ## valent to inclusive muon multiplicity plot
40  isolation = cms.string("(pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.2"),
41  ),
42  ## [optional] : when omitted all monitoring plots for jets
43  ## will be filled w/o extras
44  jetExtras = cms.PSet(
45  ## when omitted monitor plots for pt will be filled from uncorrected
46  ## jets
47  #jetCorrector = cms.string("ak4PFCHSL2L3"),
48  ## when omitted no extra selection will be applied on jets before
49  ## filling the monitor histograms; if jetCorrector is present the
50  ## selection will be applied to corrected jets
51  select = cms.string("pt>40 & abs(eta)<5.0"),
52  ## when omitted monitor histograms for b-tagging will not be filled
53  jetBTaggers = cms.PSet(
54  trackCountingEff = cms.PSet(
55  label = cms.InputTag("pfJetProbabilityBJetTags" ),
56  workingPoint = cms.double(0.275)
57  ),
58 # trackCountingPur = cms.PSet(
59 # label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
60 # workingPoint = cms.double(3.41)
61 # ),
62  secondaryVertex = cms.PSet(
63  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
64  workingPoint = cms.double(0.890)
65  )
66  ),
67  ),
68  ## [optional] : when omitted no mass window will be applied
69  ## for the W mass before filling the event monitoring plots
70  massExtras = cms.PSet(
71  lowerEdge = cms.double( 70.),
72  upperEdge = cms.double(110.)
73  ),
74  ## [optional] : when omitted the monitoring plots for triggering
75  ## will be empty
76  triggerExtras = cms.PSet(
77  src = cms.InputTag("TriggerResults","","HLT"),
78 ### Updating to HLT paths to be monitored by TOP PAG in 2017
79  paths = cms.vstring(['HLT_IsoMu27_v',
80  'HLT_Mu50_v'])
81  )
82  ),
83  ## ------------------------------------------------------
84  ## PRESELECTION
85 
90  preselection = cms.PSet(
91  trigger = cms.PSet(
92  src = cms.InputTag("TriggerResults","","HLT"),
93 ## Updating to HLT paths to be monitored by TOP PAG in 2017
94  select = cms.vstring(['HLT_IsoMu27_v',
95  'HLT_Mu50_v'])
96  ),
97  ## [optional] : when omitted no preselection is applied
98  vertex = cms.PSet(
99  src = cms.InputTag("offlinePrimaryVertices"),
100  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
101  )
102  ),
103  ## ------------------------------------------------------
104  ## SELECTION
105 
111  selection = cms.VPSet(
112  cms.PSet(
113  label = cms.string("Hlt:step0"),
114  src = cms.InputTag(""),
115  select = cms.string(""),
116  min = cms.int32(0),
117  max = cms.int32(0),
118  ),
119  cms.PSet(
120  label = cms.string("muons:step1"),
121  src = cms.InputTag("muons"),
122  select = cms.string("pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & globalTrack.normalizedChi2<10 & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0 & numberOfMatches>1 & (pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt)/pt<0.12"),
123  min = cms.int32(1),
124  max = cms.int32(1),
125  ),
126  #cms.PSet(
127  # label = cms.string("jets/pf:step2"),
128  # src = cms.InputTag("ak4PFJetsCHS"),
129  # jetCorrector = cms.string("ak4PFCHSL2L3"),
130  # select = cms.string("pt>40 & abs(eta)<5.0"),
131  # min = cms.int32(1),
132  #),
133  cms.PSet(
134  label = cms.string("jets/pf:step2"),
135  src = cms.InputTag("ak4PFJetsCHS"),
136  #jetCorrector = cms.string("ak4PFCHSL2L3"),
137  select = cms.string("pt>40 & abs(eta)<5.0"),
138  min = cms.int32(2),
139  ),
140  )
141 )
142 
143 SingleTopSingleElectronHLTOfflineDQM = DQMEDAnalyzer('TopSingleLeptonHLTOfflineDQM',
144 
145  ## ------------------------------------------------------
146  ## SETUP
147 
151  setup = cms.PSet(
152  ## sub-directory to write the monitor histograms to
153  ## [mandatory] : should not be changed w/o explicit
154  ## communication to TopCom!
155  directory = cms.string("HLT/TOP/SingleTop/SingleElectron/"),
156  ## [mandatory]
157  sources = cms.PSet(
158  muons = cms.InputTag("muons"),
159  elecs = cms.InputTag("gedGsfElectrons"),
160  jets = cms.InputTag("ak4PFJetsCHS"),
161  mets = cms.VInputTag("met", "tcMet", "pfMet"),
162  pvs = cms.InputTag("offlinePrimaryVertices")
163 
164  ),
165  ## [optional] : when omitted all monitoring plots for primary vertices
166  ## will be filled w/o extras
167  pvExtras = cms.PSet(
168  ## when omitted electron plots will be filled w/o additional pre-
169  ## selection of the primary vertex candidates
170  select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
171  ),
172  ## [optional] : when omitted all monitoring plots for electrons
173  ## will be filled w/o extras
174  elecExtras = cms.PSet(
175  ## when omitted electron plots will be filled w/o cut on electronId
176  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
177  #Soti
178  electronId = cms.PSet( src = cms.InputTag("egmGsfElectronIDsForDQM:cutBasedElectronID-Fall17-94X-V1-tight"), pattern = cms.int32(1) ),
179  ## when omitted electron plots will be filled w/o additional pre-
180  ## selection of the electron candidates
181  select = cms.string("pt>30 & abs(eta)<2.5"),
182  ## when omitted isolated electron multiplicity plot will be equi-
183  ## valent to inclusive electron multiplicity plot
184  #isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"), #Included in electronID
185  ),
186  ## [optional] : when omitted all monitoring plots for jets
187  ## will be filled w/o extras
188  jetExtras = cms.PSet(
189  ## when omitted monitor plots for pt will be filled from uncorrected
190  ## jets
191  #jetCorrector = cms.string("ak4PFCHSL2L3"),
192  ## when omitted no extra selection will be applied on jets before
193  ## filling the monitor histograms; if jetCorrector is present the
194  ## selection will be applied to corrected jets
195  select = cms.string("pt>40 & abs(eta)<5.0"),
196  ## when omitted monitor histograms for b-tagging will not be filled
197  jetBTaggers = cms.PSet(
198  trackCountingEff = cms.PSet(
199  label = cms.InputTag("pfJetProbabilityBJetTags" ),
200  workingPoint = cms.double(0.275)
201  ),
202 # trackCountingPur = cms.PSet(
203 # label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
204 # workingPoint = cms.double(3.41)
205 # ),
206  secondaryVertex = cms.PSet(
207  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
208  workingPoint = cms.double(0.890)
209  )
210  ),
211  ),
212  ## [optional] : when omitted no mass window will be applied
213  ## for the W mass before filling the event monitoring plots
214  massExtras = cms.PSet(
215  lowerEdge = cms.double( 70.),
216  upperEdge = cms.double(110.)
217  ),
218  ## [optional] : when omitted the monitoring plots for triggering
219  ## will be empty
220  triggerExtras = cms.PSet(
221  src = cms.InputTag("TriggerResults","","HLT"),
222 ### Updating to HLT paths to be monitored by TOP PAG in 2017
223  paths = cms.vstring(['HLT_Ele35_WPTight_Gsf_v',
224  'HLT_Ele38_WPTight_Gsf_v',
225  'HLT_Ele40_WPTight_Gsf_v'])
226  )
227  ),
228  ## ------------------------------------------------------
229  ## PRESELECTION
230 
235  preselection = cms.PSet(
236  trigger = cms.PSet(
237  src = cms.InputTag("TriggerResults","","HLT"),
238 ### Updating to HLT paths to be monitored by TOP PAG in 2017
239  select = cms.vstring(['HLT_Ele35_WPTight_Gsf_v',
240  'HLT_Ele38_WPTight_Gsf_v',
241  'HLT_Ele40_WPTight_Gsf_v'])
242  ),
243  ## [optional] : when omitted no preselection is applied
244  vertex = cms.PSet(
245  src = cms.InputTag("offlinePrimaryVertices"),
246  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
247  )
248  ),
249  ## ------------------------------------------------------
250  ## SELECTION
251 
257  selection = cms.VPSet(
258  cms.PSet(
259  label = cms.string("Hlt:step0"),
260  src = cms.InputTag(""),
261  select = cms.string(""),
262  min = cms.int32(0),
263  max = cms.int32(0),
264  ),
265  cms.PSet(
266  label = cms.string("elecs:step1"),
267  src = cms.InputTag("gedGsfElectrons"),
268  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
269  select = cms.string("pt>30 & abs(eta)<2.5 & (dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
270  min = cms.int32(1),
271  max = cms.int32(1),
272  ),
273  #cms.PSet(
274  # label = cms.string("jets/pf:step2"),
275  # src = cms.InputTag("ak4PFJetsCHS"),
276  # jetCorrector = cms.string("ak4PFCHSL2L3"),
277  # select = cms.string("pt>40 & abs(eta)<5.0"),
278  # min = cms.int32(1),
279  #),
280  cms.PSet(
281  label = cms.string("jets/pf:step2"),
282  src = cms.InputTag("ak4PFJetsCHS"),
283  #jetCorrector = cms.string("ak4PFCHSL2L3"),
284  select = cms.string("pt>40 & abs(eta)<5.0"),
285  min = cms.int32(2),
286  )
287  ),
288 )