1 import FWCore.ParameterSet.Config
as cms
3 pfNoPUchsMEtSequence = cms.Sequence()
6 pfNoPUchsMEtSequence += ak4PFchsJetsSequence
9 calibratedAK4PFchsJetsForPFNoPUchsMEt = cms.EDProducer(
'PFJetCorrectionProducer',
10 src = cms.InputTag(
'ak4PFchsJets'),
11 correctors = cms.vstring(
'ak4PFchsL1FastL2L3Residual')
13 ak4PFJetSequenceForPFNoPUchsMEt = cms.Sequence(calibratedAK4PFchsJetsForPFNoPUchsMEt)
14 pfNoPUchsMEtSequence += ak4PFJetSequenceForPFNoPUchsMEt
17 puJetIdForPFNoPUchsMEt = pileupJetId.clone(
22 label = cms.string(
"fullId"),
23 produceJetIds = cms.bool(
True),
24 runMvas = cms.bool(
True),
25 jets = cms.InputTag(
"calibratedAK4PFchsJetsForPFNoPUchsMEt"),
26 applyJec = cms.bool(
False),
27 inputIsCorrected = cms.bool(
True),
29 pfNoPUchsMEtSequence += puJetIdForPFNoPUchsMEt
32 pfNoPUchsMEtSequence += type0PFMEtCorrection
33 pfCandidateToVertexAssociationForPFNoPUchsMEt = pfCandidateToVertexAssociation.clone(
34 MaxNumberOfAssociations = cms.int32(1),
35 doReassociation = cms.bool(
False),
36 FinalAssociation = cms.untracked.int32(1),
37 nTrackWeight = cms.double(0.)
39 pfNoPUchsMEtSequence += pfCandidateToVertexAssociationForPFNoPUchsMEt
40 pfMETcorrType0ForPFNoPUchsMEt = pfMETcorrType0.clone(
41 srcPFCandidateToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUchsMEt')
43 pfNoPUchsMEtSequence += pfMETcorrType0ForPFNoPUchsMEt
52 jvfJetIdForPFNoPUchsMEt = cms.EDProducer(
"JVFJetIdProducer",
53 srcJets = cms.InputTag(
'calibratedAK4PFchsJetsForPFNoPUchsMEt'),
54 srcPFCandidates = cms.InputTag(
'particleFlow'),
55 srcPFCandToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUchsMEt'),
56 srcHardScatterVertex = cms.InputTag(
'selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0'),
57 minTrackPt = cms.double(1.),
58 dZcut = cms.double(0.2),
59 JVFcut = cms.double(0.75),
60 neutralJetOption = cms.string(
"noPU")
62 pfNoPUchsMEtSequence += jvfJetIdForPFNoPUchsMEt
65 pfNoPUchsMEtData = cms.EDProducer(
"PFNoPUMEtDataProducer",
66 srcJets = cms.InputTag(
'calibratedAK4PFchsJetsForPFNoPUchsMEt'),
67 srcJetIds = cms.InputTag(
'puJetIdForPFNoPUchsMEt',
'fullId'),
69 minJetPt = cms.double(30.0),
70 jetIdSelection = cms.string(
'loose'),
71 jetEnOffsetCorrLabel = cms.string(
"ak4PFchsL1Fastjet"),
72 srcPFCandidates = cms.InputTag(
'particleFlow'),
73 srcPFCandToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUchsMEt'),
76 srcJetsForMEtCov = cms.InputTag(
'ak4PFchsJets'),
77 minJetPtForMEtCov = cms.double(10.),
78 srcHardScatterVertex = cms.InputTag(
'selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0'),
79 dZcut = cms.double(0.2),
80 resolution = met_config.METSignificance_params,
81 verbosity = cms.int32(0)
83 pfNoPUchsMEtSequence += pfNoPUchsMEtData
85 pfNoPUchsMEt = cms.EDProducer(
"PFNoPUMEtProducer",
86 srcMEt = cms.InputTag(
'pfMet'),
87 srcMEtCov = cms.InputTag(
''),
88 srcMVAMEtData = cms.InputTag(
'pfNoPUchsMEtData'),
89 srcLeptons = cms.VInputTag(),
91 srcMVAMEtDataLeptonMatch = cms.InputTag(
'pfNoPUchsMEtData'),
92 srcType0Correction = cms.InputTag(
'pfMETcorrType0ForPFNoPUchsMEt'),
93 sfNoPUjets = cms.double(1.0),
94 sfNoPUjetOffsetEnCorr = cms.double(0.0),
95 sfPUjets = cms.double(1.0),
96 sfNoPUunclChargedCands = cms.double(1.0),
97 sfPUunclChargedCands = cms.double(1.0),
98 sfUnclNeutralCands = cms.double(0.6),
99 sfType0Correction = cms.double(1.0),
100 sfLeptonIsoCones = cms.double(0.6),
101 resolution = met_config.METSignificance_params,
102 sfMEtCovMin = cms.double(0.6),
103 sfMEtCovMax = cms.double(1.0),
104 saveInputs = cms.bool(
True),
105 verbosity = cms.int32(0)
107 pfNoPUchsMEtSequence += pfNoPUchsMEt