Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-07-03 23:26:41

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # File: GenMET.cff
0004 # Author: R. Remington
0005 # Date: 10/21/08
0006 #
0007 # Form Missing ET from Generator Information and store into event as a GenMET
0008 # product.  Exclude calo invisible final state particles like neutrinos, muons
0009 #
0010 #
0011 # F.R. Mar. 22, 2007 IMPORTANT: this configuration assumes that some
0012 #                    GenParticle collections are made via GenJet's configuration
0013 from RecoJets.Configuration.GenJetParticles_cff import *
0014 
0015 genCandidatesForMET = cms.EDProducer(
0016     "InputGenJetsParticleSelector",
0017     src = cms.InputTag("genParticles"),
0018     partonicFinalState = cms.bool(False),
0019     excludeResonances = cms.bool(False),
0020     excludeFromResonancePids = cms.vuint32(),
0021     tausAsJets = cms.bool(False),
0022     
0023     ###These ID's will contribute to MET because they will be skipped in the negative vector sum Et calculation performed by the MET Algorithm  
0024     ignoreParticleIDs = cms.vuint32(
0025     1000022,
0026     1000012, 1000014, 1000016,
0027     2000012, 2000014, 2000016,
0028     1000039, 5100039,
0029     4000012, 4000014, 4000016,
0030     9900012, 9900014, 9900016,
0031     39, 12, 13, 14, 16
0032     )  
0033     )
0034 
0035 genParticlesForMETAllVisible = cms.EDProducer(
0036     "InputGenJetsParticleSelector",
0037     src = cms.InputTag("genParticles"),
0038     partonicFinalState = cms.bool(False),
0039     excludeResonances = cms.bool(False),
0040     excludeFromResonancePids = cms.vuint32(),
0041     tausAsJets = cms.bool(False),
0042     
0043     ignoreParticleIDs = cms.vuint32(
0044     1000022,
0045     1000012, 1000014, 1000016,
0046     2000012, 2000014, 2000016,
0047     1000039, 5100039,
0048     4000012, 4000014, 4000016,
0049     9900012, 9900014, 9900016,
0050     39, 12, 14, 16
0051     )
0052     )                                        
0053 
0054 genMETParticlesTask = cms.Task(genCandidatesForMET, genParticlesForMETAllVisible)
0055 genMETParticles = cms.Sequence(genMETParticlesTask)