CMS 3D CMS Logo

slimming_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
29 from RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi import bunchSpacingProducer
30 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi import PhotonCandidates as oniaPhotonCandidates
32 
33 slimmingTask = cms.Task(
34  packedPFCandidatesTask,
35  lostTracks,
36  isolatedTracks,
37  offlineSlimmedPrimaryVertices,
38  primaryVertexAssociation,
39  genParticlesTask,
40  selectedPatTrigger,
41  slimmedPatTrigger,
42  slimmedCaloJets,
43  slimmedJets,
44  slimmedJetsAK8,
45  slimmedGenJets,
46  slimmedGenJetsAK8,
47  slimmedElectrons,
48  slimmedLowPtElectrons,
49  lowPtGsfLinks,
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.ProcessModifiers.pp_on_AA_cff import pp_on_AA
67 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
68 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi import hiPixelTracks
69 from RecoHI.HiEvtPlaneAlgos.HiEvtPlane_cfi import hiEvtPlane
70 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi import hiEvtPlaneFlat
71 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
72 
73 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi import packedCandidateMuonID
74 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi import packedPFCandidateTrackChi2
75 from RecoHI.HiCentralityAlgos.CentralityBin_cfi import centralityBin
76 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi import hiHFfilters
77 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates = "lostTracks", doLostTracks = True)
78 
79 pp_on_AA.toReplaceWith(
80  slimmingTask,
81  cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
82 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
83 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
84 
85 from RecoHI.HiTracking.miniAODVertexRecovery_cff import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
86 pp_on_AA.toReplaceWith(
87  slimmingTask,
88  cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
89 
90 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
91 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
92  offlineSlimmedPrimaryVertices4D)
93 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
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
slimmedTaus_cfi
slimmedPhotons_cfi
MicroEventContent_cff
CentralityBin_cfi