1 import FWCore.ParameterSet.Config
as cms
5 genParticlesForMETAllVisible = cms.EDFilter(
6 "InputGenJetsParticleSelector",
7 src = cms.InputTag(
"genParticles"),
8 partonicFinalState = cms.bool(
False),
9 excludeResonances = cms.bool(
False),
10 excludeFromResonancePids = cms.vuint32(),
11 tausAsJets = cms.bool(
False),
13 ignoreParticleIDs = cms.vuint32(
14 1000022, 2000012, 2000014,
15 2000016, 1000039, 5000039,
16 4000012, 9900012, 9900014,
17 9900016, 39, 12, 14, 16
21 genMetTrue = cms.EDProducer(
"GenMETProducer",
22 src = cms.InputTag(
"genParticlesForMETAllVisible"),
23 alias = cms.string(
'GenMETAllVisible'),
24 onlyFiducialParticles = cms.bool(
False),
25 globalThreshold = cms.double(0.0),
26 usePt = cms.bool(
True),
27 applyFiducialThresholdForFractions = cms.bool(
False),
30 genMetTrueTask = cms.Task(
31 genParticlesForMETAllVisible ,
34 genMetTrueSequence = cms.Sequence(genMetTrueTask)