CMS 3D CMS Logo

cleanJetFromEEnoise_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 #______________________________________________________#
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)
12  )
13 
14 
15 #_______________________________________________________#
16 # Construct the Unclustered PF Candidates
17 
18 pfcandidateClustered = cms.EDProducer(
19  "CandViewMerger",
20  src = cms.VInputTag(
21  cms.InputTag("slimmedJets"),
22  cms.InputTag("slimmedElectrons"),
23  cms.InputTag("slimmedMuons"),
24  cms.InputTag("slimmedTaus"),
25  cms.InputTag("slimmedPhotons"),
26  )
27 )
28 
29 pfcandidateForUnclusteredUnc = cms.EDProducer("CandPtrProjector",
30  src = cms.InputTag("packedPFCandidates"),
31  veto = cms.InputTag("pfcandidateClustered"),
32 )
33 
34 
35 #__________________________________________________________________#
36 badUnclustered = cms.EDFilter("CandPtrSelector",
37  src = cms.InputTag("pfcandidateForUnclusteredUnc"),
38  cut = cms.string("abs(eta) > 2.65 && abs(eta) < 3.139")
39 )
40 
41 #_________________________________________________________#
42 superbad = cms.EDProducer(
43  "CandViewMerger",
44  src = cms.VInputTag(
45  cms.InputTag("badUnclustered"),
46  cms.InputTag("pfCandidateJetsWithEEnoise"))
47  )
48 #___________________________________________________________#
49 cleanPFCandidates = cms.EDProducer(
50  "CandPtrProjector",
51  src = cms.InputTag("packedPFCandidates"),
52  veto = cms.InputTag("superbad")
53  )
54 
55 
56 
57 #__________________________________________________________#
58 
59 
60 fullsuperbadSequence = cms.Sequence(pfCandidateJetsWithEEnoise+
61  pfcandidateClustered +
62  pfcandidateForUnclusteredUnc +
63  badUnclustered +
64  superbad +
65  cleanPFCandidates
66  )