1 import FWCore.ParameterSet.Config
as cms
3 pfNoPUMEtSequence = cms.Sequence()
6 calibratedAK4PFJetsForPFNoPUMEt = cms.EDProducer(
'PFJetCorrectionProducer',
7 src = cms.InputTag(
'ak4PFJets'),
8 correctors = cms.vstring(
'ak4PFL1FastL2L3')
10 ak4PFJetSequenceForPFNoPUMEt = cms.Sequence(calibratedAK4PFJetsForPFNoPUMEt)
11 pfNoPUMEtSequence += ak4PFJetSequenceForPFNoPUMEt
14 puJetIdForPFNoPUMEt = pileupJetId.clone(
21 produceJetIds = cms.bool(
True),
22 runMvas = cms.bool(
True),
23 jets = cms.InputTag(
"calibratedAK4PFJetsForPFNoPUMEt"),
24 applyJec = cms.bool(
False),
25 inputIsCorrected = cms.bool(
True),
27 pfNoPUMEtSequence += puJetIdForPFNoPUMEt
30 pfNoPUMEtSequence += type0PFMEtCorrection
31 pfCandidateToVertexAssociationForPFNoPUMEt = pfCandidateToVertexAssociation.clone(
32 MaxNumberOfAssociations = cms.int32(1),
33 doReassociation = cms.bool(
False),
34 FinalAssociation = cms.untracked.int32(1),
35 nTrackWeight = cms.double(0.)
37 pfNoPUMEtSequence += pfCandidateToVertexAssociationForPFNoPUMEt
38 pfMETcorrType0ForPFNoPUMEt = pfMETcorrType0.clone(
39 srcPFCandidateToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUMEt')
41 pfNoPUMEtSequence += pfMETcorrType0ForPFNoPUMEt
43 jvfJetIdForPFNoPUMEt = cms.EDProducer(
"JVFJetIdProducer",
44 srcJets = cms.InputTag(
'calibratedAK4PFJetsForPFNoPUMEt'),
45 srcPFCandidates = cms.InputTag(
'particleFlow'),
46 srcPFCandToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUMEt'),
47 srcHardScatterVertex = cms.InputTag(
'selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0'),
48 minTrackPt = cms.double(1.),
49 dZcut = cms.double(0.2),
50 JVFcut = cms.double(0.75),
51 neutralJetOption = cms.string(
"noPU")
53 pfNoPUMEtSequence += jvfJetIdForPFNoPUMEt
56 pfNoPUMEtData = cms.EDProducer(
"NoPileUpPFMEtDataProducer",
57 srcJets = cms.InputTag(
'calibratedAK4PFJetsForPFNoPUMEt'),
58 srcJetIds = cms.InputTag(
'puJetIdForPFNoPUMEt',
'full53xId'),
60 minJetPt = cms.double(30.0),
61 jetIdSelection = cms.string(
'loose'),
62 jetEnOffsetCorrLabel = cms.string(
"ak4PFL1Fastjet"),
63 srcPFCandidates = cms.InputTag(
'particleFlow'),
64 srcPFCandToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUMEt'),
65 srcJetsForMEtCov = cms.InputTag(
'ak4PFJets'),
66 minJetPtForMEtCov = cms.double(10.),
68 srcHardScatterVertex = cms.InputTag(
'selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0'),
69 dZcut = cms.double(0.2),
70 resolution = met_config.METSignificance_params,
71 verbosity = cms.int32(0)
73 pfNoPUMEtSequence += pfNoPUMEtData
75 pfNoPUMEt = cms.EDProducer(
"NoPileUpPFMEtProducer",
76 srcMEt = cms.InputTag(
'pfMet'),
77 srcMEtCov = cms.InputTag(
''),
78 srcPUSubMETDataJet = cms.InputTag(
'pfNoPUMEtData',
'jetInfos'),
79 srcPUSubMETDataPFCands = cms.InputTag(
'pfNoPUMEtData',
'pfCandInfos'),
80 srcLeptons = cms.VInputTag(),
82 srcPUSubMETDataJetLeptonMatch = cms.InputTag(
'pfNoPUMEtData',
'jetInfos'),
83 srcPUSubMETDataPFCandsLeptonMatch = cms.InputTag(
'pfNoPUMEtData',
'pfCandInfos'),
84 srcType0Correction = cms.InputTag(
'pfMETcorrType0ForPFNoPUMEt'),
85 sfNoPUjets = cms.double(1.0),
86 sfNoPUjetOffsetEnCorr = cms.double(0.0),
87 sfPUjets = cms.double(1.0),
88 sfNoPUunclChargedCands = cms.double(1.0),
89 sfPUunclChargedCands = cms.double(1.0),
90 sfUnclNeutralCands = cms.double(0.6),
91 sfType0Correction = cms.double(1.0),
92 sfLeptonIsoCones = cms.double(0.6),
93 resolution = met_config.METSignificance_params,
94 sfMEtCovMin = cms.double(0.6),
95 sfMEtCovMax = cms.double(1.0),
96 saveInputs = cms.bool(
True),
97 verbosity = cms.int32(0)
99 pfNoPUMEtSequence += pfNoPUMEt