1 import FWCore.ParameterSet.Config
as cms
3 pfNoPUchsMEtTask = cms.Task()
6 pfNoPUchsMEtTask.add(ak4PFchsJetsTask)
9 calibratedAK4PFchsJetsForPFNoPUchsMEt = cms.EDProducer(
'PFJetCorrectionProducer',
10 src = cms.InputTag(
'ak4PFchsJets'),
11 correctors = cms.vstring(
'ak4PFchsL1FastL2L3Residual')
13 ak4PFJetTaskForPFNoPUchsMEt = cms.Task(calibratedAK4PFchsJetsForPFNoPUchsMEt)
14 pfNoPUchsMEtTask.add(ak4PFJetTaskForPFNoPUchsMEt)
17 puJetIdForPFNoPUchsMEt = pileupJetId.clone(
25 jets =
"calibratedAK4PFchsJetsForPFNoPUchsMEt",
27 inputIsCorrected =
True,
29 pfNoPUchsMEtTask.add(puJetIdForPFNoPUchsMEt)
32 pfNoPUchsMEtTask.add(type0PFMEtCorrection)
33 pfCandidateToVertexAssociationForPFNoPUchsMEt = pfCandidateToVertexAssociation.clone(
34 MaxNumberOfAssociations = 1,
35 doReassociation =
False,
39 pfNoPUchsMEtTask.add(pfCandidateToVertexAssociationForPFNoPUchsMEt)
40 pfMETcorrType0ForPFNoPUchsMEt = pfMETcorrType0.clone(
41 srcPFCandidateToVertexAssociations =
'pfCandidateToVertexAssociationForPFNoPUchsMEt'
43 pfNoPUchsMEtTask.add(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 pfNoPUchsMEtTask.add(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 pfNoPUchsMEtTask.add(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 pfNoPUchsMEtTask.add(pfNoPUchsMEt)
108 pfNoPUchsMEtSequence = cms.Sequence(pfNoPUchsMEtTask)