Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:33:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from PhysicsTools.PatAlgos.mcMatchLayer0.muonMatch_cfi import *
0004 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
0005 from PhysicsTools.PatAlgos.producersLayer1.muonProducer_cfi import *
0006 
0007 from PhysicsTools.PatAlgos.recoLayer0.pfParticleSelectionForIso_cff import *
0008 from PhysicsTools.PatAlgos.recoLayer0.pfMuonIsolationPAT_cff import *
0009 
0010 sourceMuons = patMuons.muonSource
0011 
0012 muPFIsoDepositChargedPAT.src = sourceMuons
0013 muPFIsoDepositChargedAllPAT.src = sourceMuons
0014 muPFIsoDepositNeutralPAT.src = sourceMuons
0015 muPFIsoDepositGammaPAT.src = sourceMuons
0016 muPFIsoDepositPUPAT.src = sourceMuons
0017 
0018 patMuons.isoDeposits = cms.PSet(
0019     pfChargedHadrons = cms.InputTag("muPFIsoDepositChargedPAT" ),
0020     pfChargedAll = cms.InputTag("muPFIsoDepositChargedAllPAT" ),
0021     pfPUChargedHadrons = cms.InputTag("muPFIsoDepositPUPAT" ),
0022     pfNeutralHadrons = cms.InputTag("muPFIsoDepositNeutralPAT" ),
0023     pfPhotons = cms.InputTag("muPFIsoDepositGammaPAT" ),
0024     )
0025 
0026 patMuons.isolationValues = cms.PSet(
0027     pfChargedHadrons = cms.InputTag("muPFIsoValueCharged04PAT"),
0028     pfChargedAll = cms.InputTag("muPFIsoValueChargedAll04PAT"),
0029     pfPUChargedHadrons = cms.InputTag("muPFIsoValuePU04PAT" ),
0030     pfNeutralHadrons = cms.InputTag("muPFIsoValueNeutral04PAT" ),
0031     pfPhotons = cms.InputTag("muPFIsoValueGamma04PAT" ),
0032     )
0033 
0034 ## for scheduled mode
0035 makePatMuonsTask = cms.Task(
0036     pfParticleSelectionForIsoTask,
0037     muonPFIsolationPATTask,
0038     muonMatch,
0039     patMuons
0040     )
0041 makePatMuons = cms.Sequence(makePatMuonsTask)