File indexing completed on 2024-04-06 11:58:38
0001
0002
0003 from CommonTools.ParticleFlow.Isolation.tools_cfi import *
0004 import FWCore.ParameterSet.Config as cms
0005
0006 elPFIsoDepositChargedGsf=isoDepositReplace('gedGsfElectrons','pfAllChargedHadrons')
0007 elPFIsoDepositChargedAllGsf=isoDepositReplace('gedGsfElectrons','pfAllChargedParticles')
0008 elPFIsoDepositNeutralGsf=isoDepositReplace('gedGsfElectrons','pfAllNeutralHadrons')
0009 elPFIsoDepositPUGsf=isoDepositReplace('gedGsfElectrons','pfPileUpAllChargedParticles')
0010
0011 elPFIsoDepositGammaGsf= cms.EDProducer("CandIsoDepositProducer",
0012 src = cms.InputTag("gedGsfElectrons"),
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(1.0),
0019 Diff_r = cms.double(99999.99),
0020 inputCandView = cms.InputTag("pfAllPhotons"),
0021 DR_Veto = cms.double(0),
0022 SCMatch_Veto = cms.bool(False),
0023 MissHitSCMatch_Veto = cms.bool(True),
0024 DepositLabel = cms.untracked.string('')
0025 )
0026 )
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039 elPFIsoValueCharged03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
0040 deposits = cms.VPSet(
0041 cms.PSet(
0042 src = cms.InputTag("elPFIsoDepositChargedGsf"),
0043 deltaR = cms.double(0.3),
0044 weight = cms.string('1'),
0045 vetos = cms.vstring('EcalEndcaps:ConeVeto(0.015)'),
0046 skipDefaultVeto = cms.bool(True),
0047 mode = cms.string('sum'),
0048 PivotCoordinatesForEBEE = cms.bool(True)
0049 )
0050 )
0051 )
0052 elPFIsoValueChargedAll03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
0053 deposits = cms.VPSet(
0054 cms.PSet(
0055 src = cms.InputTag("elPFIsoDepositChargedAllGsf"),
0056 deltaR = cms.double(0.3),
0057 weight = cms.string('1'),
0058 vetos = cms.vstring('EcalEndcaps:ConeVeto(0.015)'),
0059 skipDefaultVeto = cms.bool(True),
0060 mode = cms.string('sum'),
0061 PivotCoordinatesForEBEE = cms.bool(True)
0062 )
0063 )
0064 )
0065
0066 elPFIsoValueGamma03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
0067 deposits = cms.VPSet(
0068 cms.PSet(
0069 src = cms.InputTag("elPFIsoDepositGammaGsf"),
0070 deltaR = cms.double(0.3),
0071 weight = cms.string('1'),
0072 vetos = cms.vstring('EcalEndcaps:ConeVeto(0.08)'),
0073 skipDefaultVeto = cms.bool(True),
0074 mode = cms.string('sum'),
0075 PivotCoordinatesForEBEE = cms.bool(True)
0076 )
0077 )
0078 )
0079
0080 elPFIsoValueNeutral03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
0081 deposits = cms.VPSet(
0082 cms.PSet(
0083 src = cms.InputTag("elPFIsoDepositNeutralGsf"),
0084 deltaR = cms.double(0.3),
0085 weight = cms.string('1'),
0086 vetos = cms.vstring(),
0087 skipDefaultVeto = cms.bool(True),
0088 mode = cms.string('sum'),
0089 PivotCoordinatesForEBEE = cms.bool(True)
0090 )
0091 )
0092 )
0093
0094 elPFIsoValuePU03PFIdGsf = cms.EDProducer("PFCandIsolatorFromDeposits",
0095 deposits = cms.VPSet(
0096 cms.PSet(
0097 src = cms.InputTag("elPFIsoDepositPUGsf"),
0098 deltaR = cms.double(0.3),
0099 weight = cms.string('1'),
0100 vetos = cms.vstring('EcalEndcaps:ConeVeto(0.015)'),
0101 skipDefaultVeto = cms.bool(True),
0102 mode = cms.string('sum'),
0103 PivotCoordinatesForEBEE = cms.bool(True)
0104 )
0105 )
0106 )
0107
0108
0109
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123
0124
0125 eleIsoSequence = cms.Sequence((elPFIsoDepositChargedGsf + elPFIsoDepositChargedAllGsf + elPFIsoDepositNeutralGsf + elPFIsoDepositGammaGsf + elPFIsoDepositPUGsf))
0126 eleIsoSequence *= cms.Sequence(elPFIsoValueCharged03PFIdGsf+elPFIsoValueChargedAll03PFIdGsf+elPFIsoValueGamma03PFIdGsf+elPFIsoValueNeutral03PFIdGsf+elPFIsoValuePU03PFIdGsf )
0127 pfisoALCARECO = cms.Sequence(eleIsoSequence)