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
16 from RecoJets.JetProducers.pileupjetidproducer_cfi
import pileupJetIdEvaluator
18 puJetIdForPFNoPUchsMEt = pileupJetIdEvaluator.clone(
23 label = cms.string(
"fullId"),
24 produceJetIds = cms.bool(
True),
25 runMvas = cms.bool(
True),
26 jets = cms.InputTag(
"calibratedAK4PFchsJetsForPFNoPUchsMEt"),
27 applyJec = cms.bool(
False),
28 inputIsCorrected = cms.bool(
True),
30 pfNoPUchsMEtSequence += puJetIdForPFNoPUchsMEt
33 pfNoPUchsMEtSequence += type0PFMEtCorrection
34 pfCandidateToVertexAssociationForPFNoPUchsMEt = pfCandidateToVertexAssociation.clone(
35 MaxNumberOfAssociations = cms.int32(1),
36 doReassociation = cms.bool(
False),
37 FinalAssociation = cms.untracked.int32(1),
38 nTrackWeight = cms.double(0.)
40 pfNoPUchsMEtSequence += pfCandidateToVertexAssociationForPFNoPUchsMEt
41 pfMETcorrType0ForPFNoPUchsMEt = pfMETcorrType0.clone(
42 srcPFCandidateToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUchsMEt')
44 pfNoPUchsMEtSequence += pfMETcorrType0ForPFNoPUchsMEt
53 jvfJetIdForPFNoPUchsMEt = cms.EDProducer(
"JVFJetIdProducer",
54 srcJets = cms.InputTag(
'calibratedAK4PFchsJetsForPFNoPUchsMEt'),
55 srcPFCandidates = cms.InputTag(
'particleFlow'),
56 srcPFCandToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUchsMEt'),
57 srcHardScatterVertex = cms.InputTag(
'selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0'),
58 minTrackPt = cms.double(1.),
59 dZcut = cms.double(0.2),
60 JVFcut = cms.double(0.75),
61 neutralJetOption = cms.string(
"noPU")
63 pfNoPUchsMEtSequence += jvfJetIdForPFNoPUchsMEt
66 pfNoPUchsMEtData = cms.EDProducer(
"PFNoPUMEtDataProducer",
67 srcJets = cms.InputTag(
'calibratedAK4PFchsJetsForPFNoPUchsMEt'),
68 srcJetIds = cms.InputTag(
'puJetIdForPFNoPUchsMEt',
'fullId'),
70 minJetPt = cms.double(30.0),
71 jetIdSelection = cms.string(
'loose'),
72 jetEnOffsetCorrLabel = cms.string(
"ak4PFchsL1Fastjet"),
73 srcPFCandidates = cms.InputTag(
'particleFlow'),
74 srcPFCandToVertexAssociations = cms.InputTag(
'pfCandidateToVertexAssociationForPFNoPUchsMEt'),
77 srcJetsForMEtCov = cms.InputTag(
'ak4PFchsJets'),
78 minJetPtForMEtCov = cms.double(10.),
79 srcHardScatterVertex = cms.InputTag(
'selectedPrimaryVertexHighestPtTrackSumForPFMEtCorrType0'),
80 dZcut = cms.double(0.2),
81 resolution = met_config.METSignificance_params,
82 verbosity = cms.int32(0)
84 pfNoPUchsMEtSequence += pfNoPUchsMEtData
86 pfNoPUchsMEt = cms.EDProducer(
"PFNoPUMEtProducer",
87 srcMEt = cms.InputTag(
'pfMet'),
88 srcMEtCov = cms.InputTag(
''),
89 srcMVAMEtData = cms.InputTag(
'pfNoPUchsMEtData'),
90 srcLeptons = cms.VInputTag(),
92 srcMVAMEtDataLeptonMatch = cms.InputTag(
'pfNoPUchsMEtData'),
93 srcType0Correction = cms.InputTag(
'pfMETcorrType0ForPFNoPUchsMEt'),
94 sfNoPUjets = cms.double(1.0),
95 sfNoPUjetOffsetEnCorr = cms.double(0.0),
96 sfPUjets = cms.double(1.0),
97 sfNoPUunclChargedCands = cms.double(1.0),
98 sfPUunclChargedCands = cms.double(1.0),
99 sfUnclNeutralCands = cms.double(0.6),
100 sfType0Correction = cms.double(1.0),
101 sfLeptonIsoCones = cms.double(0.6),
102 resolution = met_config.METSignificance_params,
103 sfMEtCovMin = cms.double(0.6),
104 sfMEtCovMax = cms.double(1.0),
105 saveInputs = cms.bool(
True),
106 verbosity = cms.int32(0)
108 pfNoPUchsMEtSequence += pfNoPUchsMEt
____________________________________________________________________________||