CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 import CommonTools.CandAlgos.candPtrProjector_cfi as _mod
30 pfcandidateForUnclusteredUnc = _mod.candPtrProjector.clone(
31  src = "packedPFCandidates",
32  veto = "pfcandidateClustered",
33 )
34 
35 
36 #__________________________________________________________________#
37 badUnclustered = cms.EDFilter("CandPtrSelector",
38  src = cms.InputTag("pfcandidateForUnclusteredUnc"),
39  cut = cms.string("abs(eta) > 2.65 && abs(eta) < 3.139")
40 )
41 
42 #_________________________________________________________#
43 superbad = cms.EDProducer(
44  "CandViewMerger",
45  src = cms.VInputTag(
46  cms.InputTag("badUnclustered"),
47  cms.InputTag("pfCandidateJetsWithEEnoise"))
48  )
49 #___________________________________________________________#
50 cleanPFCandidates = cms.EDProducer(
51  "CandPtrProjector",
52  src = cms.InputTag("packedPFCandidates"),
53  veto = cms.InputTag("superbad")
54  )
55 
56 
57 
58 #__________________________________________________________#
59 
60 
61 fullsuperbadSequence = cms.Sequence(pfCandidateJetsWithEEnoise+
62  pfcandidateClustered +
63  pfcandidateForUnclusteredUnc +
64  badUnclustered +
65  superbad +
66  cleanPFCandidates
67  )