CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
mcMatch_cfi.py
Go to the documentation of this file.
2 
3 myMuonMatch = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
4  src = cms.InputTag("muons"), # RECO objects to match
5  matched = cms.InputTag("genParticles"), # mc-truth particle collection
6  mcPdgId = cms.vint32(13), # one or more PDG ID (13 = muon); absolute values (see below)
7  checkCharge = cms.bool(True), # True = require RECO and MC objects to have the same charge
8  mcStatus = cms.vint32(1), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
9  maxDeltaR = cms.double(0.5), # Minimum deltaR for the match
10  maxDPtRel = cms.double(0.5), # Minimum deltaPt/Pt for the match
11  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
12  resolveByMatchQuality = cms.bool(False) # False = just match input in order; True = pick lowest deltaR pair first
13 )
14 myJetGenJetMatch = cms.EDProducer("GenJetMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
15  src = cms.InputTag("ak4CaloJets"), # RECO jets (any View<Jet> is ok)
16  matched = cms.InputTag("ak4GenJets"), # GEN jets (must be GenJetCollection)
17  mcPdgId = cms.vint32(), # n/a
18  mcStatus = cms.vint32(), # n/a
19  checkCharge = cms.bool(False), # n/a
20  maxDeltaR = cms.double(0.4), # Minimum deltaR for the match
21  maxDPtRel = cms.double(3.0), # Minimum deltaPt/Pt for the match
22  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
23  resolveByMatchQuality = cms.bool(False) # False = just match input in order; True = pick lowest deltaR pair first
24 )
25