7 print(
"customizePuppiTune_cff::UpdatePuppiTuneV13: Recomputing PUPPI with Tune v13, 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
15 runMetCorAndUncFromMiniAOD(process,isData=
False,metType=
"Puppi",postfix=
"Puppi",jetFlavor=
"AK4PFPuppi",recoMetFromPFCs=
True,pfCandColl=cms.InputTag(
"puppiForMET"))
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.UseFromPVLooseTight =
False 32 process.puppi.UseDeltaZCut =
False 33 process.puppi.PtMaxCharged = 20.
34 process.puppi.EtaMaxCharged = 2.5
35 process.puppi.PtMaxNeutralsStartSlope = 20.
36 process.puppiNoLep.UseFromPVLooseTight =
False 37 process.puppiNoLep.UseDeltaZCut =
False 38 process.puppiNoLep.PtMaxCharged = 20.
39 process.puppiNoLep.EtaMaxCharged = 2.5
40 process.puppiNoLep.PtMaxNeutralsStartSlope = 20.
41
def addToProcessAndTask(label, module, process, task)
S & print(S &os, JobReport::InputFile const &f)
def UpdatePuppiTuneV13(process)
def getPatAlgosToolsTask(process)
def runMetCorAndUncFromMiniAOD(process, metType="PF", jetCollUnskimmed="slimmedJets", photonColl="slimmedPhotons", electronColl="slimmedElectrons", muonColl="slimmedMuons", tauColl="slimmedTaus", pfCandColl="packedPFCandidates", jetFlavor="AK4PFchs", jetCleaning="LepClean", isData=False, manualJetConfig=False, reclusterJets=None, jetSelection="pt>15 && abs(eta)<9.9", recoMetFromPFCs=None, jetCorLabelL3="ak4PFCHSL1FastL2L3Corrector", jetCorLabelRes="ak4PFCHSL1FastL2L3ResidualCorrector", CHS=False, reapplyJEC=True, jecUncFile="", computeMETSignificance=True, fixEE2017=False, fixEE2017Params=None, postfix="")