1 import FWCore.ParameterSet.Config
as cms
29 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi
import PhotonCandidates
as oniaPhotonCandidates
32 slimmingTask = cms.Task(
33 packedPFCandidatesTask,
36 offlineSlimmedPrimaryVertices,
37 primaryVertexAssociation,
47 slimmedLowPtElectronsTask,
48 slimmedMuonTrackExtras,
53 slimmedSecondaryVertices,
54 slimmedKshortVertices,
55 slimmedLambdaVertices,
64 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
65 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
67 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
68 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
69 _mAOD = (run2_miniAOD_94XFall17 | run2_miniAOD_80XLegacy)
70 (pp_on_AA | _mAOD).toReplaceWith(slimmingTask,
71 slimmingTask.copyAndExclude([slimmedLowPtElectronsTask]))
73 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi
import hiPixelTracks
75 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi
import hiEvtPlaneFlat
76 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
78 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi
import packedCandidateMuonID
79 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi
import packedPFCandidateTrackChi2
81 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi
import hiHFfilters
82 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates =
"lostTracks", doLostTracks =
True)
84 pp_on_AA.toReplaceWith(
86 cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
87 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
88 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
90 from RecoHI.HiTracking.miniAODVertexRecovery_cff
import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
91 pp_on_AA.toReplaceWith(
93 cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
95 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
96 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
97 offlineSlimmedPrimaryVertices4D)
98 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)