CMS 3D CMS Logo

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