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  photonProducer = "gedPhotonCore",
14  candidateP4type = "fromEcalEnergy",
15  outputPhotonCollection = "",
16  reconstructionStep = "tmp"
17 )
18 del gedPhotonsTmp.regressionConfig
19 
20 gedPhotonTaskTmp = cms.Task(gedPhotonCore, gedPhotonsTmp)
21 gedPhotonSequenceTmp = cms.Sequence(gedPhotonTaskTmp)
22 
23 gedPhotons = RecoEgamma.EgammaPhotonProducers.gedPhotons_cfi.gedPhotons.clone(
24  photonProducer = "gedPhotonsTmp",
25  outputPhotonCollection = "",
26  reconstructionStep = "final",
27  pfECALClusIsolation = cms.InputTag("photonEcalPFClusterIsolationProducer"),
28  pfHCALClusIsolation = cms.InputTag("photonHcalPFClusterIsolationProducer"),
29  pfIsolCfg = cms.PSet(
30  chargedHadronIso = cms.InputTag("photonIDValueMaps","phoChargedIsolation"),
31  neutralHadronIso = cms.InputTag("photonIDValueMaps","phoNeutralHadronIsolation"),
32  photonIso = cms.InputTag("photonIDValueMaps","phoPhotonIsolation"),
33  chargedHadronWorstVtxIso = cms.InputTag("photonIDValueMaps","phoWorstChargedIsolation"),
34  chargedHadronWorstVtxGeomVetoIso = cms.InputTag("photonIDValueMaps","phoWorstChargedIsolationConeVeto"),
35  chargedHadronPFPVIso = cms.InputTag("egmPhotonIsolationCITK:h+-DR030-"),
36  )
37 )
38 gedPhotonTask = cms.Task(gedPhotons)
39 gedPhotonSequence = cms.Sequence(gedPhotonTask)
40 
41 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
42 egamma_lowPt_exclusive.toModify(gedPhotons,
43  minSCEtBarrel = 1.0,
44  minSCEtEndcap = 1.0)
45 egamma_lowPt_exclusive.toModify(gedPhotonsTmp,
46  minSCEtBarrel = 1.0,
47  minSCEtEndcap = 1.0)
gedPhotonCore_cfi
gedPhotons_cfi