CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoMET/Configuration/python/GenMETParticles_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # File: GenMET.cff
00004 # Author: R. Remington
00005 # Date: 10/21/08
00006 #
00007 # Form Missing ET from Generator Information and store into event as a GenMET
00008 # product.  Exclude calo invisible final state particles like neutrinos, muons
00009 #
00010 #
00011 # F.R. Mar. 22, 2007 IMPORTANT: this Configuration assumes that some
00012 #                    GenParticle collections are made via GenJet's Configuration
00013 from PhysicsTools.HepMCCandAlgos.genParticleCandidatesFast_cfi import *
00014 #from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
00015 from RecoJets.Configuration.GenJetParticles_cff import *
00016 
00017 genCandidatesForMET = cms.EDProducer(
00018     "InputGenJetsParticleSelector",
00019     src = cms.InputTag("genParticles"),
00020     partonicFinalState = cms.bool(False),
00021     excludeResonances = cms.bool(False),
00022     excludeFromResonancePids = cms.vuint32(),
00023     tausAsJets = cms.bool(False),
00024     
00025     ###These ID's will contribute to MET because they will be skipped in the negative vector sum Et calculation performed by the MET Algorithm  
00026     ignoreParticleIDs = cms.vuint32(
00027     1000022,
00028     1000012, 1000014, 1000016,
00029     2000012, 2000014, 2000016,
00030     1000039, 5100039,
00031     4000012, 4000014, 4000016,
00032     9900012, 9900014, 9900016,
00033     39, 12, 13, 14, 16
00034     )  
00035     )
00036 
00037 genParticlesForMETAllVisible = cms.EDProducer(
00038     "InputGenJetsParticleSelector",
00039     src = cms.InputTag("genParticles"),
00040     partonicFinalState = cms.bool(False),
00041     excludeResonances = cms.bool(False),
00042     excludeFromResonancePids = cms.vuint32(),
00043     tausAsJets = cms.bool(False),
00044     
00045     ignoreParticleIDs = cms.vuint32(
00046     1000022,
00047     1000012, 1000014, 1000016,
00048     2000012, 2000014, 2000016,
00049     1000039, 5100039,
00050     4000012, 4000014, 4000016,
00051     9900012, 9900014, 9900016,
00052     39, 12, 14, 16
00053     )
00054     )                                        
00055 
00056 genMETParticles = cms.Sequence(genCandidatesForMET+genParticlesForMETAllVisible)