Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-19 23:41:42

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CommonTools.ParticleFlow.Isolation.tools_cfi import *
0004 
0005 #Now prepare the iso deposits
0006 phPFIsoDepositCharged=isoDepositReplace('pfSelectedPhotons','pfAllChargedHadrons')
0007 phPFIsoDepositChargedAll=isoDepositReplace('pfSelectedPhotons','pfAllChargedParticles')
0008 phPFIsoDepositNeutral=isoDepositReplace('pfSelectedPhotons','pfAllNeutralHadrons')
0009 #phPFIsoDepositGamma=isoDepositReplace('pfSelectedPhotons','pfAllPhotons')
0010 phPFIsoDepositPU=isoDepositReplace('pfSelectedPhotons','pfPileUpAllChargedParticles')
0011 phPFIsoDepositGamma= cms.EDProducer("CandIsoDepositProducer",
0012                                     src = cms.InputTag("pfSelectedPhotons"),
0013                                     MultipleDepositsFlag = cms.bool(False),
0014                                     trackType = cms.string('candidate'),
0015                                     ExtractorPSet = cms.PSet(
0016                                         Diff_z = cms.double(99999.99),
0017                                         ComponentName = cms.string('PFCandWithSuperClusterExtractor'),
0018                                         DR_Max = cms.double(0.4),
0019                                         Diff_r = cms.double(99999.99),
0020                                         inputCandView = cms.InputTag("pfAllPhotons"),
0021                                         DR_Veto = cms.double(0),
0022                                         SCMatch_Veto = cms.bool(True),
0023                                         MissHitSCMatch_Veto = cms.bool(False),
0024                                         DepositLabel = cms.untracked.string('')
0025                                         )
0026                             )
0027 
0028 phPFIsoDepositCharged.ExtractorPSet.DR_Veto    = 0
0029 phPFIsoDepositChargedAll.ExtractorPSet.DR_Veto = 0
0030 phPFIsoDepositNeutral.ExtractorPSet.DR_Veto    = 0
0031 phPFIsoDepositPU.ExtractorPSet.DR_Veto         = 0
0032 
0033 photonPFIsolationDepositsTask = cms.Task(
0034     phPFIsoDepositCharged,
0035     phPFIsoDepositChargedAll,
0036     phPFIsoDepositGamma,
0037     phPFIsoDepositNeutral,
0038     phPFIsoDepositPU
0039     )