Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:55

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #
0004 # Example for a configuration of the MC match
0005 # for electrons
0006 #
0007 electronMatch = cms.EDProducer("MCMatcher",       # cut on deltaR, deltaPt/Pt; pick best by deltaR
0008     src         = cms.InputTag("gedGsfElectrons"), # RECO objects to match
0009     matched     = cms.InputTag("genParticles"), # mc-truth particle collection
0010     mcPdgId     = cms.vint32(11),               # one or more PDG ID (11 = electron); absolute values (see below)
0011     checkCharge = cms.bool(True),               # True = require RECO and MC objects to have the same charge
0012     mcStatus    = cms.vint32(1),                # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
0013     maxDeltaR   = cms.double(0.5),              # Minimum deltaR for the match
0014     maxDPtRel   = cms.double(0.5),              # Minimum deltaPt/Pt for the match
0015     resolveAmbiguities    = cms.bool(True),     # Forbid two RECO objects to match to the same GEN object
0016     resolveByMatchQuality = cms.bool(False),    # False = just match input in order; True = pick lowest deltaR pair first
0017 )
0018 
0019