Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 cocPatElectrons = cms.EDProducer("PATElectronCleaner",
0004     ## pat electron input source
0005     src = cms.InputTag("isolatedPatElectrons"), 
0006 
0007     # preselection (any string-based cut for pat::Electron)
0008     preselection = cms.string(''),
0009 
0010     # overlap checking configurables
0011     checkOverlaps = cms.PSet(
0012         muons = cms.PSet(
0013            src       = cms.InputTag("selectedPatMuons"),
0014            algorithm = cms.string("byDeltaR"),
0015            preselection        = cms.string(""),  # don't preselect the muons
0016            deltaR              = cms.double(0.3),
0017            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
0018            pairCut             = cms.string(""),
0019            requireNoOverlaps   = cms.bool(False), # overlaps don't cause the electron to be discared
0020         ),
0021         isolatedMuons = cms.PSet(
0022            src       = cms.InputTag("isolatedPatMuons"),
0023            algorithm = cms.string("byDeltaR"),
0024            preselection        = cms.string(""),  # don't preselect the muons
0025            deltaR              = cms.double(0.3),
0026            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
0027            pairCut             = cms.string(""),
0028            requireNoOverlaps   = cms.bool(False), # overlaps don't cause the electron to be discared
0029         )                                     
0030     ),
0031 
0032     # finalCut (any string-based cut for pat::Electron)
0033     finalCut = cms.string(''),
0034 )
0035 
0036 cocPatJets = cms.EDProducer("PATJetCleaner",
0037     src = cms.InputTag("selectedPatJets"), 
0038 
0039     # preselection (any string-based cut on pat::Jet)
0040     preselection = cms.string(''),
0041 
0042     # overlap checking configurables
0043     checkOverlaps = cms.PSet(
0044         muons = cms.PSet(
0045            src       = cms.InputTag("selectedPatMuons"),
0046            algorithm = cms.string("byDeltaR"),
0047            preselection        = cms.string(""),
0048            deltaR              = cms.double(0.5),
0049            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
0050            pairCut             = cms.string(""),
0051            requireNoOverlaps   = cms.bool(False), # overlaps don't cause the jet to be discared
0052         ),
0053         isolatedMuons = cms.PSet(
0054            src       = cms.InputTag("isolatedPatMuons"),
0055            algorithm = cms.string("byDeltaR"),
0056            preselection        = cms.string(""),
0057            deltaR              = cms.double(0.5),
0058            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
0059            pairCut             = cms.string(""),
0060            requireNoOverlaps   = cms.bool(False), # overlaps don't cause the jet to be discared
0061         ),                                
0062         electrons = cms.PSet(
0063            src       = cms.InputTag("selectedPatElectrons"),
0064            algorithm = cms.string("byDeltaR"),
0065            preselection        = cms.string(""),
0066            deltaR              = cms.double(0.5),
0067            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
0068            pairCut             = cms.string(""),
0069            requireNoOverlaps   = cms.bool(False), # overlaps don't cause the jet to be discared
0070         ),
0071         isolatedElectrons = cms.PSet(
0072            src       = cms.InputTag("isolatedPatElectrons"),
0073            algorithm = cms.string("byDeltaR"),
0074            preselection        = cms.string(""),
0075            deltaR              = cms.double(0.5),
0076            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
0077            pairCut             = cms.string(""),
0078            requireNoOverlaps   = cms.bool(False), # overlaps don't cause the jet to be discared
0079         ),                                
0080         cocElectrons = cms.PSet(
0081            src       = cms.InputTag("cocPatElectrons"),
0082            algorithm = cms.string("byDeltaR"),
0083            preselection        = cms.string(""),
0084            deltaR              = cms.double(0.5),
0085            checkRecoComponents = cms.bool(False), # don't check if they share some AOD object ref
0086            pairCut             = cms.string(""),
0087            requireNoOverlaps   = cms.bool(False), # overlaps don't cause the jet to be discared
0088         ),
0089     ),
0090     # finalCut (any string-based cut on pat::Jet)
0091     finalCut = cms.string(''),
0092 )
0093 
0094 customCOC = cms.Sequence(
0095     cocPatElectrons * cocPatJets
0096 )