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 primaryVertexAssociation,
49 slimmedLowPtElectronsTask,
50 slimmedMuonTrackExtras,
55 slimmedSecondaryVertices,
56 slimmedKshortVertices,
57 slimmedLambdaVertices,
66 from Configuration.Eras.Modifier_run2_miniAOD_devel_cff
import run2_miniAOD_devel
67 from Configuration.Eras.Modifier_bParking_cff
import bParking
68 (bParking | run2_miniAOD_devel).toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), offlineSlimmedPrimaryVerticesWithBS, primaryVertexWithBSAssociation))
70 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
71 pp_on_AA_2018.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
73 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
74 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
75 _mAOD = (run2_miniAOD_94XFall17 | run2_miniAOD_80XLegacy)
76 (pp_on_AA_2018 | _mAOD).toReplaceWith(slimmingTask,
77 slimmingTask.copyAndExclude([slimmedLowPtElectronsTask]))
79 from Configuration.Eras.Modifier_bParking_cff
import bParking
80 _bParking_slimmingTask = cms.Task(slimmingTask.copy(),packedCandidateToGenAssociationTask)
81 bParking.toReplaceWith(slimmingTask,_bParking_slimmingTask)
83 from Configuration.Eras.Modifier_phase2_timing_cff
import phase2_timing
84 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
85 offlineSlimmedPrimaryVertices4D)
86 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)