1 import FWCore.ParameterSet.Config
as cms
34 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi
import PhotonCandidates
as oniaPhotonCandidates
37 slimmingTask = cms.Task(
38 packedPFCandidatesTask,
41 offlineSlimmedPrimaryVertices,
42 offlineSlimmedPrimaryVerticesWithBS,
43 primaryVertexAssociation,
44 primaryVertexWithBSAssociation,
46 packedCandidateToGenAssociationTask,
56 slimmedLowPtElectronsTask,
57 slimmedMuonTrackExtras,
59 slimmedDisplacedMuonTrackExtras,
60 slimmedDisplacedMuons,
64 slimmedSecondaryVertices,
65 slimmedKshortVertices,
66 slimmedLambdaVertices,
75 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
76 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
77 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedJPTJets]))
79 (pp_on_AA).toReplaceWith(slimmingTask,
80 slimmingTask.copyAndExclude([slimmedLowPtElectronsTask]))
82 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff
import run2_miniAOD_UL
83 from Configuration.Eras.Era_Run2_2016_HIPM_cff
import Run2_2016_HIPM
84 (pp_on_AA | run2_miniAOD_UL | Run2_2016_HIPM).toReplaceWith(slimmingTask,
85 slimmingTask.copyAndExclude([slimmedDisplacedMuons, slimmedDisplacedMuonTrackExtras]))
87 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi
import hiPixelTracks
88 from RecoHI.HiEvtPlaneAlgos.HiEvtPlane_cfi
import hiEvtPlane
89 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi
import hiEvtPlaneFlat
90 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
92 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi
import packedCandidateMuonID
93 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi
import packedPFCandidateTrackChi2
94 from RecoHI.HiCentralityAlgos.CentralityBin_cfi
import centralityBin
95 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi
import hiHFfilters
96 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates =
"lostTracks", doLostTracks =
True)
98 pp_on_AA.toReplaceWith(
100 cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
101 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
102 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
103 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexWithBSAssociationCleaned,slimmingTask.copy()))
104 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(pfEGammaToCandidateRemapperCleaned,slimmingTask.copy()))
106 from RecoHI.HiTracking.miniAODVertexRecovery_cff
import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
107 run2_miniAOD_pp_on_AA_103X.toReplaceWith(
109 cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
111 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
112 fastSim.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedDisplacedMuons, slimmedDisplacedMuonTrackExtras]))
114 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
115 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
116 offlineSlimmedPrimaryVertices4D)
117 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)
119 from PhysicsTools.PatAlgos.slimming.patPhotonDRNCorrector_cfi
import patPhotonsDRN
120 from Configuration.ProcessModifiers.photonDRN_cff
import _photonDRN
121 _photonDRN.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), patPhotonsDRN))
123 from Configuration.Eras.Modifier_run3_upc_cff
import run3_upc
124 from PhysicsTools.PatAlgos.modules
import DeDxEstimatorRekeyer
125 dedxEstimator = DeDxEstimatorRekeyer()
126 from Configuration.Eras.Modifier_run3_egamma_2023_cff
import run3_egamma_2023
127 (run3_upc & ~run3_egamma_2023).toModify(dedxEstimator, dedxEstimators = [
"dedxHarmonic2",
"dedxPixelHarmonic2",
"dedxPixelLikelihood",
"dedxStripLikelihood",
"dedxAllLikelihood"])
128 run3_upc.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, packedPFCandidateTrackChi2, lostTrackChi2, dedxEstimator))
130 from Configuration.Eras.Modifier_ppRef_2024_cff
import ppRef_2024
131 ppRef_2024.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), packedPFCandidateTrackChi2, lostTrackChi2))