CMS 3D CMS Logo

slimming_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
30 from RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi import bunchSpacingProducer
31 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi import PhotonCandidates as oniaPhotonCandidates
33 
34 slimmingTask = cms.Task(
35  packedPFCandidatesTask,
36  lostTracks,
37  isolatedTracks,
38  offlineSlimmedPrimaryVertices,
39  primaryVertexAssociation,
40  genParticlesTask,
41  selectedPatTrigger,
42  slimmedPatTrigger,
43  slimmedCaloJets,
44  slimmedJets,
45  slimmedJetsAK8,
46  slimmedGenJets,
47  slimmedGenJetsAK8,
48  slimmedElectrons,
49  slimmedLowPtElectronsTask,
50  slimmedMuonTrackExtras,
51  slimmedMuons,
52  slimmedPhotons,
53  slimmedOOTPhotons,
54  slimmedTaus,
55  slimmedSecondaryVertices,
56  slimmedKshortVertices,
57  slimmedLambdaVertices,
58  slimmedMETs,
59  metFilterPathsTask,
60  reducedEgamma,
61  slimmedHcalRecHits,
62  bunchSpacingProducer,
63  oniaPhotonCandidates
64 )
65 
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))
69 
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]))
72 
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]))
78 
79 from Configuration.Eras.Modifier_bParking_cff import bParking
80 _bParking_slimmingTask = cms.Task(slimmingTask.copy(),packedCandidateToGenAssociationTask)
81 bParking.toReplaceWith(slimmingTask,_bParking_slimmingTask)
82 
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)