CMS 3D CMS Logo

electronMatch_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # Example for a configuration of the MC match
5 # for electrons
6 #
7 electronMatch = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
8  src = cms.InputTag("gedGsfElectrons"), # RECO objects to match
9  matched = cms.InputTag("genParticles"), # mc-truth particle collection
10  mcPdgId = cms.vint32(11), # one or more PDG ID (11 = electron); absolute values (see below)
11  checkCharge = cms.bool(True), # True = require RECO and MC objects to have the same charge
12  mcStatus = cms.vint32(1), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
13  maxDeltaR = cms.double(0.5), # Minimum deltaR for the match
14  maxDPtRel = cms.double(0.5), # Minimum deltaPt/Pt for the match
15  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
16  resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
17 )
18 
19