Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:54:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 #______________________________________________________#
0005 pfCandidateJetsWithEEnoise = cms.EDProducer(
0006     "BadPFCandidateJetsEEnoiseProducer",
0007     jetsrc                     = cms.InputTag("slimmedJets"),
0008     userawPt                   = cms.bool(True),
0009     ptThreshold                = cms.double(50.0),
0010     minEtaThreshold            = cms.double(2.65),
0011     maxEtaThreshold            = cms.double(3.139)
0012     )
0013 
0014 
0015 #_______________________________________________________#
0016 # Construct the Unclustered PF Candidates
0017 
0018 pfcandidateClustered = cms.EDProducer(
0019     "CandViewMerger",
0020     src = cms.VInputTag(
0021         cms.InputTag("slimmedJets"),
0022         cms.InputTag("slimmedElectrons"),
0023         cms.InputTag("slimmedMuons"),
0024         cms.InputTag("slimmedTaus"),
0025         cms.InputTag("slimmedPhotons"),
0026     )
0027 )
0028 
0029 import CommonTools.CandAlgos.candPtrProjector_cfi as _mod
0030 pfcandidateForUnclusteredUnc = _mod.candPtrProjector.clone(
0031     src  = "packedPFCandidates",
0032     veto = "pfcandidateClustered",
0033 )
0034 
0035 
0036 #__________________________________________________________________#
0037 badUnclustered = cms.EDFilter("CandPtrSelector",
0038     src = cms.InputTag("pfcandidateForUnclusteredUnc"),
0039     cut = cms.string("abs(eta) > 2.65 && abs(eta) < 3.139")
0040 )
0041 
0042 #_________________________________________________________#
0043 superbad = cms.EDProducer(
0044     "CandViewMerger",
0045     src = cms.VInputTag(
0046         cms.InputTag("badUnclustered"),
0047         cms.InputTag("pfCandidateJetsWithEEnoise"))
0048     )
0049 #___________________________________________________________#
0050 cleanPFCandidates = cms.EDProducer(
0051     "CandPtrProjector",
0052     src  = cms.InputTag("packedPFCandidates"),
0053     veto = cms.InputTag("superbad")
0054     )
0055 
0056 
0057 
0058 #__________________________________________________________#
0059 
0060 
0061 fullsuperbadSequence = cms.Sequence(pfCandidateJetsWithEEnoise+
0062                                     pfcandidateClustered +
0063                                     pfcandidateForUnclusteredUnc +
0064                                     badUnclustered +
0065                                     superbad +
0066                                     cleanPFCandidates
0067                                     )