Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from CommonTools.ParticleFlow.Isolation.tools_cfi import *
0004 
0005 #Now prepare the iso deposits
0006 phPFIsoDepositChargedPFBRECO=isoDepositReplace('pfSelectedPhotonsPFBRECO','pfAllChargedHadronsPFBRECO')
0007 phPFIsoDepositChargedAllPFBRECO=isoDepositReplace('pfSelectedPhotonsPFBRECO','pfAllChargedParticlesPFBRECO')
0008 phPFIsoDepositNeutralPFBRECO=isoDepositReplace('pfSelectedPhotonsPFBRECO','pfAllNeutralHadronsPFBRECO')
0009 #phPFIsoDepositGammaPFBRECO=isoDepositReplace('pfSelectedPhotonsPFBRECO','pfAllPhotonsPFBRECO')
0010 phPFIsoDepositPUPFBRECO=isoDepositReplace('pfSelectedPhotonsPFBRECO','pfPileUpAllChargedParticlesPFBRECO')
0011 phPFIsoDepositGammaPFBRECO= cms.EDProducer("CandIsoDepositProducer",
0012                                     src = cms.InputTag("pfSelectedPhotonsPFBRECO"),
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("pfAllPhotonsPFBRECO"),
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 phPFIsoDepositChargedPFBRECO.ExtractorPSet.DR_Veto = 0
0029 phPFIsoDepositChargedAllPFBRECO.ExtractorPSet.DR_Veto = 0
0030 phPFIsoDepositNeutralPFBRECO.ExtractorPSet.DR_Veto = 0
0031 phPFIsoDepositPUPFBRECO.ExtractorPSet.DR_Veto = 0
0032 
0033 photonPFIsolationDepositsPFBRECOTask = cms.Task(
0034     phPFIsoDepositChargedPFBRECO,
0035     phPFIsoDepositChargedAllPFBRECO,
0036     phPFIsoDepositGammaPFBRECO,
0037     phPFIsoDepositNeutralPFBRECO,
0038     phPFIsoDepositPUPFBRECO
0039     )