CMS 3D CMS Logo

genMetTrue_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # correct computation of the GenMET, with muons
4 
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),
12 
13  ignoreParticleIDs = cms.vuint32(
14  1000022, 2000012, 2000014,
15  2000016, 1000039, 5000039,
16  4000012, 9900012, 9900014,
17  9900016, 39, 12, 14, 16
18  )
19 )
20 
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),
28 )
29 
30 genMetTrueTask = cms.Task(
31  genParticlesForMETAllVisible ,
32  genMetTrue
33  )
34 genMetTrueSequence = cms.Sequence(genMetTrueTask)