CMS 3D CMS Logo

jetMatch_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #
00004 # Example for a configuration of the MC match
00005 # for jets (cuts are NOT tuned!!)
00006 # Using old TQAF cuts of january 2008
00007 #
00008 jetPartonMatch = cms.EDFilter("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
00009     src = cms.InputTag("iterativeCone5CaloJets"),    # RECO objects to match
00010     matched = cms.InputTag("genParticles"), # mc-truth particle collection
00011     mcPdgId  = cms.vint32(1, 2, 3, 4, 5, 21), # one or more PDG ID (quarks except top; gluons)
00012     mcStatus = cms.vint32(3),                 # PYTHIA status code (3 = hard scattering)
00013     checkCharge = cms.bool(False),            # False = any value of the charge of MC and RECO is ok
00014     maxDeltaR = cms.double(0.4), # Minimum deltaR for the match
00015     maxDPtRel = cms.double(3.0), # Minimum deltaPt/Pt for the match
00016     resolveAmbiguities = cms.bool(True),     # Forbid two RECO objects to match to the same GEN object
00017     resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
00018 )
00019 
00020 jetGenJetMatch = cms.EDFilter("GenJetMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
00021     src      = cms.InputTag("iterativeCone5CaloJets"),         ## RECO jets (any View<Jet> is ok)
00022     matched  = cms.InputTag("iterativeCone5GenJets"), ## GEN jets  (must be GenJetCollection)
00023     mcPdgId  = cms.vint32(),       # n/a
00024     mcStatus = cms.vint32(),       # n/a
00025     checkCharge = cms.bool(False), # n/a
00026     maxDeltaR = cms.double(0.4), # Minimum deltaR for the match
00027     maxDPtRel = cms.double(3.0), # Minimum deltaPt/Pt for the match
00028     resolveAmbiguities = cms.bool(True),     # Forbid two RECO objects to match to the same GEN object
00029     resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
00030 )
00031 
00032 

Generated on Tue Jun 9 17:41:44 2009 for CMSSW by  doxygen 1.5.4