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  ## when omitted electron plots will be filled w/o additional pre-
178  ## selection of the electron candidates
179  select = cms.string("pt>30 & abs(eta)<2.5"),
180  ## when omitted isolated electron multiplicity plot will be equi-
181  ## valent to inclusive electron multiplicity plot
182  isolation = cms.string("(dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
183  ),
184  ## [optional] : when omitted all monitoring plots for jets
185  ## will be filled w/o extras
186  jetExtras = cms.PSet(
187  ## when omitted monitor plots for pt will be filled from uncorrected
188  ## jets
189  #jetCorrector = cms.string("ak4PFCHSL2L3"),
190  ## when omitted no extra selection will be applied on jets before
191  ## filling the monitor histograms; if jetCorrector is present the
192  ## selection will be applied to corrected jets
193  select = cms.string("pt>40 & abs(eta)<5.0"),
194  ## when omitted monitor histograms for b-tagging will not be filled
195  jetBTaggers = cms.PSet(
196  trackCountingEff = cms.PSet(
197  label = cms.InputTag("pfJetProbabilityBJetTags" ),
198  workingPoint = cms.double(0.275)
199  ),
200 # trackCountingPur = cms.PSet(
201 # label = cms.InputTag("pfTrackCountingHighPurBJetTags" ),
202 # workingPoint = cms.double(3.41)
203 # ),
204  secondaryVertex = cms.PSet(
205  label = cms.InputTag("pfCombinedInclusiveSecondaryVertexV2BJetTags"),
206  workingPoint = cms.double(0.890)
207  )
208  ),
209  ),
210  ## [optional] : when omitted no mass window will be applied
211  ## for the W mass before filling the event monitoring plots
212  massExtras = cms.PSet(
213  lowerEdge = cms.double( 70.),
214  upperEdge = cms.double(110.)
215  ),
216  ## [optional] : when omitted the monitoring plots for triggering
217  ## will be empty
218  triggerExtras = cms.PSet(
219  src = cms.InputTag("TriggerResults","","HLT"),
220 ### Updating to HLT paths to be monitored by TOP PAG in 2017
221  paths = cms.vstring(['HLT_Ele35_WPTight_Gsf_v',
222  'HLT_Ele38_WPTight_Gsf_v',
223  'HLT_Ele40_WPTight_Gsf_v'])
224  )
225  ),
226  ## ------------------------------------------------------
227  ## PRESELECTION
228 
233  preselection = cms.PSet(
234  trigger = cms.PSet(
235  src = cms.InputTag("TriggerResults","","HLT"),
236 ### Updating to HLT paths to be monitored by TOP PAG in 2017
237  select = cms.vstring(['HLT_Ele35_WPTight_Gsf_v',
238  'HLT_Ele38_WPTight_Gsf_v',
239  'HLT_Ele40_WPTight_Gsf_v'])
240  ),
241  ## [optional] : when omitted no preselection is applied
242  vertex = cms.PSet(
243  src = cms.InputTag("offlinePrimaryVertices"),
244  select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
245  )
246  ),
247  ## ------------------------------------------------------
248  ## SELECTION
249 
255  selection = cms.VPSet(
256  cms.PSet(
257  label = cms.string("Hlt:step0"),
258  src = cms.InputTag(""),
259  select = cms.string(""),
260  min = cms.int32(0),
261  max = cms.int32(0),
262  ),
263  cms.PSet(
264  label = cms.string("elecs:step1"),
265  src = cms.InputTag("gedGsfElectrons"),
266  #electronId = cms.PSet( src = cms.InputTag("mvaTrigV0"), pattern = cms.int32(1) ),
267  select = cms.string("pt>30 & abs(eta)<2.5 & (dr03TkSumPt+dr04EcalRecHitSumEt+dr04HcalTowerSumEt)/pt<0.1"),
268  min = cms.int32(1),
269  max = cms.int32(1),
270  ),
271  #cms.PSet(
272  # label = cms.string("jets/pf:step2"),
273  # src = cms.InputTag("ak4PFJetsCHS"),
274  # jetCorrector = cms.string("ak4PFCHSL2L3"),
275  # select = cms.string("pt>40 & abs(eta)<5.0"),
276  # min = cms.int32(1),
277  #),
278  cms.PSet(
279  label = cms.string("jets/pf:step2"),
280  src = cms.InputTag("ak4PFJetsCHS"),
281  #jetCorrector = cms.string("ak4PFCHSL2L3"),
282  select = cms.string("pt>40 & abs(eta)<5.0"),
283  min = cms.int32(2),
284  )
285  ),
286 )