CMS 3D CMS Logo

photonProducer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
8 
9 sourcePhotons = patPhotons.photonSource
10 
11 phPFIsoDepositChargedPAT.src = sourcePhotons
12 phPFIsoDepositChargedAllPAT.src = sourcePhotons
13 phPFIsoDepositNeutralPAT.src = sourcePhotons
14 phPFIsoDepositGammaPAT.src = sourcePhotons
15 phPFIsoDepositPUPAT.src = sourcePhotons
16 
17 patPhotons.isoDeposits = cms.PSet(
18  pfChargedHadrons = cms.InputTag("phPFIsoDepositChargedPAT" ),
19  pfChargedAll = cms.InputTag("phPFIsoDepositChargedAllPAT" ),
20  pfPUChargedHadrons = cms.InputTag("phPFIsoDepositPUPAT" ),
21  pfNeutralHadrons = cms.InputTag("phPFIsoDepositNeutralPAT" ),
22  pfPhotons = cms.InputTag("phPFIsoDepositGammaPAT" ),
23  )
24 
25 patPhotons.isolationValues = cms.PSet(
26  pfChargedHadrons = cms.InputTag("phPFIsoValueCharged04PFIdPAT"),
27  pfChargedAll = cms.InputTag("phPFIsoValueChargedAll04PFIdPAT"),
28  pfPUChargedHadrons = cms.InputTag("phPFIsoValuePU04PFIdPAT" ),
29  pfNeutralHadrons = cms.InputTag("phPFIsoValueNeutral04PFIdPAT" ),
30  pfPhotons = cms.InputTag("phPFIsoValueGamma04PFIdPAT" ),
31  )
32 
33 ## for scheduled mode
34 makePatPhotonsTask = cms.Task(
35  pfParticleSelectionForIsoTask,
36  pfPhotonIsolationPATTask,
37  photonMatch,
38  patPhotons
39  )
40 makePatPhotons = cms.Sequence(makePatPhotonsTask)