1 import FWCore.ParameterSet.Config
as cms
31 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi
import PhotonCandidates
as oniaPhotonCandidates
34 slimmingTask = cms.Task(
35 packedPFCandidatesTask,
38 offlineSlimmedPrimaryVertices,
39 offlineSlimmedPrimaryVerticesWithBS,
40 primaryVertexAssociation,
41 primaryVertexWithBSAssociation,
43 packedCandidateToGenAssociationTask,
52 slimmedLowPtElectronsTask,
53 slimmedMuonTrackExtras,
58 slimmedSecondaryVertices,
59 slimmedKshortVertices,
60 slimmedLambdaVertices,
69 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
70 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
72 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
73 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
74 _mAOD = (run2_miniAOD_94XFall17 | run2_miniAOD_80XLegacy)
75 (pp_on_AA | _mAOD).toReplaceWith(slimmingTask,
76 slimmingTask.copyAndExclude([slimmedLowPtElectronsTask]))
78 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi
import hiPixelTracks
80 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi
import hiEvtPlaneFlat
81 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
83 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi
import packedCandidateMuonID
84 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi
import packedPFCandidateTrackChi2
86 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi
import hiHFfilters
87 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates =
"lostTracks", doLostTracks =
True)
89 pp_on_AA.toReplaceWith(
91 cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
92 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff
import run2_miniAOD_pp_on_AA_103X
93 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
94 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexWithBSAssociationCleaned,slimmingTask.copy()))
96 from RecoHI.HiTracking.miniAODVertexRecovery_cff
import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
97 pp_on_AA.toReplaceWith(
99 cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
101 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
102 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
103 offlineSlimmedPrimaryVertices4D)
104 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)