1 import FWCore.ParameterSet.Config
as cms
31 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi
import PhotonCandidates
as oniaPhotonCandidates
35 slimmingTask = cms.Task(
36 packedPFCandidatesTask,
39 offlineSlimmedPrimaryVertices,
40 primaryVertexAssociation,
50 slimmedLowPtElectrons,
52 slimmedMuonTrackExtras,
57 slimmedSecondaryVertices,
58 slimmedKshortVertices,
59 slimmedLambdaVertices,
68 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
69 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
70 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi
import hiPixelTracks
72 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi
import hiEvtPlaneFlat
73 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
75 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi
import packedCandidateMuonID
76 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi
import packedPFCandidateTrackChi2
78 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi
import hiHFfilters
79 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates =
"lostTracks", doLostTracks =
True)
81 pp_on_AA.toReplaceWith(
83 cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
84 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
85 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
86 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_Bugfix_cff
import run2_miniAOD_pp_on_AA_103X_Bugfix
87 run2_miniAOD_pp_on_AA_103X_Bugfix.toReplaceWith(slimmingTask,cms.Task(pfEGammaToCandidateRemapperCleaned,slimmingTask.copy()))
89 from RecoHI.HiTracking.miniAODVertexRecovery_cff
import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
90 pp_on_AA.toReplaceWith(
92 cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
94 from Configuration.Eras.Modifier_bParking_cff
import bParking
95 _bParking_slimmingTask = cms.Task(slimmingTask.copy(),packedCandidateToGenAssociationTask)
96 bParking.toReplaceWith(slimmingTask,_bParking_slimmingTask)
98 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
99 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
100 offlineSlimmedPrimaryVertices4D)
101 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)