1 import FWCore.ParameterSet.Config
as cms
5 pfCandidateJetsWithEEnoise = cms.EDProducer(
6 "BadPFCandidateJetsEEnoiseProducer",
7 jetsrc = cms.InputTag(
"slimmedJets"),
8 userawPt = cms.bool(
True),
9 ptThreshold = cms.double(50.0),
10 minEtaThreshold = cms.double(2.65),
11 maxEtaThreshold = cms.double(3.139)
18 pfcandidateClustered = cms.EDProducer(
21 cms.InputTag(
"slimmedJets"),
22 cms.InputTag(
"slimmedElectrons"),
23 cms.InputTag(
"slimmedMuons"),
24 cms.InputTag(
"slimmedTaus"),
25 cms.InputTag(
"slimmedPhotons"),
29 import CommonTools.CandAlgos.candPtrProjector_cfi
as _mod
30 pfcandidateForUnclusteredUnc = _mod.candPtrProjector.clone(
31 src =
"packedPFCandidates",
32 veto =
"pfcandidateClustered",
37 badUnclustered = cms.EDFilter(
"CandPtrSelector",
38 src = cms.InputTag(
"pfcandidateForUnclusteredUnc"),
39 cut = cms.string(
"abs(eta) > 2.65 && abs(eta) < 3.139")
43 superbad = cms.EDProducer(
46 cms.InputTag(
"badUnclustered"),
47 cms.InputTag(
"pfCandidateJetsWithEEnoise"))
50 cleanPFCandidates = cms.EDProducer(
52 src = cms.InputTag(
"packedPFCandidates"),
53 veto = cms.InputTag(
"superbad")
61 fullsuperbadSequence = cms.Sequence(pfCandidateJetsWithEEnoise+
62 pfcandidateClustered +
63 pfcandidateForUnclusteredUnc +