1 import FWCore.ParameterSet.Config
as cms
8 process.patMuons.isoDeposits = cms.PSet()
9 process.patElectrons.isoDeposits = cms.PSet()
10 process.patTaus.isoDeposits = cms.PSet()
11 process.patPhotons.isoDeposits = cms.PSet()
13 process.patMuons.embedTrack =
True 14 process.patMuons.embedCombinedMuon =
True 15 process.patMuons.embedMuonBestTrack =
True 16 process.patMuons.embedStandAloneMuon =
True 17 process.patMuons.embedPickyMuon =
False 18 process.patMuons.embedTpfmsMuon =
False 19 process.patMuons.embedDytMuon =
False 20 process.patMuons.addPuppiIsolation = cms.bool(
True)
21 process.patMuons.puppiIsolationChargedHadrons = cms.InputTag(
"muonPUPPIIsolation",
"h+-DR040-ThresholdVeto000-ConeVeto000")
22 process.patMuons.puppiIsolationNeutralHadrons = cms.InputTag(
"muonPUPPIIsolation",
"h0-DR040-ThresholdVeto000-ConeVeto001")
23 process.patMuons.puppiIsolationPhotons = cms.InputTag(
"muonPUPPIIsolation",
"gamma-DR040-ThresholdVeto000-ConeVeto001")
24 process.patMuons.puppiNoLeptonsIsolationChargedHadrons = cms.InputTag(
"muonPUPPINoLeptonsIsolation",
"h+-DR040-ThresholdVeto000-ConeVeto000")
25 process.patMuons.puppiNoLeptonsIsolationNeutralHadrons = cms.InputTag(
"muonPUPPINoLeptonsIsolation",
"h0-DR040-ThresholdVeto000-ConeVeto001")
26 process.patMuons.puppiNoLeptonsIsolationPhotons = cms.InputTag(
"muonPUPPINoLeptonsIsolation",
"gamma-DR040-ThresholdVeto000-ConeVeto001")
28 process.patMuons.computeMiniIso = cms.bool(
True)
29 process.patMuons.computeMuonMVA = cms.bool(
True)
33 process.patElectrons.embedGsfElectronCore =
False 34 process.patElectrons.embedSuperCluster =
False 35 process.patElectrons.embedPflowSuperCluster =
False 36 process.patElectrons.embedSeedCluster =
False 37 process.patElectrons.embedBasicClusters =
False 38 process.patElectrons.embedPreshowerClusters =
False 39 process.patElectrons.embedPflowBasicClusters =
False 40 process.patElectrons.embedPflowPreshowerClusters =
False 41 process.patElectrons.embedRecHits =
False 42 process.patElectrons.electronSource = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
43 process.patElectrons.usePfCandidateMultiMap =
True 44 process.patElectrons.pfCandidateMultiMap = cms.InputTag(
"reducedEgamma",
"reducedGsfElectronPfCandMap")
45 process.patElectrons.electronIDSources = cms.PSet(
48 eidRobustLoose = cms.InputTag(
"reducedEgamma",
"eidRobustLoose"),
49 eidRobustTight = cms.InputTag(
"reducedEgamma",
"eidRobustTight"),
50 eidLoose = cms.InputTag(
"reducedEgamma",
"eidLoose"),
51 eidTight = cms.InputTag(
"reducedEgamma",
"eidTight"),
52 eidRobustHighEnergy = cms.InputTag(
"reducedEgamma",
"eidRobustHighEnergy"),
54 process.patElectrons.addPFClusterIso = cms.bool(
True)
56 process.patElectrons.addPuppiIsolation = cms.bool(
True)
57 process.patElectrons.puppiIsolationChargedHadrons = cms.InputTag(
"egmElectronPUPPIIsolation",
"h+-DR030-BarVeto000-EndVeto001")
58 process.patElectrons.puppiIsolationNeutralHadrons = cms.InputTag(
"egmElectronPUPPIIsolation",
"h0-DR030-BarVeto000-EndVeto000")
59 process.patElectrons.puppiIsolationPhotons = cms.InputTag(
"egmElectronPUPPIIsolation",
"gamma-DR030-BarVeto000-EndVeto008")
60 process.patElectrons.puppiNoLeptonsIsolationChargedHadrons = cms.InputTag(
"egmElectronPUPPINoLeptonsIsolation",
"h+-DR030-BarVeto000-EndVeto001")
61 process.patElectrons.puppiNoLeptonsIsolationNeutralHadrons = cms.InputTag(
"egmElectronPUPPINoLeptonsIsolation",
"h0-DR030-BarVeto000-EndVeto000")
62 process.patElectrons.puppiNoLeptonsIsolationPhotons = cms.InputTag(
"egmElectronPUPPINoLeptonsIsolation",
"gamma-DR030-BarVeto000-EndVeto008")
64 process.patElectrons.computeMiniIso = cms.bool(
True)
66 process.patElectrons.ecalPFClusterIsoMap = cms.InputTag(
"reducedEgamma",
"eleEcalPFClusIso")
67 process.patElectrons.hcalPFClusterIsoMap = cms.InputTag(
"reducedEgamma",
"eleHcalPFClusIso")
69 process.elPFIsoDepositChargedPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
70 process.elPFIsoDepositChargedAllPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
71 process.elPFIsoDepositNeutralPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
72 process.elPFIsoDepositGammaPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
73 process.elPFIsoDepositPUPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
75 process.patPhotons.embedSuperCluster =
False 76 process.patPhotons.embedSeedCluster =
False 77 process.patPhotons.embedBasicClusters =
False 78 process.patPhotons.embedPreshowerClusters =
False 79 process.patPhotons.embedRecHits =
False 80 process.patPhotons.addPFClusterIso = cms.bool(
True)
83 process.patPhotons.addPuppiIsolation = cms.bool(
True)
84 process.patPhotons.puppiIsolationChargedHadrons = cms.InputTag(
"egmPhotonPUPPIIsolation",
"h+-DR030-")
85 process.patPhotons.puppiIsolationNeutralHadrons = cms.InputTag(
"egmPhotonPUPPIIsolation",
"h0-DR030-")
86 process.patPhotons.puppiIsolationPhotons = cms.InputTag(
"egmPhotonPUPPIIsolation",
"gamma-DR030-")
88 process.patPhotons.ecalPFClusterIsoMap = cms.InputTag(
"reducedEgamma",
"phoEcalPFClusIso")
89 process.patPhotons.hcalPFClusterIsoMap = cms.InputTag(
"reducedEgamma",
"phoHcalPFClusIso")
90 process.patPhotons.photonSource = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
91 process.patPhotons.electronSource = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
92 process.patPhotons.photonIDSources = cms.PSet(
93 PhotonCutBasedIDLoose = cms.InputTag(
'reducedEgamma',
94 'PhotonCutBasedIDLoose'),
95 PhotonCutBasedIDTight = cms.InputTag(
'reducedEgamma',
96 'PhotonCutBasedIDTight')
99 process.phPFIsoDepositChargedPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
100 process.phPFIsoDepositChargedAllPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
101 process.phPFIsoDepositNeutralPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
102 process.phPFIsoDepositGammaPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
103 process.phPFIsoDepositPUPAT.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
105 process.patOOTPhotons.photonSource = cms.InputTag(
"reducedEgamma",
"reducedOOTPhotons")
106 process.patOOTPhotons.electronSource = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
108 process.selectedPatJets.cut = cms.string(
"pt > 10")
109 process.selectedPatMuons.cut = cms.string(
"pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose')))")
111 from Configuration.Eras.Modifier_phase2_muon_cff
import phase2_muon
112 phase2_muon.toModify(process.selectedPatMuons, cut =
"pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose') || muonID('ME0MuonArbitrated') || muonID('GEMMuonArbitrated')) )")
114 process.selectedPatElectrons.cut = cms.string(
"")
115 process.selectedPatTaus.cut = cms.string(
"pt > 18. && tauID('decayModeFindingNewDMs')> 0.5")
116 process.selectedPatPhotons.cut = cms.string(
"")
120 from PhysicsTools.PatAlgos.slimming.applySubstructure_cff
import applySubstructure
125 from PhysicsTools.PatAlgos.tools.trigTools
import switchOnTriggerStandAlone
127 process.patTrigger.packTriggerPathNames = cms.bool(
True)
132 from PhysicsTools.PatUtils.tools.runMETCorrectionsAndUncertainties
import runMetCorAndUncForMiniAODProduction
134 jetCollUnskimmed=
"patJets")
137 from PhysicsTools.PatAlgos.tools.metTools
import addMETCollection
138 addMETCollection(process,
139 labelName =
"patCaloMet",
140 metSource =
"caloMetM" 147 process.noHFCands = cms.EDFilter(
"GenericPFCandidateSelector",
148 src=cms.InputTag(
"particleFlow"),
149 cut=cms.string(
"abs(pdgId)!=1 && abs(pdgId)!=2 && abs(eta)<3.0")
151 task.add(process.noHFCands)
154 pfCandColl=cms.InputTag(
"noHFCands"),
155 recoMetFromPFCs=
True,
156 jetSelection=
"pt>15 && abs(eta)<3.",
160 process.load(
'PhysicsTools.PatAlgos.slimming.slimmedMETs_cfi')
161 task.add(process.slimmedMETs)
163 process.slimmedMETsNoHF.src = cms.InputTag(
"patMETsNoHF")
164 process.slimmedMETsNoHF.rawVariation = cms.InputTag(
"patPFMetNoHF")
165 process.slimmedMETsNoHF.t1Uncertainties = cms.InputTag(
"patPFMetT1%sNoHF")
166 process.slimmedMETsNoHF.t01Variation = cms.InputTag(
"patPFMetT0pcT1NoHF")
167 process.slimmedMETsNoHF.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sNoHF")
168 process.slimmedMETsNoHF.tXYUncForRaw = cms.InputTag(
"patPFMetTxyNoHF")
169 process.slimmedMETsNoHF.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyNoHF")
170 process.slimmedMETsNoHF.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyNoHF")
171 process.slimmedMETsNoHF.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyNoHF")
172 process.slimmedMETsNoHF.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyNoHF")
173 del process.slimmedMETsNoHF.caloMET
177 process.CHSCands = cms.EDFilter(
"CandPtrSelector",
178 src=cms.InputTag(
"packedPFCandidates"),
179 cut=cms.string(
"fromPV(0) > 0")
181 task.add(process.CHSCands)
183 process.pfMetCHS = cms.EDProducer(
"PFMETProducer",
184 src = cms.InputTag(
"CHSCands"),
185 alias = cms.string(
'pfMet'),
186 globalThreshold = cms.double(0.0),
187 calculateSignificance = cms.bool(
False),
189 task.add(process.pfMetCHS)
191 addMETCollection(process,
192 labelName =
"patCHSMet",
193 metSource =
"pfMetCHS" 196 process.patCHSMet.computeMETSignificance = cms.bool(
False)
201 process.TrkCands = cms.EDFilter(
"CandPtrSelector",
202 src=cms.InputTag(
"packedPFCandidates"),
203 cut=cms.string(
"charge()!=0 && pvAssociationQuality()>=4 && vertexRef().key()==0")
205 task.add(process.TrkCands)
207 process.pfMetTrk = cms.EDProducer(
"PFMETProducer",
208 src = cms.InputTag(
"TrkCands"),
209 alias = cms.string(
'pfMet'),
210 globalThreshold = cms.double(0.0),
211 calculateSignificance = cms.bool(
False),
214 task.add(process.pfMetTrk)
216 addMETCollection(process,
217 labelName =
"patTrkMet",
218 metSource =
"pfMetTrk" 221 process.patTrkMet.computeMETSignificance = cms.bool(
False)
227 process.load(
"RecoJets.JetProducers.PileupJetID_cfi")
228 task.add(process.pileUpJetIDTask)
230 process.patJets.userData.userFloats.src = [ cms.InputTag(
"pileupJetId:fullDiscriminant"), ]
231 process.patJets.userData.userInts.src = [ cms.InputTag(
"pileupJetId:fullId"), ]
234 process.load(
'RecoJets.JetProducers.QGTagger_cfi')
235 task.add(process.QGTaggerTask)
237 process.patJets.userData.userFloats.src += [ cms.InputTag(
'QGTagger:qgLikelihood'), ]
240 process.load(
'RecoBTag.Combined.deepFlavour_cff')
241 task.add(process.pfDeepCSVDiscriminatorsJetTags)
242 process.patJets.discriminatorSources.extend([
243 cms.InputTag(
'pfDeepCSVDiscriminatorsJetTags:BvsAll' ),
244 cms.InputTag(
'pfDeepCSVDiscriminatorsJetTags:CvsB' ),
245 cms.InputTag(
'pfDeepCSVDiscriminatorsJetTags:CvsL' ),
249 process.caloJetMap = cms.EDProducer(
"RecoJetDeltaRValueMapProducer",
250 src = process.patJets.jetSource,
251 matched = cms.InputTag(
"ak4CaloJets"),
252 distMax = cms.double(0.4),
253 values = cms.vstring(
'pt',
'emEnergyFraction'),
254 valueLabels = cms.vstring(
'pt',
'emEnergyFraction'),
255 lazyParser = cms.bool(
True) )
256 task.add(process.caloJetMap)
257 process.patJets.userData.userFloats.src += [ cms.InputTag(
"caloJetMap:pt"), cms.InputTag(
"caloJetMap:emEnergyFraction") ]
260 from PhysicsTools.PatAlgos.slimming.muonIsolationsPUPPI_cfi
import makeInputForPUPPIIsolationMuon
264 from PhysicsTools.PatAlgos.slimming.egmIsolationsPUPPI_cfi
import makeInputForPUPPIIsolationEgm
266 from RecoEgamma.EgammaTools.egammaObjectModificationsInMiniAOD_cff
import egamma_modifications
267 process.slimmedElectrons.modifierConfig.modifications = egamma_modifications
268 process.slimmedPhotons.modifierConfig.modifications = egamma_modifications
271 electron_id_config = cms.PSet(electron_ids = cms.vstring([
272 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_PHYS14_PU20bx25_V2_cff',
273 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Spring15_25ns_V1_cff',
274 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Spring15_50ns_V2_cff',
275 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV60_cff',
276 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring15_25ns_nonTrig_V1_cff',
277 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring15_25ns_Trig_V1_cff',
278 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring15_50ns_Trig_V1_cff',
279 'RecoEgamma.ElectronIdentification.Identification.heepElectronID_HEEPV70_cff',
280 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Fall17_94X_V1_cff',
281 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_noIso_V1_cff',
282 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_iso_V1_cff',
283 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Summer16_80X_V1_cff',
284 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_GeneralPurpose_V1_cff',
285 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Spring16_HZZ_V1_cff',
288 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff
import run2_miniAOD_devel
289 run2_miniAOD_devel.toModify(electron_id_config, electron_ids = electron_id_config.electron_ids + [\
290 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Fall17_94X_V2_cff',
291 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_noIso_V2_cff',
292 'RecoEgamma.ElectronIdentification.Identification.mvaElectronID_Fall17_iso_V2_cff',
296 process.egmGsfElectronIDs.physicsObjectSrc = \
297 cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
298 process.electronMVAValueMapProducer.src = \
299 cms.InputTag(
'reducedEgamma',
'reducedGedGsfElectrons')
300 process.electronRegressionValueMapProducer.src = \
301 cms.InputTag(
'reducedEgamma',
'reducedGedGsfElectrons')
302 for idmod
in electron_id_config.electron_ids.value():
306 if hasattr(process,
'heepIDVarValueMaps'):
307 process.heepIDVarValueMaps.elesMiniAOD = cms.InputTag(
'reducedEgamma',
'reducedGedGsfElectrons')
309 process.heepIDVarValueMaps.dataFormat = cms.int32(2)
312 for pset
in process.slimmedElectrons.modifierConfig.modifications:
313 if pset.hasParameter(
"modifierName")
and pset.modifierName == cms.string(
'EGExtraInfoModifierFromFloatValueMaps'):
314 pset.electron_config.heepTrkPtIso = cms.InputTag(
"heepIDVarValueMaps",
"eleTrkPtIso")
318 photon_id_config = cms.PSet(photon_ids = cms.vstring([
319 'RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_25ns_V1_cff',
320 'RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring15_50ns_V1_cff',
321 'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Spring15_25ns_nonTrig_V2p1_cff',
322 'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Spring15_50ns_nonTrig_V2p1_cff',
323 'RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Fall17_94X_V1_TrueVtx_cff',
324 'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Fall17_94X_V1_cff',
325 'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Fall17_94X_V1p1_cff',
326 'RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Spring16_V2p2_cff',
327 'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Spring16_nonTrig_V1_cff',
330 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff
import run2_miniAOD_devel
331 run2_miniAOD_devel.toModify(photon_id_config, photon_ids = photon_id_config.photon_ids + \
332 [
"RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Fall17_94X_V2_cff",
333 "RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_Fall17_94X_V2_cff"])
336 process.egmPhotonIsolation.srcToIsolate = \
337 cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
338 for iPSet
in process.egmPhotonIsolation.isolationConeDefinitions:
339 iPSet.particleBasedIsolation = cms.InputTag(
"reducedEgamma",
"reducedPhotonPfCandMap")
341 process.egmPhotonIDs.physicsObjectSrc = \
342 cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
343 process.photonIDValueMapProducer.src = \
344 cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
345 process.photonRegressionValueMapProducer.src = \
346 cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
347 process.photonIDValueMapProducer.particleBasedIsolation = \
348 cms.InputTag(
"reducedEgamma",
"reducedPhotonPfCandMap")
349 process.photonMVAValueMapProducer.src = \
350 cms.InputTag(
'reducedEgamma',
'reducedGedPhotons')
351 for idmod
in photon_id_config.photon_ids.value():
355 from RecoEgamma.EgammaTools.egammaObjectModifications_tools
import makeVIDBitsModifier
356 egamma_modifications.append(
makeVIDBitsModifier(process,
"egmGsfElectronIDs",
"egmPhotonIDs"))
359 from RecoTauTag.Configuration.boostedHPSPFTaus_cfi
import addBoostedTaus
361 process.load(
"RecoTauTag.Configuration.RecoPFTauTag_cff")
362 process.load(
"RecoTauTag.Configuration.HPSPFTaus_cff")
364 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
365 _makePatTausTaskWithRetrainedMVATauID = process.makePatTausTask.copy()
366 _makePatTausTaskWithRetrainedMVATauID.add(process.hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTTask)
367 run2_miniAOD_94XFall17.toReplaceWith(
368 process.makePatTausTask, _makePatTausTaskWithRetrainedMVATauID
371 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
372 _makePatTausTaskWithTauReReco = process.makePatTausTask.copy()
373 _makePatTausTaskWithTauReReco.add(process.PFTauTask)
374 run2_miniAOD_80XLegacy.toReplaceWith(
375 process.makePatTausTask, _makePatTausTaskWithTauReReco)
378 if not hasattr(process,
'ak4PFJetsPuppi'):
379 process.load(
'RecoJets.JetProducers.ak4PFJetsPuppi_cfi')
380 task.add(process.ak4PFJets)
381 task.add(process.ak4PFJetsPuppi)
382 process.ak4PFJetsPuppi.doAreaFastjet =
True 384 process.ak4PFJetsPuppiTracksAssociatorAtVertex = cms.EDProducer(
"JetTracksAssociatorAtVertex",
386 jets = cms.InputTag(
"ak4PFJetsPuppi")
388 task.add(process.ak4PFJetsPuppiTracksAssociatorAtVertex)
389 process.patJetPuppiCharge = cms.EDProducer(
"JetChargeProducer",
390 src = cms.InputTag(
"ak4PFJetsPuppiTracksAssociatorAtVertex"),
391 var = cms.string(
'Pt'),
392 exp = cms.double(1.0)
394 task.add(process.patJetPuppiCharge)
396 noDeepFlavourDiscriminators = [x.value()
for x
in process.patJets.discriminatorSources
if not "DeepFlavour" in x.value()]
397 addJetCollection(process, postfix =
"", labelName =
'Puppi', jetSource = cms.InputTag(
'ak4PFJetsPuppi'),
398 jetCorrections = (
'AK4PFPuppi', [
'L2Relative',
'L3Absolute'],
''),
399 pfCandidates = cms.InputTag(
'puppi'),
400 algo=
'AK', rParam = 0.4, btagDiscriminators = noDeepFlavourDiscriminators
403 process.patJetGenJetMatchPuppi.matched =
'slimmedGenJets' 405 process.patJetsPuppi.jetChargeSource = cms.InputTag(
"patJetPuppiCharge")
407 process.selectedPatJetsPuppi.cut = cms.string(
"pt > 15")
409 from PhysicsTools.PatAlgos.slimming.applyDeepBtagging_cff
import applyDeepBtagging
412 addToProcessAndTask(
'slimmedJetsPuppiNoMultiplicities', process.slimmedJetsNoDeepFlavour.clone(), process, task)
413 process.slimmedJetsPuppiNoMultiplicities.src = cms.InputTag(
"selectedPatJetsPuppi")
414 process.slimmedJetsPuppiNoMultiplicities.packedPFCandidates = cms.InputTag(
"packedPFCandidates")
416 from PhysicsTools.PatAlgos.patPuppiJetSpecificProducer_cfi
import patPuppiJetSpecificProducer
418 process.patPuppiJetSpecificProducer = patPuppiJetSpecificProducer.clone(
419 src=cms.InputTag(
"slimmedJetsPuppiNoMultiplicities"),
421 task.add(process.patPuppiJetSpecificProducer)
424 labelName =
'PuppiJetSpecific',
425 jetSource = cms.InputTag(
'slimmedJetsPuppiNoMultiplicities'),
427 process.updatedPatJetsPuppiJetSpecific.userData.userFloats.src = [
'patPuppiJetSpecificProducer:puppiMultiplicity',
'patPuppiJetSpecificProducer:neutralPuppiMultiplicity',
'patPuppiJetSpecificProducer:neutralHadronPuppiMultiplicity',
'patPuppiJetSpecificProducer:photonPuppiMultiplicity',
'patPuppiJetSpecificProducer:HFHadronPuppiMultiplicity',
'patPuppiJetSpecificProducer:HFEMPuppiMultiplicity' ]
428 process.slimmedJetsPuppi = process.selectedUpdatedPatJetsPuppiJetSpecific.clone()
429 delattr(process,
'selectedUpdatedPatJetsPuppiJetSpecific')
431 task.add(process.slimmedJetsPuppi)
434 from PhysicsTools.PatAlgos.slimming.puppiForMET_cff
import makePuppies
438 pfCandColl=cms.InputTag(
"puppiForMET"),
439 jetCollUnskimmed=
"slimmedJetsPuppi",
440 recoMetFromPFCs=
True,
441 jetFlavor=
"AK4PFPuppi",
445 process.load(
'PhysicsTools.PatAlgos.slimming.slimmedMETs_cfi')
446 task.add(process.slimmedMETs)
448 process.slimmedMETsPuppi.src = cms.InputTag(
"patMETsPuppi")
449 process.slimmedMETsPuppi.rawVariation = cms.InputTag(
"patPFMetPuppi")
450 process.slimmedMETsPuppi.t1Uncertainties = cms.InputTag(
"patPFMetT1%sPuppi")
451 process.slimmedMETsPuppi.t01Variation = cms.InputTag(
"patPFMetT0pcT1Puppi")
452 process.slimmedMETsPuppi.t1SmearedVarsAndUncs = cms.InputTag(
"patPFMetT1Smear%sPuppi")
453 process.slimmedMETsPuppi.tXYUncForRaw = cms.InputTag(
"patPFMetTxyPuppi")
454 process.slimmedMETsPuppi.tXYUncForT1 = cms.InputTag(
"patPFMetT1TxyPuppi")
455 process.slimmedMETsPuppi.tXYUncForT01 = cms.InputTag(
"patPFMetT0pcT1TxyPuppi")
456 process.slimmedMETsPuppi.tXYUncForT1Smear = cms.InputTag(
"patPFMetT1SmearTxyPuppi")
457 process.slimmedMETsPuppi.tXYUncForT01Smear = cms.InputTag(
"patPFMetT0pcT1SmearTxyPuppi")
458 del process.slimmedMETsPuppi.caloMET
461 process.load(
"TrackingTools.TrackAssociator.DetIdAssociatorESProducer_cff")
467 process.load(
"PhysicsTools.JetMCAlgos.HadronAndPartonSelector_cfi")
468 task.add(process.selectedHadronsAndPartons)
469 task.add(process.selectedHadronsAndPartonsForGenJetsFlavourInfos)
471 process.load(
"PhysicsTools.JetMCAlgos.AK4GenJetFlavourInfos_cfi")
472 task.add(process.ak4GenJetFlavourInfos)
474 process.load(
'PhysicsTools.PatAlgos.slimming.slimmedGenJetsFlavourInfos_cfi')
475 task.add(process.slimmedGenJetsFlavourInfos)
478 process.load(
'PhysicsTools.PatAlgos.slimming.slimmedAddPileupInfo_cfi')
479 task.add(process.slimmedAddPileupInfo)
481 process.muonMatch.matched =
"prunedGenParticles" 482 process.electronMatch.matched =
"prunedGenParticles" 483 process.electronMatch.src = cms.InputTag(
"reducedEgamma",
"reducedGedGsfElectrons")
484 process.photonMatch.matched =
"prunedGenParticles" 485 process.photonMatch.src = cms.InputTag(
"reducedEgamma",
"reducedGedPhotons")
486 process.ootPhotonMatch.matched =
"prunedGenParticles" 487 process.ootPhotonMatch.src = cms.InputTag(
"reducedEgamma",
"reducedOOTPhotons")
488 process.tauMatch.matched =
"prunedGenParticles" 489 process.tauGenJets.GenParticles =
"prunedGenParticles" 491 process.tauMatchBoosted.matched =
"prunedGenParticles" 492 process.tauGenJetsBoosted.GenParticles =
"prunedGenParticles" 493 process.patJetPartons.particles =
"genParticles" 494 process.patJetPartonMatch.matched =
"prunedGenParticles" 495 process.patJetPartonMatch.mcStatus = [ 3, 23 ]
496 process.patJetGenJetMatch.matched =
"slimmedGenJets" 497 process.patJetGenJetMatchAK8.matched =
"slimmedGenJetsAK8" 498 process.patMuons.embedGenMatch =
False 499 process.patElectrons.embedGenMatch =
False 500 process.patPhotons.embedGenMatch =
False 501 process.patOOTPhotons.embedGenMatch =
False 502 process.patTaus.embedGenMatch =
False 503 process.patTausBoosted.embedGenMatch =
False 504 process.patJets.embedGenPartonMatch =
False 506 process.patJetFlavourAssociation.rParam = 0.4
510 out.overrideBranchesSplitLevel = MiniAODOverrideBranchesSplitLevel
511 out.splitLevel = cms.untracked.int32(0)
512 out.dropMetaData = cms.untracked.string(
'ALL')
513 out.fastCloning= cms.untracked.bool(
False)
514 out.overrideInputFileSplitLevels = cms.untracked.bool(
True)
515 out.compressionAlgorithm = cms.untracked.string(
'LZMA')
519 runOnData( process, outputModules = [] )
520 process.load(
"RecoCTPPS.TotemRPLocal.ctppsLocalTrackLiteProducer_cff")
522 task.add(process.ctppsLocalTrackLiteProducer)
def makeInputForPUPPIIsolationMuon(process)
def applySubstructure(process, postfix="")
def miniAOD_customizeMETFiltersFastSim(process)
def addToProcessAndTask(label, module, process, task)
def makeInputForPUPPIIsolationEgm(process)
def runMetCorAndUncForMiniAODProduction(process, metType="PF", jetCollUnskimmed="patJets", photonColl="selectedPatPhotons", electronColl="selectedPatElectrons", muonColl="selectedPatMuons", tauColl="selectedPatTaus", pfCandColl="particleFlow", jetCleaning="LepClean", jetSelection="pt>15 && abs(eta)<9.9", jecUnFile="", jetFlavor="AK4PFchs", recoMetFromPFCs=False, postfix="")
def applyDeepBtagging(process, postfix="")
def miniAOD_customizeIsolatedTracksFastSim(process)
def getPatAlgosToolsTask(process)
def addBoostedTaus(process)