CMS 3D CMS Logo

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