File indexing completed on 2024-04-06 12:26:39
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 from PhysicsTools.HepMCCandAlgos.genParticleCandidatesFast_cfi import *
0014
0015 from RecoJets.Configuration.GenJetParticles_cff import *
0016
0017 genCandidatesForMET = cms.EDProducer(
0018 "InputGenJetsParticleSelector",
0019 src = cms.InputTag("genParticles"),
0020 partonicFinalState = cms.bool(False),
0021 excludeResonances = cms.bool(False),
0022 excludeFromResonancePids = cms.vuint32(),
0023 tausAsJets = cms.bool(False),
0024
0025
0026 ignoreParticleIDs = cms.vuint32(
0027 1000022,
0028 1000012, 1000014, 1000016,
0029 2000012, 2000014, 2000016,
0030 1000039, 5100039,
0031 4000012, 4000014, 4000016,
0032 9900012, 9900014, 9900016,
0033 39, 12, 13, 14, 16
0034 )
0035 )
0036
0037 genParticlesForMETAllVisible = cms.EDProducer(
0038 "InputGenJetsParticleSelector",
0039 src = cms.InputTag("genParticles"),
0040 partonicFinalState = cms.bool(False),
0041 excludeResonances = cms.bool(False),
0042 excludeFromResonancePids = cms.vuint32(),
0043 tausAsJets = cms.bool(False),
0044
0045 ignoreParticleIDs = cms.vuint32(
0046 1000022,
0047 1000012, 1000014, 1000016,
0048 2000012, 2000014, 2000016,
0049 1000039, 5100039,
0050 4000012, 4000014, 4000016,
0051 9900012, 9900014, 9900016,
0052 39, 12, 14, 16
0053 )
0054 )
0055
0056 genMETParticlesTask = cms.Task(genCandidatesForMET, genParticlesForMETAllVisible)
0057 genMETParticles = cms.Sequence(genMETParticlesTask)