test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
photonMatch_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 photons (cuts are NOT tuned)
6 # (using old values from TQAF, january 2008)
7 #
8 photonMatch = cms.EDProducer("MCMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
9  src = cms.InputTag("gedPhotons"), # RECO objects to match
10  matched = cms.InputTag("genParticles"), # mc-truth particle collection
11  mcPdgId = cms.vint32(22), # one or more PDG ID (11 = electron); absolute values (see below)
12  checkCharge = cms.bool(True), # True = require RECO and MC objects to have the same charge
13  mcStatus = cms.vint32(1), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
14  maxDeltaR = cms.double(0.2), # Minimum deltaR for the match
15  maxDPtRel = cms.double(1.0), # Minimum deltaPt/Pt for the match
16  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
17  resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
18 )
19 
20