File indexing completed on 2025-02-11 03:07:50
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from PhysicsTools.NanoAOD.common_cff import *
0004
0005 from PhysicsTools.NanoAOD.genparticles_cff import *
0006 from PhysicsTools.PatAlgos.slimming.prunedGenParticles_cfi import *
0007 from DPGAnalysis.MuonTools.nano_mu_hlt_cff import *
0008
0009
0010 hltMuNanoProducer = cms.Sequence(
0011 prunedGenParticles + finalGenParticles + genParticleTable + hltMuonTriggerProducers
0012 )
0013
0014
0015 def hltMuNanoCustomize(process):
0016
0017 if hasattr(process, "NANOAODSIMoutput"):
0018 process.prunedGenParticles.src = "genParticles"
0019 process.genParticleTable.externalVariables = cms.PSet()
0020 process.NANOAODSIMoutput.outputCommands.append(
0021 "keep nanoaodFlatTable_*Table*_*_*"
0022 )
0023 process.NANOAODSIMoutput.outputCommands.append("drop edmTriggerResults_*_*_*")
0024
0025 return process