File indexing completed on 2024-04-06 12:23:55
0001 import FWCore.ParameterSet.Config as cms
0002
0003
0004
0005
0006 patJetPartonMatch = cms.EDProducer("MCMatcher",
0007 src = cms.InputTag("ak4PFJetsCHS"),
0008 matched = cms.InputTag("genParticles"),
0009 mcPdgId = cms.vint32(1, 2, 3, 4, 5, 21),
0010 mcStatus = cms.vint32(3,23),
0011 checkCharge = cms.bool(False),
0012 maxDeltaR = cms.double(0.4),
0013 maxDPtRel = cms.double(3.0),
0014 resolveAmbiguities = cms.bool(True),
0015 resolveByMatchQuality = cms.bool(False),
0016 )
0017
0018 patJetGenJetMatch = cms.EDProducer("GenJetMatcher",
0019 src = cms.InputTag("ak4PFJetsCHS"),
0020 matched = cms.InputTag("ak4GenJets"),
0021 mcPdgId = cms.vint32(),
0022 mcStatus = cms.vint32(),
0023 checkCharge = cms.bool(False),
0024 maxDeltaR = cms.double(0.4),
0025
0026 resolveAmbiguities = cms.bool(True),
0027 resolveByMatchQuality = cms.bool(False),
0028 )
0029
0030 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0031 pp_on_AA.toModify(patJetGenJetMatch,
0032 maxDeltaR = 0.4,
0033 resolveByMatchQuality = True,
0034 src = "akCs4PFJets",
0035 )
0036
0037 pp_on_AA.toModify(patJetPartonMatch, src = "akCs4PFJets")