Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:59

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # discard jets that match with clean electrons
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TestCleaners")
0007 process.maxEvents = cms.untracked.PSet(
0008     input = cms.untracked.int32(3)
0009 )
0010 process.source = cms.Source("PoolSource",
0011     skipEvents = cms.untracked.uint32(182),
0012     fileNames = cms.untracked.vstring('file:in.root')
0013 )
0014 
0015 process.cleanMuons = cms.EDFilter("PATMuonCleaner",
0016     muonSource = cms.InputTag("muons")
0017 )
0018 
0019 process.cleanElectrons = cms.EDFilter("PATElectronCleaner",
0020     removeDuplicates = cms.bool(True),
0021     electronSource = cms.InputTag("pixelMatchGsfElectrons")
0022 )
0023 
0024 process.cleanJets = cms.EDFilter("PATCaloJetCleaner",
0025     removeOverlaps = cms.VPSet(cms.PSet(
0026         deltaR = cms.double(0.3),
0027         collection = cms.InputTag("cleanElectrons")
0028     )),
0029     jetSource = cms.InputTag("iterativeCone5CaloJets")
0030 )
0031 
0032 process.out = cms.OutputModule("PoolOutputModule",
0033     outputCommands = cms.untracked.vstring('drop *', 
0034         'keep recoCaloJets_*_*_*', 
0035         'keep pixelMatchGsfElectrons_*_*_*', 
0036         'keep *_*_*_TestCleaners'),
0037     fileName = cms.untracked.string('/tmp/gpetrucc/out.root')
0038 )
0039 
0040 process.p = cms.Path(process.cleanElectrons*process.cleanJets)
0041 process.e = cms.EndPath(process.out)
0042 
0043