CMS 3D CMS Logo

egmPhotonIsolationPUPPI_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 IsoConeDefinitions = cms.VPSet(cms.PSet( isolationAlgo = cms.string('PhotonPFIsolationWithMapBasedVeto'),
4  coneSize = cms.double(0.3),
5  isolateAgainst = cms.string('h+'),
6  miniAODVertexCodes = cms.vuint32(2,3),
7  vertexIndex = cms.int32(0),
8  particleBasedIsolation = cms.InputTag("reducedEgamma", "reducedPhotonPfCandMap"),
9 
10  ),
11  cms.PSet( isolationAlgo = cms.string('PhotonPFIsolationWithMapBasedVeto'),
12  coneSize = cms.double(0.3),
13  isolateAgainst = cms.string('h0'),
14  miniAODVertexCodes = cms.vuint32(2,3),
15  vertexIndex = cms.int32(0),
16  particleBasedIsolation = cms.InputTag("reducedEgamma", "reducedPhotonPfCandMap"),
17  ),
18  cms.PSet( isolationAlgo = cms.string('PhotonPFIsolationWithMapBasedVeto'),
19  coneSize = cms.double(0.3),
20  isolateAgainst = cms.string('gamma'),
21  miniAODVertexCodes = cms.vuint32(2,3),
22  vertexIndex = cms.int32(0),
23  particleBasedIsolation = cms.InputTag("reducedEgamma", "reducedPhotonPfCandMap"),
24  )
25  )
26 
27 
28 egmPhotonIsolationAODPUPPI = cms.EDProducer( "CITKPFIsolationSumProducerForPUPPI",
29  srcToIsolate = cms.InputTag("gedPhotons"),
30  srcForIsolationCone = cms.InputTag('particleFlow'),
31  puppiValueMap = cms.InputTag('puppi'),
32  isolationConeDefinitions = IsoConeDefinitions
33 )
34 
35 egmPhotonIsolationMiniAODPUPPI = egmPhotonIsolationAODPUPPI.clone()
36 egmPhotonIsolationMiniAODPUPPI.srcForIsolationCone = cms.InputTag("packedPFCandidates")
37 egmPhotonIsolationMiniAODPUPPI.srcToIsolate = cms.InputTag("slimmedPhotons")
38 egmPhotonIsolationMiniAODPUPPI.puppiValueMap = cms.InputTag('')