CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/PhysicsTools/PatExamples/python/mcMatch_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 myMuonMatch = cms.EDProducer("MCMatcher",     # cut on deltaR, deltaPt/Pt; pick best by deltaR
00004     src     = cms.InputTag("muons"),        # RECO objects to match
00005     matched = cms.InputTag("genParticles"), # mc-truth particle collection
00006     mcPdgId     = cms.vint32(13),           # one or more PDG ID (13 = muon); absolute values (see below)
00007     checkCharge = cms.bool(True),           # True = require RECO and MC objects to have the same charge
00008     mcStatus = cms.vint32(1),               # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
00009     maxDeltaR = cms.double(0.5),            # Minimum deltaR for the match
00010     maxDPtRel = cms.double(0.5),            # Minimum deltaPt/Pt for the match
00011     resolveAmbiguities = cms.bool(True),    # Forbid two RECO objects to match to the same GEN object
00012     resolveByMatchQuality = cms.bool(False) # False = just match input in order; True = pick lowest deltaR pair first
00013 )
00014 myJetGenJetMatch = cms.EDProducer("GenJetMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
00015     src      = cms.InputTag("ak5CaloJets"), # RECO jets (any View<Jet> is ok)
00016     matched  = cms.InputTag("ak5GenJets"),  # GEN jets  (must be GenJetCollection)
00017     mcPdgId  = cms.vint32(),                # n/a
00018     mcStatus = cms.vint32(),                # n/a
00019     checkCharge = cms.bool(False),          # n/a
00020     maxDeltaR = cms.double(0.4),            # Minimum deltaR for the match
00021     maxDPtRel = cms.double(3.0),            # Minimum deltaPt/Pt for the match
00022     resolveAmbiguities = cms.bool(True),    # Forbid two RECO objects to match to the same GEN object
00023     resolveByMatchQuality = cms.bool(False) # False = just match input in order; True = pick lowest deltaR pair first
00024 )
00025