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
31 
32 slimmingTask = cms.Task(
33  packedPFCandidatesTask,
34  lostTracks,
35  isolatedTracks,
36  offlineSlimmedPrimaryVertices,
37  primaryVertexAssociation,
38  genParticlesTask,
39  selectedPatTrigger,
40  slimmedPatTrigger,
41  slimmedCaloJets,
42  slimmedJets,
43  slimmedJetsAK8,
44  slimmedGenJets,
45  slimmedGenJetsAK8,
46  slimmedElectrons,
47  slimmedLowPtElectronsTask,
48  slimmedMuonTrackExtras,
49  slimmedMuons,
50  slimmedPhotons,
51  slimmedOOTPhotons,
52  slimmedTaus,
53  slimmedSecondaryVertices,
54  slimmedKshortVertices,
55  slimmedLambdaVertices,
56  slimmedMETs,
57  metFilterPathsTask,
58  reducedEgamma,
59  slimmedHcalRecHits,
60  bunchSpacingProducer,
61  oniaPhotonCandidates
62 )
63 
64 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
65 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
66 
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]))
72 
73 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi import hiPixelTracks
74 from RecoHI.HiEvtPlaneAlgos.HiEvtPlane_cfi import hiEvtPlane
75 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi import hiEvtPlaneFlat
76 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
77 
78 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi import packedCandidateMuonID
79 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi import packedPFCandidateTrackChi2
80 from RecoHI.HiCentralityAlgos.CentralityBin_cfi import centralityBin
81 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi import hiHFfilters
82 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates = "lostTracks", doLostTracks = True)
83 
84 pp_on_AA.toReplaceWith(
85  slimmingTask,
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()))
89 
90 from RecoHI.HiTracking.miniAODVertexRecovery_cff import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
91 pp_on_AA.toReplaceWith(
92  slimmingTask,
93  cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
94 
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)
bunchSpacingProducer_cfi
reducedEgamma_cfi
HiEvtPlane_cfi
genParticles_cff
slimmedOOTPhotons_cff
slimmedMETs_cfi
slimmedJets_cfi
slimmedCaloJets_cfi
slimmedMuons_cfi
slimmedSecondaryVertices_cfi
isolatedTracks_cfi
offlineSlimmedPrimaryVertices4D_cfi
HcalHitSelection_cfi
packedPFCandidates_cff
lostTracks_cfi
slimmedElectrons_cfi
slimmedGenJets_cfi
metFilterPaths_cff
slimmedV0s_cff
selectedPatTrigger_cfi
primaryVertexAssociation_cfi
offlineSlimmedPrimaryVertices_cfi
slimmedTrackExtras_cff
slimmedPatTrigger_cfi
slimmedLowPtElectrons_cff
slimmedTaus_cfi
slimmedPhotons_cfi
MicroEventContent_cff
CentralityBin_cfi