File indexing completed on 2024-04-06 12:23:59
0001
0002 from PhysicsTools.PatAlgos.patTemplate_cfg import *
0003
0004
0005
0006
0007 process.load("PhysicsTools.PatAlgos.producersLayer1.patCandidates_cff")
0008 patAlgosToolsTask.add(process.patCandidatesTask)
0009
0010 process.patTaus.skipMissingTauID = True
0011
0012 process.load("PhysicsTools.PatAlgos.selectionLayer1.selectedPatCandidates_cff")
0013 patAlgosToolsTask.add(process.selectedPatCandidatesTask)
0014
0015
0016 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0017 process.inFlightMuons = cms.EDProducer("PATGenCandsFromSimTracksProducer",
0018 src = cms.InputTag("g4SimHits"),
0019 setStatus = cms.int32(-1),
0020 particleTypes = cms.vstring("mu+"),
0021 filter = cms.vstring("pt > 0.5"),
0022 makeMotherLink = cms.bool(True),
0023 writeAncestors = cms.bool(True),
0024 genParticles = cms.InputTag("genParticles"),
0025 )
0026 patAlgosToolsTask.add(process.inFlightMuons)
0027
0028 process.out.outputCommands.append('keep *_inFlightMuons_*_*')
0029
0030
0031 process.muMatch3 = process.muonMatch.clone(mcStatus = cms.vint32( 3))
0032 patAlgosToolsTask.add(process.muMatch3)
0033
0034 process.muMatch1 = process.muonMatch.clone(mcStatus = cms.vint32( 1))
0035 patAlgosToolsTask.add(process.muMatch1)
0036
0037 process.muMatchF = process.muonMatch.clone(mcStatus = cms.vint32(-1),matched = cms.InputTag("inFlightMuons"))
0038 patAlgosToolsTask.add(process.muMatchF)
0039
0040 process.patMuons.genParticleMatch = cms.VInputTag(
0041 cms.InputTag("muMatch3"),
0042 cms.InputTag("muMatch1"),
0043 cms.InputTag("muMatchF"),
0044 )
0045
0046
0047 process.content = cms.EDAnalyzer("EventContentAnalyzer")
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarGENSIMRECO
0058 process.source.fileNames = filesRelValTTbarGENSIMRECO
0059
0060 process.maxEvents.input = 10
0061
0062
0063
0064 process.out.fileName = 'patTuple_addDecayInFlight.root'
0065
0066