1 import FWCore.ParameterSet.Config
as cms
30 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi
import PhotonCandidates
as oniaPhotonCandidates
33 slimmingTask = cms.Task(
34 packedPFCandidatesTask,
37 offlineSlimmedPrimaryVertices,
38 primaryVertexAssociation,
48 slimmedLowPtElectrons,
50 slimmedMuonTrackExtras,
55 slimmedSecondaryVertices,
56 slimmedKshortVertices,
57 slimmedLambdaVertices,
66 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
67 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
68 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi
import hiPixelTracks
70 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi
import hiEvtPlaneFlat
71 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
73 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi
import packedCandidateMuonID
74 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi
import packedPFCandidateTrackChi2
76 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi
import hiHFfilters
77 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates =
"lostTracks", doLostTracks =
True)
79 pp_on_AA.toReplaceWith(
81 cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
82 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
83 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
85 from RecoHI.HiTracking.miniAODVertexRecovery_cff
import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
86 pp_on_AA.toReplaceWith(
88 cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
90 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
91 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
92 offlineSlimmedPrimaryVertices4D)
93 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)