CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/PhysicsTools/PatAlgos/python/mcMatchLayer0/electronMatch_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #
00004 # Example for a configuration of the MC match
00005 # for electrons
00006 #
00007 electronMatch = cms.EDProducer("MCMatcher",       # cut on deltaR, deltaPt/Pt; pick best by deltaR
00008     src         = cms.InputTag("gsfElectrons"), # RECO objects to match
00009     matched     = cms.InputTag("genParticles"), # mc-truth particle collection
00010     mcPdgId     = cms.vint32(11),               # one or more PDG ID (11 = electron); absolute values (see below)
00011     checkCharge = cms.bool(True),               # True = require RECO and MC objects to have the same charge
00012     mcStatus    = cms.vint32(1),                # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
00013     maxDeltaR   = cms.double(0.5),              # Minimum deltaR for the match
00014     maxDPtRel   = cms.double(0.5),              # Minimum deltaPt/Pt for the match
00015     resolveAmbiguities    = cms.bool(True),     # Forbid two RECO objects to match to the same GEN object
00016     resolveByMatchQuality = cms.bool(False),    # False = just match input in order; True = pick lowest deltaR pair first
00017 )
00018 
00019