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