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.photonMatch_cfi import *
0004 from PhysicsTools.PatAlgos.producersLayer1.photonProducer_cfi import *
0005 
0006 from PhysicsTools.PatAlgos.recoLayer0.pfParticleSelectionForIso_cff import *
0007 from PhysicsTools.PatAlgos.recoLayer0.pfPhotonIsolationPAT_cff import *
0008 
0009 sourcePhotons = patPhotons.photonSource
0010 
0011 phPFIsoDepositChargedPAT.src = sourcePhotons
0012 phPFIsoDepositChargedAllPAT.src = sourcePhotons
0013 phPFIsoDepositNeutralPAT.src = sourcePhotons
0014 phPFIsoDepositGammaPAT.src = sourcePhotons
0015 phPFIsoDepositPUPAT.src = sourcePhotons
0016 
0017 patPhotons.isoDeposits = cms.PSet(
0018     pfChargedHadrons = cms.InputTag("phPFIsoDepositChargedPAT" ),
0019     pfChargedAll = cms.InputTag("phPFIsoDepositChargedAllPAT" ),
0020     pfPUChargedHadrons = cms.InputTag("phPFIsoDepositPUPAT" ),
0021     pfNeutralHadrons = cms.InputTag("phPFIsoDepositNeutralPAT" ),
0022     pfPhotons = cms.InputTag("phPFIsoDepositGammaPAT" ),
0023     )
0024 
0025 patPhotons.isolationValues = cms.PSet(
0026     pfChargedHadrons = cms.InputTag("phPFIsoValueCharged04PFIdPAT"),
0027     pfChargedAll = cms.InputTag("phPFIsoValueChargedAll04PFIdPAT"),
0028     pfPUChargedHadrons = cms.InputTag("phPFIsoValuePU04PFIdPAT" ),
0029     pfNeutralHadrons = cms.InputTag("phPFIsoValueNeutral04PFIdPAT" ),
0030     pfPhotons = cms.InputTag("phPFIsoValueGamma04PFIdPAT" ),
0031     )
0032 
0033 ## for scheduled mode
0034 makePatPhotonsTask = cms.Task(
0035     pfParticleSelectionForIsoTask,
0036     pfPhotonIsolationPATTask,
0037     photonMatch,
0038     patPhotons
0039     )
0040 makePatPhotons = cms.Sequence(makePatPhotonsTask)