1 import FWCore.ParameterSet.Config
as cms
3 pfNoPUMEtTask = cms.Task()
6 calibratedAK4PFJetsForPFNoPUMEt = cms.EDProducer(
'PFJetCorrectionProducer',
7 src = cms.InputTag(
'ak4PFJets'),
8 correctors = cms.vstring(
'ak4PFL1FastL2L3')
10 ak4PFJetTaskForPFNoPUMEt = cms.Task(calibratedAK4PFJetsForPFNoPUMEt)
11 pfNoPUMEtTask.add(ak4PFJetTaskForPFNoPUMEt)
14 puJetIdForPFNoPUMEt = pileupJetId.clone(
23 jets =
"calibratedAK4PFJetsForPFNoPUMEt",
25 inputIsCorrected =
True,
27 pfNoPUMEtTask.add(puJetIdForPFNoPUMEt)
30 pfNoPUMEtTask.add(type0PFMEtCorrection)
31 pfCandidateToVertexAssociationForPFNoPUMEt = pfCandidateToVertexAssociation.clone(
32 MaxNumberOfAssociations = 1,
33 doReassociation =
False,
37 pfNoPUMEtTask.add(pfCandidateToVertexAssociationForPFNoPUMEt)
38 pfMETcorrType0ForPFNoPUMEt = pfMETcorrType0.clone(
39 srcPFCandidateToVertexAssociations =
'pfCandidateToVertexAssociationForPFNoPUMEt' 41 pfNoPUMEtTask.add(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 pfNoPUMEtTask.add(jvfJetIdForPFNoPUMEt)
57 pfNoPUMEt = cms.EDProducer(
"NoPileUpPFMEtProducer",
58 srcMEt = cms.InputTag(
'pfMet'),
59 srcMEtCov = cms.InputTag(
''),
60 srcPUSubMETDataJet = cms.InputTag(
'pfNoPUMEtData',
'jetInfos'),
61 srcPUSubMETDataPFCands = cms.InputTag(
'pfNoPUMEtData',
'pfCandInfos'),
62 srcLeptons = cms.VInputTag(),
64 srcPUSubMETDataJetLeptonMatch = cms.InputTag(
'pfNoPUMEtData',
'jetInfos'),
65 srcPUSubMETDataPFCandsLeptonMatch = cms.InputTag(
'pfNoPUMEtData',
'pfCandInfos'),
66 srcType0Correction = cms.InputTag(
'pfMETcorrType0ForPFNoPUMEt'),
67 sfNoPUjets = cms.double(1.0),
68 sfNoPUjetOffsetEnCorr = cms.double(0.0),
69 sfPUjets = cms.double(1.0),
70 sfNoPUunclChargedCands = cms.double(1.0),
71 sfPUunclChargedCands = cms.double(1.0),
72 sfUnclNeutralCands = cms.double(0.6),
73 sfType0Correction = cms.double(1.0),
74 sfLeptonIsoCones = cms.double(0.6),
75 resolution = met_config.METSignificance_params,
76 sfMEtCovMin = cms.double(0.6),
77 sfMEtCovMax = cms.double(1.0),
78 saveInputs = cms.bool(
True),
79 verbosity = cms.int32(0)
81 pfNoPUMEtTask.add(pfNoPUMEt)
82 pfNoPUMEtSequence = cms.Sequence(pfNoPUMEtTask)