CMS 3D CMS Logo

slimming_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
28 from RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi import bunchSpacingProducer
29 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi import PhotonCandidates as oniaPhotonCandidates
30 
31 slimmingTask = cms.Task(
32  packedPFCandidatesTask,
33  lostTracks,
34  isolatedTracks,
35  offlineSlimmedPrimaryVertices,
36  primaryVertexAssociation,
37  genParticlesTask,
38  selectedPatTrigger,
39  slimmedPatTrigger,
40  slimmedCaloJets,
41  slimmedJets,
42  slimmedJetsAK8,
43  slimmedGenJets,
44  slimmedGenJetsAK8,
45  slimmedElectrons,
46  slimmedLowPtElectrons,
47  lowPtGsfLinks,
48  slimmedMuons,
49  slimmedPhotons,
50  slimmedOOTPhotons,
51  slimmedTaus,
52  slimmedSecondaryVertices,
53  slimmedKshortVertices,
54  slimmedLambdaVertices,
55  slimmedMETs,
56  metFilterPathsTask,
57  reducedEgamma,
58  bunchSpacingProducer,
59  oniaPhotonCandidates
60 )
61 
62 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
63 pp_on_AA_2018.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
64 
65 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
66 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
67  offlineSlimmedPrimaryVertices4D)
68 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)