test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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"), ## Input product label
23  alias = cms.string('GenMETAllVisible'), ## Alias for FWLite
24  onlyFiducialParticles = cms.bool(False), ## Use only fiducial GenParticles
25  globalThreshold = cms.double(0.0), ## Global Threshold for input objects
26  usePt = cms.bool(True), ## using Pt instead Et
27  applyFiducialThresholdForFractions = cms.bool(False),
28 )
29 
30 genMetTrueSequence = cms.Sequence(
31  genParticlesForMETAllVisible *
32  genMetTrue
33  )