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.
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("METProducer",
22  src = cms.InputTag("genParticlesForMETAllVisible"), ## Input product label
23 
24  METType = cms.string('GenMET'), ## Output MET type
25 
26  alias = cms.string('GenMETAllVisible'), ## Alias for FWLite
27 
28  noHF = cms.bool(False), ## do not exclude HF
29 
30  globalThreshold = cms.double(0.0), ## Global Threshold for input objects
31 
32  InputType = cms.string('CandidateCollection') ## Input product type
33 
34 )
35 
36 genMetTrueSequence = cms.Sequence(
37  genParticlesForMETAllVisible *
38  genMetTrue
39  )