test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
genericTrackCleaner_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 cleanPatTracks = cms.EDProducer("PATGenericParticleCleaner",
4  src = cms.InputTag("REPLACE_ME"),
5 
6  # preselection (any string-based cut on pat::GenericParticle)
7  preselection = cms.string(''),
8 
9  # overlap checking configurables
10  checkOverlaps = cms.PSet(
11  muons = cms.PSet(
12  src = cms.InputTag("cleanPatMuons"),
13  algorithm = cms.string("byDeltaR"),
14  preselection = cms.string(""),
15  deltaR = cms.double(0.3),
16  checkRecoComponents = cms.bool(True), # remove them if the use the same reco::Track
17  pairCut = cms.string(""),
18  requireNoOverlaps = cms.bool(True), # overlaps don't cause the electron to be discared
19  ),
20  electrons = cms.PSet(
21  src = cms.InputTag("cleanPatElectrons"),
22  algorithm = cms.string("byDeltaR"),
23  preselection = cms.string(""),
24  deltaR = cms.double(0.3),
25  checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
26  # as electrons have reco::GsfTrack, not reco::Track
27  pairCut = cms.string("0.5 < ele.pt/part.pt < 1.5"), # let's do a check on relative P_T
28  # 'part' is the generic particle, 'ele' the electron
29  requireNoOverlaps = cms.bool(True), # overlaps don't cause the electron to be discared
30  ),
31  ),
32 
33  # finalCut (any string-based cut on pat::GenericParticle)
34  finalCut = cms.string(''),
35 )