00001 import FWCore.ParameterSet.Config as cms
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 from PhysicsTools.HepMCCandAlgos.genParticleCandidatesFast_cfi import *
00014
00015 from RecoJets.Configuration.GenJetParticles_cff import *
00016
00017 genCandidatesForMET = cms.EDProducer(
00018 "InputGenJetsParticleSelector",
00019 src = cms.InputTag("genParticles"),
00020 partonicFinalState = cms.bool(False),
00021 excludeResonances = cms.bool(False),
00022 excludeFromResonancePids = cms.vuint32(),
00023 tausAsJets = cms.bool(False),
00024
00025
00026 ignoreParticleIDs = cms.vuint32(
00027 1000022,
00028 1000012, 1000014, 1000016,
00029 2000012, 2000014, 2000016,
00030 1000039, 5100039,
00031 4000012, 4000014, 4000016,
00032 9900012, 9900014, 9900016,
00033 39, 12, 13, 14, 16
00034 )
00035 )
00036
00037 genParticlesForMETAllVisible = cms.EDProducer(
00038 "InputGenJetsParticleSelector",
00039 src = cms.InputTag("genParticles"),
00040 partonicFinalState = cms.bool(False),
00041 excludeResonances = cms.bool(False),
00042 excludeFromResonancePids = cms.vuint32(),
00043 tausAsJets = cms.bool(False),
00044
00045 ignoreParticleIDs = cms.vuint32(
00046 1000022,
00047 1000012, 1000014, 1000016,
00048 2000012, 2000014, 2000016,
00049 1000039, 5100039,
00050 4000012, 4000014, 4000016,
00051 9900012, 9900014, 9900016,
00052 39, 12, 14, 16
00053 )
00054 )
00055
00056 genMETParticles = cms.Sequence(genCandidatesForMET+genParticlesForMETAllVisible)