CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GenMETParticles_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # File: GenMET.cff
4 # Author: R. Remington
5 # Date: 10/21/08
6 #
7 # Form Missing ET from Generator Information and store into event as a GenMET
8 # product. Exclude calo invisible final state particles like neutrinos, muons
9 #
10 #
11 # F.R. Mar. 22, 2007 IMPORTANT: this configuration assumes that some
12 # GenParticle collections are made via GenJet's configuration
14 #from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
16 
17 genCandidatesForMET = cms.EDProducer(
18  "InputGenJetsParticleSelector",
19  src = cms.InputTag("genParticles"),
20  partonicFinalState = cms.bool(False),
21  excludeResonances = cms.bool(False),
22  excludeFromResonancePids = cms.vuint32(),
23  tausAsJets = cms.bool(False),
24 
25  ###These ID's will contribute to MET because they will be skipped in the negative vector sum Et calculation performed by the MET Algorithm
26  ignoreParticleIDs = cms.vuint32(
27  1000022,
28  1000012, 1000014, 1000016,
29  2000012, 2000014, 2000016,
30  1000039, 5100039,
31  4000012, 4000014, 4000016,
32  9900012, 9900014, 9900016,
33  39, 12, 13, 14, 16
34  )
35  )
36 
37 genParticlesForMETAllVisible = cms.EDProducer(
38  "InputGenJetsParticleSelector",
39  src = cms.InputTag("genParticles"),
40  partonicFinalState = cms.bool(False),
41  excludeResonances = cms.bool(False),
42  excludeFromResonancePids = cms.vuint32(),
43  tausAsJets = cms.bool(False),
44 
45  ignoreParticleIDs = cms.vuint32(
46  1000022,
47  1000012, 1000014, 1000016,
48  2000012, 2000014, 2000016,
49  1000039, 5100039,
50  4000012, 4000014, 4000016,
51  9900012, 9900014, 9900016,
52  39, 12, 14, 16
53  )
54  )
55 
56 genMETParticlesTask = cms.Task(genCandidatesForMET, genParticlesForMETAllVisible)
57 genMETParticles = cms.Sequence(genMETParticlesTask)