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 taus (cuts are NOT tuned)
0006 # (using old values from TQAF, january 2008)
0007 #
0008 tauMatch = cms.EDProducer("MCMatcher",
0009     src         = cms.InputTag("hpsPFTauProducer"),          # RECO objects to match
0010     matched     = cms.InputTag("genParticles"),              # mc-truth particle collection
0011     mcPdgId     = cms.vint32(15),                            # one or more PDG ID (15 = tau); absolute values (see below)
0012     checkCharge = cms.bool(True),                            # True = require RECO and MC objects to have the same charge
0013     mcStatus    = cms.vint32(2),                             # PYTHIA status code (1 = stable, 2 = shower, 3 = hard scattering)
0014                                                              # NOTE that Taus can only be status 3 or 2, never 1!
0015     maxDeltaR   = cms.double(999.9),                         # Minimum deltaR for the match.     By default any deltaR is allowed (why??)
0016     maxDPtRel   = cms.double(999.9),                         # Minimum deltaPt/Pt for the match. By default anything is allowed   ( ""  )
0017     resolveAmbiguities    = cms.bool(True),                  # Forbid two RECO objects to match to the same GEN object
0018     resolveByMatchQuality = cms.bool(False),                 # False = just match input in order; True = pick lowest deltaR pair first
0019 )
0020 
0021 tauGenJetMatch = cms.EDProducer("GenJetMatcher",             # cut on deltaR, deltaPt/Pt; pick best by deltaR
0022     src         = cms.InputTag("hpsPFTauProducer"),          # RECO jets (any View<Jet> is ok)
0023     matched     = cms.InputTag("tauGenJetsSelectorAllHadrons"),  # GEN jets  (must be GenJetCollection)
0024     mcPdgId     = cms.vint32(),                              # n/a
0025     mcStatus    = cms.vint32(),                              # n/a
0026     checkCharge = cms.bool(False),                           # n/a
0027     maxDeltaR   = cms.double(0.1),                           # Minimum deltaR for the match
0028     maxDPtRel   = cms.double(3.0),                           # Minimum deltaPt/Pt for the match
0029     resolveAmbiguities    = cms.bool(True),                  # Forbid two RECO objects to match to the same GEN object
0030     resolveByMatchQuality = cms.bool(False),                 # False = just match input in order; True = pick lowest deltaR pair first
0031 )