1 import FWCore.ParameterSet.Config
as cms
7 print(
"customizePuppiTune_cff::UpdatePuppiTuneV15: Recomputing PUPPI with Tune v15, slimmedJetsPuppi and slimmedMETsPuppi")
10 from PhysicsTools.PatAlgos.slimming.puppiForMET_cff
import makePuppiesFromMiniAOD
12 process.puppi.useExistingWeights =
False
13 process.puppiNoLep.useExistingWeights =
False
14 from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties
import runMetCorAndUncFromMiniAOD
16 from PhysicsTools.PatAlgos.patPuppiJetSpecificProducer_cfi
import patPuppiJetSpecificProducer
17 addToProcessAndTask(
'patPuppiJetSpecificProducer', patPuppiJetSpecificProducer.clone(src=cms.InputTag(
"patJetsPuppi")), process, task)
21 labelName =
'PuppiJetSpecific',
22 jetSource = cms.InputTag(
'patJetsPuppi'),
24 process.updatedPatJetsPuppiJetSpecific.userData.userFloats.src = [
'patPuppiJetSpecificProducer:puppiMultiplicity',
'patPuppiJetSpecificProducer:neutralPuppiMultiplicity',
'patPuppiJetSpecificProducer:neutralHadronPuppiMultiplicity',
'patPuppiJetSpecificProducer:photonPuppiMultiplicity',
'patPuppiJetSpecificProducer:HFHadronPuppiMultiplicity',
'patPuppiJetSpecificProducer:HFEMPuppiMultiplicity' ]
25 addToProcessAndTask(
'slimmedJetsPuppi', process.updatedPatJetsPuppiJetSpecific.clone(), process, task)
26 del process.updatedPatJetsPuppiJetSpecific
27 process.puppiSequence = cms.Sequence(process.puppiMETSequence+process.fullPatMetSequencePuppi+process.patPuppiJetSpecificProducer+process.slimmedJetsPuppi)
31 process.puppi.PtMaxCharged = 20.
32 process.puppi.EtaMinUseDeltaZ = 2.4
33 process.puppi.PtMaxNeutralsStartSlope = 20.
34 process.puppi.NumOfPUVtxsForCharged = 2
35 process.puppi.algos[0].etaMin[0] = -0.01
36 process.puppiNoLep.PtMaxCharged = 20.
37 process.puppiNoLep.EtaMinUseDeltaZ = 2.4
38 process.puppiNoLep.PtMaxNeutralsStartSlope = 20.
39 process.puppiNoLep.NumOfPUVtxsForCharged = 2
40 process.puppiNoLep.algos[0].etaMin[0] = -0.01
42 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
43 phase2_common.toModify( process.puppi, EtaMinUseDeltaZ = 4.0)
44 phase2_common.toModify( process.puppiNoLep, EtaMinUseDeltaZ = 4.0)