Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-15 22:20:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from PhysicsTools.PatAlgos.slimming.packedPFCandidates_cff import *
0004 from PhysicsTools.PatAlgos.slimming.isolatedTracks_cfi import *
0005 from PhysicsTools.PatAlgos.slimming.lostTracks_cfi import *
0006 from PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices_cfi import *
0007 from PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVertices4D_cfi import *
0008 from PhysicsTools.PatAlgos.slimming.offlineSlimmedPrimaryVerticesWithBS_cfi import *
0009 from CommonTools.RecoAlgos.primaryVertexAssociation_cfi import *
0010 from CommonTools.ParticleFlow.pfEGammaToCandidateRemapper_cfi import *
0011 from PhysicsTools.PatAlgos.slimming.genParticles_cff import *
0012 from PhysicsTools.PatAlgos.slimming.genParticleAssociation_cff import *
0013 from PhysicsTools.PatAlgos.slimming.selectedPatTrigger_cfi import *
0014 from PhysicsTools.PatAlgos.slimming.slimmedPatTrigger_cfi import *
0015 from PhysicsTools.PatAlgos.slimming.slimmedJets_cfi      import *
0016 from PhysicsTools.PatAlgos.slimming.slimmedCaloJets_cfi  import *
0017 from PhysicsTools.PatAlgos.slimming.slimmedGenJets_cfi   import *
0018 from PhysicsTools.PatAlgos.slimming.slimmedElectrons_cfi import *
0019 from PhysicsTools.PatAlgos.slimming.slimmedLowPtElectrons_cff import *
0020 from PhysicsTools.PatAlgos.slimming.slimmedTrackExtras_cff import *
0021 from PhysicsTools.PatAlgos.slimming.slimmedMuons_cfi     import *
0022 from PhysicsTools.PatAlgos.slimming.slimmedDisplacedMuons_cfi     import *
0023 from PhysicsTools.PatAlgos.slimming.slimmedPhotons_cfi   import *
0024 from PhysicsTools.PatAlgos.slimming.slimmedOOTPhotons_cff import *
0025 from PhysicsTools.PatAlgos.slimming.slimmedTaus_cfi      import *
0026 from PhysicsTools.PatAlgos.slimming.slimmedSecondaryVertices_cfi      import *
0027 from PhysicsTools.PatAlgos.slimming.slimmedMETs_cfi      import *
0028 from PhysicsTools.PatAlgos.slimming.slimmedV0s_cff      import *
0029 from PhysicsTools.PatAlgos.slimming.metFilterPaths_cff   import *
0030 from PhysicsTools.PatAlgos.slimming.MicroEventContent_cff import *
0031 from RecoEgamma.EgammaPhotonProducers.reducedEgamma_cfi  import *
0032 from RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi import bunchSpacingProducer
0033 from HeavyFlavorAnalysis.Onia2MuMu.OniaPhotonConversionProducer_cfi import PhotonCandidates as oniaPhotonCandidates
0034 from RecoLocalCalo.HcalRecProducers.HcalHitSelection_cfi import *
0035 
0036 slimmingTask = cms.Task(
0037     packedPFCandidatesTask,
0038     lostTracks,
0039     isolatedTracks,
0040     offlineSlimmedPrimaryVertices,
0041     offlineSlimmedPrimaryVerticesWithBS,
0042     primaryVertexAssociation,
0043     primaryVertexWithBSAssociation,
0044     genParticlesTask,
0045     packedCandidateToGenAssociationTask,
0046     selectedPatTrigger,
0047     slimmedPatTrigger,
0048     slimmedCaloJets,
0049     slimmedJets,
0050     slimmedJetsAK8,
0051     slimmedGenJets,
0052     slimmedGenJetsAK8,
0053     slimmedElectrons,
0054     slimmedLowPtElectronsTask,
0055     slimmedMuonTrackExtras,
0056     slimmedMuons,
0057     slimmedDisplacedMuonTrackExtras,
0058     slimmedDisplacedMuons,
0059     slimmedPhotons,
0060     slimmedOOTPhotons,
0061     slimmedTaus,
0062     slimmedSecondaryVertices,
0063     slimmedKshortVertices,
0064     slimmedLambdaVertices,
0065     slimmedMETs,
0066     metFilterPathsTask,
0067     reducedEgamma,
0068     slimmedHcalRecHits,
0069     bunchSpacingProducer,
0070     oniaPhotonCandidates
0071 )
0072 
0073 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0074 pp_on_AA.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedOOTPhotons]))
0075 
0076 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff import run2_miniAOD_94XFall17
0077 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff import run2_miniAOD_80XLegacy
0078 _mAOD = (run2_miniAOD_94XFall17 | run2_miniAOD_80XLegacy)
0079 (pp_on_AA | _mAOD).toReplaceWith(slimmingTask,
0080                                  slimmingTask.copyAndExclude([slimmedLowPtElectronsTask]))
0081 
0082 from Configuration.ProcessModifiers.run2_miniAOD_UL_cff import run2_miniAOD_UL
0083 from Configuration.Eras.Era_Run2_2016_HIPM_cff import Run2_2016_HIPM
0084 (pp_on_AA | _mAOD | run2_miniAOD_UL | Run2_2016_HIPM).toReplaceWith(slimmingTask,
0085                                                    slimmingTask.copyAndExclude([slimmedDisplacedMuons, slimmedDisplacedMuonTrackExtras]))
0086 
0087 from PhysicsTools.PatAlgos.slimming.hiPixelTracks_cfi import hiPixelTracks
0088 from RecoHI.HiEvtPlaneAlgos.HiEvtPlane_cfi import hiEvtPlane
0089 from RecoHI.HiEvtPlaneAlgos.hiEvtPlaneFlat_cfi import hiEvtPlaneFlat
0090 pp_on_AA.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, hiEvtPlane, hiEvtPlaneFlat))
0091 
0092 from PhysicsTools.PatAlgos.packedCandidateMuonID_cfi import packedCandidateMuonID
0093 from PhysicsTools.PatAlgos.packedPFCandidateTrackChi2_cfi import packedPFCandidateTrackChi2
0094 from RecoHI.HiCentralityAlgos.CentralityBin_cfi import centralityBin
0095 from RecoHI.HiCentralityAlgos.hiHFfilters_cfi import hiHFfilters
0096 lostTrackChi2 = packedPFCandidateTrackChi2.clone(candidates = "lostTracks", doLostTracks = True)
0097 
0098 pp_on_AA.toReplaceWith(
0099     slimmingTask,
0100     cms.Task(slimmingTask.copy(), packedCandidateMuonID, packedPFCandidateTrackChi2, lostTrackChi2, centralityBin, hiHFfilters))
0101 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
0102 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexAssociationCleaned,slimmingTask.copy()))
0103 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(primaryVertexWithBSAssociationCleaned,slimmingTask.copy()))
0104 run2_miniAOD_pp_on_AA_103X.toReplaceWith(slimmingTask,cms.Task(pfEGammaToCandidateRemapperCleaned,slimmingTask.copy()))
0105 
0106 from RecoHI.HiTracking.miniAODVertexRecovery_cff import offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery
0107 pp_on_AA.toReplaceWith(
0108     slimmingTask,
0109     cms.Task(slimmingTask.copy(), offlinePrimaryVerticesRecovery, offlineSlimmedPrimaryVerticesRecovery))
0110 
0111 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0112 fastSim.toReplaceWith(slimmingTask, slimmingTask.copyAndExclude([slimmedDisplacedMuons, slimmedDisplacedMuonTrackExtras]))
0113 
0114 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
0115 _phase2_timing_slimmingTask = cms.Task(slimmingTask.copy(),
0116                                        offlineSlimmedPrimaryVertices4D)
0117 phase2_timing.toReplaceWith(slimmingTask,_phase2_timing_slimmingTask)
0118 
0119 from PhysicsTools.PatAlgos.slimming.patPhotonDRNCorrector_cfi import patPhotonsDRN
0120 from Configuration.ProcessModifiers.photonDRN_cff import _photonDRN
0121 _photonDRN.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), patPhotonsDRN))