Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:07

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 myMuonMatch = cms.EDProducer("MCMatcher",     # cut on deltaR, deltaPt/Pt; pick best by deltaR
0004     src     = cms.InputTag("muons"),        # RECO objects to match
0005     matched = cms.InputTag("genParticles"), # mc-truth particle collection
0006     mcPdgId     = cms.vint32(13),           # one or more PDG ID (13 = muon); absolute values (see below)
0007     checkCharge = cms.bool(True),           # True = require RECO and MC objects to have the same charge
0008     mcStatus = cms.vint32(1),               # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
0009     maxDeltaR = cms.double(0.5),            # Minimum deltaR for the match
0010     maxDPtRel = cms.double(0.5),            # Minimum deltaPt/Pt for the match
0011     resolveAmbiguities = cms.bool(True),    # Forbid two RECO objects to match to the same GEN object
0012     resolveByMatchQuality = cms.bool(False) # False = just match input in order; True = pick lowest deltaR pair first
0013 )
0014 myJetGenJetMatch = cms.EDProducer("GenJetMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
0015     src      = cms.InputTag("ak4CaloJets"), # RECO jets (any View<Jet> is ok)
0016     matched  = cms.InputTag("ak4GenJets"),  # GEN jets  (must be GenJetCollection)
0017     mcPdgId  = cms.vint32(),                # n/a
0018     mcStatus = cms.vint32(),                # n/a
0019     checkCharge = cms.bool(False),          # n/a
0020     maxDeltaR = cms.double(0.4),            # Minimum deltaR for the match
0021     maxDPtRel = cms.double(3.0),            # Minimum deltaPt/Pt for the match
0022     resolveAmbiguities = cms.bool(True),    # Forbid two RECO objects to match to the same GEN object
0023     resolveByMatchQuality = cms.bool(False) # False = just match input in order; True = pick lowest deltaR pair first
0024 )
0025