185 thresholds = [30, 60, 80, 100, 160, 220, 300]
188 partialPathName =
"HLT_DiPFJetAve"+ str(t) +
"_HFJEC_"
190 ptBinHigh =
max(100, t*2)
191 ptBins =
min(100, ptBinHigh-ptBinLow)
195 triggerSelection = cms.string(partialPathName+
"*"),
196 handlerType = cms.string(
"FromHLT"),
197 partialPathName = cms.string(partialPathName),
198 partialFilterName = cms.string(
"ForHFJECBase"),
199 dqmhistolabel = cms.string(
"hltCaloJets"),
200 mainDQMDirname = cms.untracked.string(fsqdirname),
201 singleObjectsPreselection = cms.string(
"abs(eta)<1.4 || abs(eta) > 2.7 "),
202 singleObjectDrawables = cms.VPSet(),
203 combinedObjectSelection = cms.string(
"1==1"),
204 combinedObjectSortCriteria = cms.string(
"at(0).pt"),
205 combinedObjectDimension = cms.int32(1),
206 combinedObjectDrawables = cms.VPSet(
207 cms.PSet (name = cms.string(
"pt"), expression = cms.string(
"at(0).pt"), bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
208 cms.PSet (name = cms.string(
"eta"), expression = cms.string(
"at(0).eta"), bins = cms.int32(104), min = cms.double(-5.2), max = cms.double(5.2))
214 triggerSelection = cms.string(partialPathName+
"*"),
215 handlerType = cms.string(
"FromHLT"),
216 partialPathName = cms.string(partialPathName),
217 partialFilterName = cms.string(
"hltL1"),
218 dqmhistolabel = cms.string(
"l1"),
219 mainDQMDirname = cms.untracked.string(fsqdirname),
220 singleObjectsPreselection = cms.string(
"1==1"),
221 singleObjectDrawables = cms.VPSet(),
222 combinedObjectSelection = cms.string(
"1==1"),
223 combinedObjectSortCriteria = cms.string(
"at(0).pt"),
224 combinedObjectDimension = cms.int32(1),
225 combinedObjectDrawables = cms.VPSet(
226 cms.PSet (name = cms.string(
"pt"), expression = cms.string(
"at(0).pt"), bins = cms.int32(256/4), min = cms.double(0), max = cms.double(256)),
227 cms.PSet (name = cms.string(
"eta"), expression = cms.string(
"at(0).eta"), bins = cms.int32(104/4), min = cms.double(-5.2), max = cms.double(5.2))
233 hltPFSingle = cms.PSet(
234 triggerSelection = cms.string(partialPathName+"*"),
235 handlerType = cms.string("FromHLT"),
236 partialPathName = cms.string(partialPathName),
237 partialFilterName = cms.string("hltDiPFJetAve"),
238 dqmhistolabel = cms.string("hltpfsingle"),
239 mainDQMDirname = cms.untracked.string(fsqdirname),
240 singleObjectsPreselection = cms.string("abs(eta)<1.4 || abs(eta) > 2.7 "),
241 singleObjectDrawables = cms.VPSet(),
242 combinedObjectSelection = cms.string("1==1"),
243 combinedObjectSortCriteria = cms.string("at(0).pt"),
244 combinedObjectDimension = cms.int32(1),
245 combinedObjectDrawables = cms.VPSet(
246 cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"), bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
247 cms.PSet (name = cms.string("eta"), expression = cms.string("at(0).eta"), bins = cms.int32(104), min = cms.double(-5.2), max = cms.double(5.2))
250 ret.append(hltPFSingle)
254 hltPFtopology = cms.PSet(
255 triggerSelection = cms.string(partialPathName+
"*"),
256 handlerType = cms.string(
"FromHLT"),
257 partialPathName = cms.string(partialPathName),
258 partialFilterName = cms.string(
"hltDiPFJetAve"),
259 dqmhistolabel = cms.string(
"hltPFJetsTopology"),
260 mainDQMDirname = cms.untracked.string(fsqdirname),
261 singleObjectsPreselection = cms.string(
"abs(eta)<1.4 || abs(eta) > 2.7 "),
262 singleObjectDrawables = cms.VPSet(),
263 combinedObjectSelection = cms.string(
"abs(at(0).eta())< 1.4 && abs(at(1).eta()) > 2.7 && abs(deltaPhi(at(0).phi, at(1).phi)) > 2.5"),
264 combinedObjectSortCriteria = cms.string(
"(at(0).pt+at(1).pt)/2"),
265 combinedObjectDimension = cms.int32(2),
266 combinedObjectDrawables = cms.VPSet(
267 cms.PSet (name = cms.string(
"deltaEta"), expression = cms.string(
"abs(at(0).eta-at(1).eta)"),
268 bins = cms.int32(70), min = cms.double(0), max = cms.double(7)),
269 cms.PSet (name = cms.string(
"deltaPhi"), expression = cms.string(
"abs(deltaPhi(at(0).phi, at(1).phi))"),
270 bins = cms.int32(100), min = cms.double(0), max = cms.double(3.2)),
271 cms.PSet (name = cms.string(
"ptAve"), expression = cms.string(
"(at(0).pt+at(1).pt)/2"),
272 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
273 cms.PSet (name = cms.string(
"ptTag"), expression = cms.string(
"? abs(at(0).eta) < 2 ? at(0).pt : at(1).pt "),
274 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
275 cms.PSet (name = cms.string(
"ptProbe"), expression = cms.string(
"? abs(at(0).eta) > 2 ? at(0).pt : at(1).pt "),
276 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
280 ret.append(hltPFtopology)
289 triggerSelection = cms.string(partialPathName+"*"),
290 handlerType = cms.string("FromRecoCandidate"),
291 inputCol = cms.InputTag("ak4PFJetsCHS"),
292 partialPathName = cms.string(partialPathName),
293 partialFilterName = cms.string("hltDiPFJetAve"),
294 dqmhistolabel = cms.string("recoJet"),
295 mainDQMDirname = cms.untracked.string(fsqdirname),
296 singleObjectsPreselection = cms.string("pt > + "+str(recoThr) +" && (abs(eta)<1.3 || abs(eta) > 2.8) "),
297 singleObjectDrawables = cms.VPSet(),
298 combinedObjectSelection = cms.string("1==1"),
299 combinedObjectSortCriteria = cms.string("at(0).pt"),
300 combinedObjectDimension = cms.int32(1),
301 combinedObjectDrawables = cms.VPSet(
302 cms.PSet (name = cms.string("pt"), expression = cms.string("at(0).pt"), bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
303 cms.PSet (name = cms.string("eta"), expression = cms.string("at(0).eta"), bins = cms.int32(52), min = cms.double(-5.2), max = cms.double(5.2))
309 recoPFtopology = cms.PSet(
310 triggerSelection = cms.string(partialPathName+
"*"),
311 handlerType = cms.string(
"RecoPFJetWithJEC"),
312 PFJetCorLabel = cms.InputTag(
"ak4PFL1FastL2L3Corrector"),
313 inputCol = cms.InputTag(
"ak4PFJetsCHS"),
314 partialPathName = cms.string(partialPathName),
315 partialFilterName = cms.string(
"hltDiPFJetAve"),
316 dqmhistolabel = cms.string(
"recoPFJetsTopology"),
317 mainDQMDirname = cms.untracked.string(fsqdirname),
318 singleObjectsPreselection = cms.string(
"pt > "+str(recoThr) +
" && abs(eta)<1.4 || abs(eta) > 2.7 "),
319 singleObjectDrawables = cms.VPSet(),
320 combinedObjectSelection = cms.string(
"abs(at(0).eta())< 1.3 && abs(at(1).eta()) > 2.8 && abs(deltaPhi(at(0).phi, at(1).phi)) > 2.5"),
321 combinedObjectSortCriteria = cms.string(
"(at(0).pt+at(1).pt)/2"),
322 combinedObjectDimension = cms.int32(2),
323 combinedObjectDrawables = cms.VPSet(
324 cms.PSet (name = cms.string(
"deltaEta"), expression = cms.string(
"abs(at(0).eta-at(1).eta)"),
325 bins = cms.int32(70), min = cms.double(0), max = cms.double(7)),
326 cms.PSet (name = cms.string(
"deltaPhi"), expression = cms.string(
"abs(deltaPhi(at(0).phi, at(1).phi))"),
327 bins = cms.int32(100), min = cms.double(0), max = cms.double(3.2)),
328 cms.PSet (name = cms.string(
"ptAve"), expression = cms.string(
"(at(0).pt+at(1).pt)/2"),
329 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh)),
330 cms.PSet (name = cms.string(
"ptTag"), expression = cms.string(
"? abs(at(0).eta) < 2 ? at(0).pt : at(1).pt "),
331 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
332 cms.PSet (name = cms.string(
"ptProbe"), expression = cms.string(
"? abs(at(0).eta) > 2 ? at(0).pt : at(1).pt "),
333 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
334 cms.PSet (name = cms.string(
"ptAve_nominator"), expression = cms.string(
"(at(0).pt+at(1).pt)/2"),
335 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) ),
338 ret.append(recoPFtopology)
339 recoPFtopologyDenom = recoPFtopology.clone()
342 recoPFtopologyDenom.triggerSelection = cms.string(
"TRUE")
343 recoPFtopologyDenom.combinedObjectDrawables = cms.VPSet(
344 cms.PSet (name = cms.string(
"ptAve_denominator"), expression = cms.string(
"(at(0).pt+at(1).pt)/2"),
345 bins = cms.int32(ptBins), min = cms.double(ptBinLow), max = cms.double(ptBinHigh) )
347 ret.append(recoPFtopologyDenom)
350 ''' example on how to count objects
352 recoPFJetCnt = cms.PSet(
353 triggerSelection = cms.string(partialPathName+"*"),
354 handlerType = cms.string("RecoCandidateCounter"),
355 inputCol = cms.InputTag("ak4PFJetsCHS"),
356 partialPathName = cms.string(partialPathName),
357 partialFilterName = cms.string("hltDiPFJetAve"),
358 dqmhistolabel = cms.string("recoPFJetsCnt"),
359 mainDQMDirname = cms.untracked.string(fsqdirname),
360 singleObjectsPreselection = cms.string("pt > "+str(recoThr) +" && abs(eta)<1.4 || abs(eta) > 2.7 "),
361 singleObjectDrawables = cms.VPSet(),
362 combinedObjectSelection = cms.string("1==1"),
363 combinedObjectSortCriteria = cms.string('size()'),
364 combinedObjectDimension = cms.int32(1),
365 combinedObjectDrawables = cms.VPSet(
366 cms.PSet (name = cms.string("count"), expression = cms.string('at(0)'),
367 bins = cms.int32(30), min = cms.double(0), max = cms.double(30))
370 ret.append(recoPFJetCnt)