CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/PhysicsTools/PatAlgos/python/cleaningLayer1/genericTrackCleaner_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 cleanPatTracks = cms.EDProducer("PATGenericParticleCleaner",
00004     src = cms.InputTag("REPLACE_ME"), 
00005 
00006     # preselection (any string-based cut on pat::GenericParticle)
00007     preselection = cms.string(''),
00008 
00009     # overlap checking configurables
00010     checkOverlaps = cms.PSet(
00011         muons = cms.PSet(
00012            src       = cms.InputTag("cleanPatMuons"),
00013            algorithm = cms.string("byDeltaR"),
00014            preselection        = cms.string(""),
00015            deltaR              = cms.double(0.3),
00016            checkRecoComponents = cms.bool(True), # remove them if the use the same reco::Track
00017            pairCut             = cms.string(""),
00018            requireNoOverlaps   = cms.bool(True), # overlaps don't cause the electron to be discared
00019         ),
00020         electrons = cms.PSet(
00021            src       = cms.InputTag("cleanPatElectrons"),
00022            algorithm = cms.string("byDeltaR"),
00023            preselection        = cms.string(""),
00024            deltaR              = cms.double(0.3),
00025            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
00026                                                   # as electrons have reco::GsfTrack, not reco::Track
00027            pairCut             = cms.string("0.5 < ele.pt/part.pt < 1.5"),  # let's do a check on relative P_T
00028                                                                             # 'part' is the generic particle, 'ele' the electron
00029            requireNoOverlaps   = cms.bool(True), # overlaps don't cause the electron to be discared
00030         ),
00031     ),
00032 
00033     # finalCut (any string-based cut on pat::GenericParticle)
00034     finalCut = cms.string(''),
00035 )