Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:26:39

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 PhysicsTools.HepMCCandAlgos.genParticleCandidatesFast_cfi import *
0014 #from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
0015 from RecoJets.Configuration.GenJetParticles_cff import *
0016 
0017 genCandidatesForMET = cms.EDProducer(
0018     "InputGenJetsParticleSelector",
0019     src = cms.InputTag("genParticles"),
0020     partonicFinalState = cms.bool(False),
0021     excludeResonances = cms.bool(False),
0022     excludeFromResonancePids = cms.vuint32(),
0023     tausAsJets = cms.bool(False),
0024     
0025     ###These ID's will contribute to MET because they will be skipped in the negative vector sum Et calculation performed by the MET Algorithm  
0026     ignoreParticleIDs = cms.vuint32(
0027     1000022,
0028     1000012, 1000014, 1000016,
0029     2000012, 2000014, 2000016,
0030     1000039, 5100039,
0031     4000012, 4000014, 4000016,
0032     9900012, 9900014, 9900016,
0033     39, 12, 13, 14, 16
0034     )  
0035     )
0036 
0037 genParticlesForMETAllVisible = cms.EDProducer(
0038     "InputGenJetsParticleSelector",
0039     src = cms.InputTag("genParticles"),
0040     partonicFinalState = cms.bool(False),
0041     excludeResonances = cms.bool(False),
0042     excludeFromResonancePids = cms.vuint32(),
0043     tausAsJets = cms.bool(False),
0044     
0045     ignoreParticleIDs = cms.vuint32(
0046     1000022,
0047     1000012, 1000014, 1000016,
0048     2000012, 2000014, 2000016,
0049     1000039, 5100039,
0050     4000012, 4000014, 4000016,
0051     9900012, 9900014, 9900016,
0052     39, 12, 14, 16
0053     )
0054     )                                        
0055 
0056 genMETParticlesTask = cms.Task(genCandidatesForMET, genParticlesForMETAllVisible)
0057 genMETParticles = cms.Sequence(genMETParticlesTask)