CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CommonTools/ParticleFlow/python/GeneratorTools/genMetTrue_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # correct computation of the GenMET, with muons
00004 
00005 genParticlesForMETAllVisible = cms.EDFilter(
00006     "InputGenJetsParticleSelector",
00007     src = cms.InputTag("genParticles"),
00008     partonicFinalState = cms.bool(False),
00009     excludeResonances = cms.bool(False),
00010     excludeFromResonancePids = cms.vuint32(),
00011     tausAsJets = cms.bool(False),
00012     
00013     ignoreParticleIDs = cms.vuint32(
00014     1000022, 2000012, 2000014,
00015     2000016, 1000039, 5000039,
00016     4000012, 9900012, 9900014,
00017     9900016, 39, 12, 14, 16
00018     )
00019     )                   
00020 
00021 genMetTrue = cms.EDProducer("METProducer",
00022     src = cms.InputTag("genParticlesForMETAllVisible"), ## Input  product label       
00023 
00024     METType = cms.string('GenMET'), ## Output MET type        
00025 
00026     alias = cms.string('GenMETAllVisible'), ## Alias  for FWLite          
00027 
00028     noHF = cms.bool(False), ## do not exclude HF
00029 
00030     globalThreshold = cms.double(0.0), ## Global Threshold for input objects
00031 
00032     InputType = cms.string('CandidateCollection') ## Input  product type          
00033 
00034 )
00035 
00036 genMetTrueSequence = cms.Sequence(
00037     genParticlesForMETAllVisible *
00038     genMetTrue
00039     )