CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/PhysicsTools/PatAlgos/python/mcMatchLayer0/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 #
00006 patJetPartonMatch = cms.EDProducer("MCMatcher",        # cut on deltaR, deltaPt/Pt; pick best by deltaR
00007     src         = cms.InputTag("ak5CaloJets"),       # RECO objects to match
00008     matched     = cms.InputTag("genParticles"),      # mc-truth particle collection
00009     mcPdgId     = cms.vint32(1, 2, 3, 4, 5, 21),     # one or more PDG ID (quarks except top; gluons)
00010     mcStatus    = cms.vint32(3),                     # PYTHIA status code (3 = hard scattering)
00011     checkCharge = cms.bool(False),                   # False = any value of the charge of MC and RECO is ok
00012     maxDeltaR   = cms.double(0.4),                   # Minimum deltaR for the match
00013     maxDPtRel   = cms.double(3.0),                   # Minimum deltaPt/Pt for the match
00014     resolveAmbiguities    = cms.bool(True),          # Forbid two RECO objects to match to the same GEN object
00015     resolveByMatchQuality = cms.bool(False),         # False = just match input in order; True = pick lowest deltaR pair first
00016 )
00017 
00018 patJetGenJetMatch = cms.EDProducer("GenJetMatcher",    # cut on deltaR, deltaPt/Pt; pick best by deltaR
00019     src         = cms.InputTag("ak5CaloJets"),       # RECO jets (any View<Jet> is ok)
00020     matched     = cms.InputTag("ak5GenJets"),        # GEN jets  (must be GenJetCollection)
00021     mcPdgId     = cms.vint32(),                      # n/a
00022     mcStatus    = cms.vint32(),                      # n/a
00023     checkCharge = cms.bool(False),                   # n/a
00024     maxDeltaR   = cms.double(0.4),                   # Minimum deltaR for the match
00025     maxDPtRel   = cms.double(3.0),                   # Minimum deltaPt/Pt for the match
00026     resolveAmbiguities    = cms.bool(True),          # Forbid two RECO objects to match to the same GEN object
00027     resolveByMatchQuality = cms.bool(False),         # False = just match input in order; True = pick lowest deltaR pair first
00028 )
00029 
00030