File indexing completed on 2024-04-06 12:24:03
0001
0002 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0003
0004
0005 process.load( "PhysicsTools.PatAlgos.patSequences_cff" )
0006
0007
0008 process.load( "PhysicsTools.PatExamples.mcMatch_cfi" )
0009
0010
0011
0012
0013
0014
0015 process.makeAllLayer1Muons.remove( process.muonMatch )
0016 process.makeAllLayer1Muons += process.myMuonMatch
0017 process.makeAllLayer1Muons.remove( process.allLayer1Muons )
0018 process.makeAllLayer1Muons += process.allLayer1Muons
0019 process.allLayer1Muons.genParticleMatch = "myMuonMatch"
0020 process.allLayer1Muons.embedGenMatch = True
0021
0022 process.makeAllLayer1Jets.remove( process.jetGenJetMatch )
0023 process.makeAllLayer1Jets += process.myJetGenJetMatch
0024 process.makeAllLayer1Jets.remove( process.allLayer1Jets )
0025 process.makeAllLayer1Jets += process.allLayer1Jets
0026 process.allLayer1Jets.genJetMatch = "myJetGenJetMatch"
0027
0028
0029 process.p = cms.Path(
0030 process.patDefaultSequence
0031 )
0032
0033 process.maxEvents.input = 1000
0034 process.out.fileName = 'edmPatMcMatch.root'
0035 process.out.outputCommands += [ 'keep recoGenParticles_genParticles_*_*' ]
0036 process.options.wantSummary = False