1 import FWCore.ParameterSet.Config
as cms
5 elPFIsoDepositChargedForBoostedElectrons = elPFIsoDepositCharged.clone(
6 src = cms.InputTag(
'gedGsfElectrons'),
8 elPFIsoDepositChargedAllForBoostedElectrons = elPFIsoDepositChargedAll.clone(
9 src = cms.InputTag(
'gedGsfElectrons'),
11 elPFIsoDepositNeutralForBoostedElectrons = elPFIsoDepositNeutral.clone(
12 src = cms.InputTag(
'gedGsfElectrons'),
14 elPFIsoDepositGammaForBoostedElectrons = elPFIsoDepositGamma.clone(
15 src = cms.InputTag(
'gedGsfElectrons'),
17 elPFIsoDepositPUForBoostedElectrons = elPFIsoDepositPU.clone(
18 src = cms.InputTag(
'gedGsfElectrons'),
20 boostedElectronPFIsolationSequence = cms.Sequence(
21 elPFIsoDepositChargedForBoostedElectrons
22 + elPFIsoDepositChargedAllForBoostedElectrons
23 + elPFIsoDepositNeutralForBoostedElectrons
24 + elPFIsoDepositGammaForBoostedElectrons
25 + elPFIsoDepositPUForBoostedElectrons
29 patBoostedElectrons = patElectrons.clone(
30 isoDeposits = cms.PSet(
32 pfChargedHadrons = cms.InputTag(
"elPFIsoDepositChargedForBoostedElectrons"),
33 pfNeutralHadrons = cms.InputTag(
"elPFIsoDepositNeutralForBoostedElectrons"),
34 pfPhotons = cms.InputTag(
"elPFIsoDepositGammaForBoostedElectrons"),
36 cms.InputTag(
"elPFIsoDepositChargedAllForBoostedElectrons"),
37 cms.InputTag(
"elPFIsoDepositPUForBoostedElectrons")
40 addGenMatch = cms.bool(
False),
41 embedHighLevelSelection = cms.bool(
True),
42 usePV = cms.bool(
False)
45 otherSubJetVeto =
'OtherJetConstituentsDeltaRVeto(boostedTauSeeds,0.3,boostedTauSeeds:pfCandAssocMapForIsoDepositVetos,0.01)' 48 pfChargedHadronVetos = elPFIsoValueCharged03NoPFId.deposits[0].vetos.value()
49 pfChargedHadronVetos.append(otherSubJetVeto)
50 print "pfChargedHadronVetos = %s" % pfChargedHadronVetos
53 pfNeutralHadronVetos = elPFIsoValueNeutral03NoPFId.deposits[0].vetos.value()
54 pfNeutralHadronVetos.append(otherSubJetVeto)
55 print "pfNeutralHadronVetos = %s" % pfNeutralHadronVetos
58 pfGammaVetos = elPFIsoValueGamma03NoPFId.deposits[0].vetos.value()
59 pfGammaVetos.append(otherSubJetVeto)
60 print "pfGammaVetos = %s" % pfGammaVetos
63 userVetos1 = elPFIsoValueChargedAll03NoPFId.deposits[0].vetos.value()
64 userVetos1.append(otherSubJetVeto)
65 print "userVetos1 = %s" % userVetos1
68 userVetos2 = elPFIsoValuePU03NoPFId.deposits[0].vetos.value()
69 userVetos2.append(otherSubJetVeto)
70 print "userVetos2 = %s" % userVetos2
72 patBoostedElectrons.userIsolation = cms.PSet(
74 pfChargedHadron = cms.PSet(
76 deltaR = cms.double(0.3),
77 src = patBoostedElectrons.isoDeposits.pfChargedHadrons,
78 vetos = cms.vstring(pfChargedHadronVetos),
80 skipDefaultVeto = elPFIsoValueCharged03NoPFId.deposits[0].skipDefaultVeto
82 pfNeutralHadron = cms.PSet(
84 deltaR = cms.double(0.3),
85 src = patBoostedElectrons.isoDeposits.pfNeutralHadrons,
86 vetos = cms.vstring(pfNeutralHadronVetos),
88 skipDefaultVeto = elPFIsoValueNeutral03NoPFId.deposits[0].skipDefaultVeto
92 deltaR = cms.double(0.3),
93 src = patBoostedElectrons.isoDeposits.pfPhotons,
94 vetos = cms.vstring(pfGammaVetos),
96 skipDefaultVeto = elPFIsoValueGamma03NoPFId.deposits[0].skipDefaultVeto
101 deltaR = cms.double(0.3),
102 src = patBoostedElectrons.isoDeposits.user[0],
103 vetos = cms.vstring(userVetos1),
105 skipDefaultVeto = elPFIsoValueChargedAll03NoPFId.deposits[0].skipDefaultVeto
109 deltaR = cms.double(0.3),
110 src = patBoostedElectrons.isoDeposits.user[1],
111 vetos = cms.vstring(userVetos2),
113 skipDefaultVeto = elPFIsoValuePU03NoPFId.deposits[0].skipDefaultVeto
119 makePatBoostedElectrons = cms.Sequence(
120 boostedElectronPFIsolationSequence
121 + patBoostedElectrons