CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
tauMatch_cfi.py
Go to the documentation of this file.
2 
3 #
4 # Example for a configuration of the MC match
5 # for taus (cuts are NOT tuned)
6 # (using old values from TQAF, january 2008)
7 #
8 tauMatch = cms.EDProducer("MCMatcher",
9  src = cms.InputTag("shrinkingConePFTauProducer"), # RECO objects to match
10  matched = cms.InputTag("genParticles"), # mc-truth particle collection
11  mcPdgId = cms.vint32(15), # one or more PDG ID (15 = tau); absolute values (see below)
12  checkCharge = cms.bool(True), # True = require RECO and MC objects to have the same charge
13  mcStatus = cms.vint32(2), # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
14  # NOTE that Taus can only be status 3 or 2, never 1!
15  maxDeltaR = cms.double(999.9), # Minimum deltaR for the match. By default any deltaR is allowed (why??)
16  maxDPtRel = cms.double(999.9), # Minimum deltaPt/Pt for the match. By default anything is allowed ( "" )
17  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
18  resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
19 )
20 
21 tauGenJetMatch = cms.EDProducer("GenJetMatcher", # cut on deltaR, deltaPt/Pt; pick best by deltaR
22  src = cms.InputTag("shrinkingConePFTauProducer"), # RECO jets (any View<Jet> is ok)
23  matched = cms.InputTag("tauGenJetsSelectorAllHadrons"), # GEN jets (must be GenJetCollection)
24  mcPdgId = cms.vint32(), # n/a
25  mcStatus = cms.vint32(), # n/a
26  checkCharge = cms.bool(False), # n/a
27  maxDeltaR = cms.double(0.1), # Minimum deltaR for the match
28  maxDPtRel = cms.double(3.0), # Minimum deltaPt/Pt for the match
29  resolveAmbiguities = cms.bool(True), # Forbid two RECO objects to match to the same GEN object
30  resolveByMatchQuality = cms.bool(False), # False = just match input in order; True = pick lowest deltaR pair first
31 )