File indexing completed on 2024-04-06 12:25:21
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006
0007
0008 genParticlesForJets = cms.EDProducer("InputGenJetsParticleSelector",
0009 src = cms.InputTag("genParticles"),
0010 ignoreParticleIDs = cms.vuint32(
0011 1000022,
0012 1000012, 1000014, 1000016,
0013 2000012, 2000014, 2000016,
0014 1000039, 5100039,
0015 4000012, 4000014, 4000016,
0016 9900012, 9900014, 9900016,
0017 39),
0018 partonicFinalState = cms.bool(False),
0019 excludeResonances = cms.bool(False),
0020 excludeFromResonancePids = cms.vuint32(12, 13, 14, 16),
0021 tausAsJets = cms.bool(False)
0022 )
0023
0024 genParticlesForJetsNoNu = genParticlesForJets.clone()
0025 genParticlesForJetsNoNu.ignoreParticleIDs += [12,14,16]
0026
0027 genParticlesForJetsNoMuNoNu = genParticlesForJets.clone()
0028 genParticlesForJetsNoMuNoNu.ignoreParticleIDs += [12,13,14,16]
0029
0030 genJetParticlesTask = cms.Task(genParticlesForJets, genParticlesForJetsNoNu)
0031 genJetParticles = cms.Sequence(genJetParticlesTask)