1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
6 elPFIsoDepositChargedForBoostedElectrons = elPFIsoDepositCharged.clone(
7 src = cms.InputTag(
'gedGsfElectrons'),
9 elPFIsoDepositChargedAllForBoostedElectrons = elPFIsoDepositChargedAll.clone(
10 src = cms.InputTag(
'gedGsfElectrons'),
12 elPFIsoDepositNeutralForBoostedElectrons = elPFIsoDepositNeutral.clone(
13 src = cms.InputTag(
'gedGsfElectrons'),
15 elPFIsoDepositGammaForBoostedElectrons = elPFIsoDepositGamma.clone(
16 src = cms.InputTag(
'gedGsfElectrons'),
18 elPFIsoDepositPUForBoostedElectrons = elPFIsoDepositPU.clone(
19 src = cms.InputTag(
'gedGsfElectrons'),
21 boostedElectronPFIsolationSequence = cms.Sequence(
22 elPFIsoDepositChargedForBoostedElectrons
23 + elPFIsoDepositChargedAllForBoostedElectrons
24 + elPFIsoDepositNeutralForBoostedElectrons
25 + elPFIsoDepositGammaForBoostedElectrons
26 + elPFIsoDepositPUForBoostedElectrons
30 patBoostedElectrons = patElectrons.clone(
31 isoDeposits = cms.PSet(
33 pfChargedHadrons = cms.InputTag(
"elPFIsoDepositChargedForBoostedElectrons"),
34 pfNeutralHadrons = cms.InputTag(
"elPFIsoDepositNeutralForBoostedElectrons"),
35 pfPhotons = cms.InputTag(
"elPFIsoDepositGammaForBoostedElectrons"),
37 cms.InputTag(
"elPFIsoDepositChargedAllForBoostedElectrons"),
38 cms.InputTag(
"elPFIsoDepositPUForBoostedElectrons")
41 addGenMatch = cms.bool(
False),
42 embedHighLevelSelection = cms.bool(
True),
43 usePV = cms.bool(
False)
46 otherSubJetVeto =
'OtherJetConstituentsDeltaRVeto(boostedTauSeeds,0.3,boostedTauSeeds:pfCandAssocMapForIsoDepositVetos,0.01)' 49 pfChargedHadronVetos = elPFIsoValueCharged03NoPFId.deposits[0].vetos.value()
50 pfChargedHadronVetos.append(otherSubJetVeto)
51 print(
"pfChargedHadronVetos = %s" % pfChargedHadronVetos)
54 pfNeutralHadronVetos = elPFIsoValueNeutral03NoPFId.deposits[0].vetos.value()
55 pfNeutralHadronVetos.append(otherSubJetVeto)
56 print(
"pfNeutralHadronVetos = %s" % pfNeutralHadronVetos)
59 pfGammaVetos = elPFIsoValueGamma03NoPFId.deposits[0].vetos.value()
60 pfGammaVetos.append(otherSubJetVeto)
61 print(
"pfGammaVetos = %s" % pfGammaVetos)
64 userVetos1 = elPFIsoValueChargedAll03NoPFId.deposits[0].vetos.value()
65 userVetos1.append(otherSubJetVeto)
66 print(
"userVetos1 = %s" % userVetos1)
69 userVetos2 = elPFIsoValuePU03NoPFId.deposits[0].vetos.value()
70 userVetos2.append(otherSubJetVeto)
71 print(
"userVetos2 = %s" % userVetos2)
73 patBoostedElectrons.userIsolation = cms.PSet(
75 pfChargedHadron = cms.PSet(
77 deltaR = cms.double(0.3),
78 src = patBoostedElectrons.isoDeposits.pfChargedHadrons,
79 vetos = cms.vstring(pfChargedHadronVetos),
81 skipDefaultVeto = elPFIsoValueCharged03NoPFId.deposits[0].skipDefaultVeto
83 pfNeutralHadron = cms.PSet(
85 deltaR = cms.double(0.3),
86 src = patBoostedElectrons.isoDeposits.pfNeutralHadrons,
87 vetos = cms.vstring(pfNeutralHadronVetos),
89 skipDefaultVeto = elPFIsoValueNeutral03NoPFId.deposits[0].skipDefaultVeto
93 deltaR = cms.double(0.3),
94 src = patBoostedElectrons.isoDeposits.pfPhotons,
95 vetos = cms.vstring(pfGammaVetos),
97 skipDefaultVeto = elPFIsoValueGamma03NoPFId.deposits[0].skipDefaultVeto
102 deltaR = cms.double(0.3),
103 src = patBoostedElectrons.isoDeposits.user[0],
104 vetos = cms.vstring(userVetos1),
106 skipDefaultVeto = elPFIsoValueChargedAll03NoPFId.deposits[0].skipDefaultVeto
110 deltaR = cms.double(0.3),
111 src = patBoostedElectrons.isoDeposits.user[1],
112 vetos = cms.vstring(userVetos2),
114 skipDefaultVeto = elPFIsoValuePU03NoPFId.deposits[0].skipDefaultVeto
120 makePatBoostedElectrons = cms.Sequence(
121 boostedElectronPFIsolationSequence
122 + patBoostedElectrons
S & print(S &os, JobReport::InputFile const &f)