CMS 3D CMS Logo

gedPhotonSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # sequence to make photons from clusters in ECAL
5 #
6 # photon producer
9 
11 
12 gedPhotonsTmp = RecoEgamma.EgammaPhotonProducers.gedPhotons_cfi.gedPhotons.clone()
13 gedPhotonsTmp.photonProducer = cms.InputTag("gedPhotonCore")
14 gedPhotonsTmp.candidateP4type = cms.string("fromEcalEnergy")
15 del gedPhotonsTmp.regressionConfig
16 gedPhotonsTmp.outputPhotonCollection = cms.string("")
17 gedPhotonsTmp.reconstructionStep = cms.string("tmp")
18 gedPhotonTaskTmp = cms.Task(gedPhotonCore, gedPhotonsTmp)
19 gedPhotonSequenceTmp = cms.Sequence(gedPhotonTaskTmp)
20 
21 gedPhotons = RecoEgamma.EgammaPhotonProducers.gedPhotons_cfi.gedPhotons.clone()
22 gedPhotons.photonProducer = cms.InputTag("gedPhotonsTmp")
23 gedPhotons.outputPhotonCollection = cms.string("")
24 gedPhotons.reconstructionStep = cms.string("final")
25 gedPhotons.pfECALClusIsolation = cms.InputTag("photonEcalPFClusterIsolationProducer")
26 gedPhotons.pfHCALClusIsolation = cms.InputTag("photonHcalPFClusterIsolationProducer")
27 gedPhotons.pfIsolCfg = cms.PSet(
28  chargedHadronIso = cms.InputTag("photonIDValueMaps","phoChargedIsolation"),
29  neutralHadronIso = cms.InputTag("photonIDValueMaps","phoNeutralHadronIsolation"),
30  photonIso = cms.InputTag("photonIDValueMaps","phoPhotonIsolation"),
31  chargedHadronWorstVtxIso = cms.InputTag("photonIDValueMaps","phoWorstChargedIsolation"),
32  chargedHadronWorstVtxGeomVetoIso = cms.InputTag("photonIDValueMaps","phoWorstChargedIsolationConeVeto"),
33  chargedHadronPFPVIso = cms.InputTag("egmPhotonIsolationCITK:h+-DR030-"),
34  )
35 
36 gedPhotonTask = cms.Task(gedPhotons)
37 gedPhotonSequence = cms.Sequence(gedPhotonTask)
38 
39 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
40 egamma_lowPt_exclusive.toModify(gedPhotons,
41  minSCEtBarrel = 1.0,
42  minSCEtEndcap = 1.0)
43 egamma_lowPt_exclusive.toModify(gedPhotonsTmp,
44  minSCEtBarrel = 1.0,
45  minSCEtEndcap = 1.0)
gedPhotonCore_cfi
gedPhotons_cfi