CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
muonMatch_cfi.py
Go to the documentation of this file.
2 
3 #
4 # Example for a configuration of the MC match
5 # for muons (cuts are NOT tuned)
6 # (using old values from TQAF, january 2008)
7 #
8 muonMatch = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
9  src = cms.InputTag("muons"), # RECO objects to match
10  matched = cms.InputTag("genParticles"), # mc-truth particle collection
11  mcPdgId = cms.vint32(13), # one or more PDG ID (13 = muon); absolute values (see below)
12  checkCharge = cms.bool(True), # True = require RECO and MC objects to have the same charge
13  mcStatus = cms.vint32(1), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
14  maxDeltaR = cms.double(0.5), # Minimum deltaR for the match
15  maxDPtRel = cms.double(0.5), # Minimum deltaPt/Pt for the match
16  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
17  resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
18 )
19