1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
5 muPFIsoDepositChargedForBoostedMuons = muPFIsoDepositCharged.clone(
6 src = cms.InputTag(
'muons')
8 muPFIsoDepositNeutralForBoostedMuons = muPFIsoDepositNeutral.clone(
9 src = cms.InputTag(
'muons')
11 muPFIsoDepositGammaForBoostedMuons = muPFIsoDepositGamma.clone(
12 src = cms.InputTag(
'muons')
14 muPFIsoDepositChargedAllForBoostedMuons = muPFIsoDepositChargedAll.clone(
15 src = cms.InputTag(
'muons')
17 muPFIsoDepositPUforBoostedTauStudy = muPFIsoDepositPU.clone(
18 src = cms.InputTag(
'muons')
20 boostedMuonPFIsolationSequence = cms.Sequence(
21 muPFIsoDepositChargedForBoostedMuons
22 + muPFIsoDepositNeutralForBoostedMuons
23 + muPFIsoDepositGammaForBoostedMuons
24 + muPFIsoDepositChargedAllForBoostedMuons
25 + muPFIsoDepositPUforBoostedTauStudy
29 patBoostedMuons = patMuons.clone(
30 isoDeposits = cms.PSet(
32 pfChargedHadrons = cms.InputTag(
"muPFIsoDepositChargedForBoostedMuons"),
33 pfNeutralHadrons = cms.InputTag(
"muPFIsoDepositNeutralForBoostedMuons"),
34 pfPhotons = cms.InputTag(
"muPFIsoDepositGammaForBoostedMuons"),
36 cms.InputTag(
"muPFIsoDepositChargedAllForBoostedMuons"),
37 cms.InputTag(
"muPFIsoDepositPUforBoostedTauStudy")
40 addGenMatch = cms.bool(
False),
41 embedHighLevelSelection = cms.bool(
True),
42 embedCaloMETMuonCorrs = cms.bool(
False),
43 embedTcMETMuonCorrs = cms.bool(
False),
44 usePV = cms.bool(
False)
47 otherSubJetVeto =
'OtherJetConstituentsDeltaRVeto(boostedTauSeeds,0.3,boostedTauSeeds:pfCandAssocMapForIsoDepositVetos,0.01)'
49 pfChargedHadronVetos = muPFIsoValueCharged04.deposits[0].vetos.value()
50 pfChargedHadronVetos.append(otherSubJetVeto)
51 print(
"pfChargedHadronVetos = %s" % pfChargedHadronVetos)
53 pfNeutralHadronVetos = muPFIsoValueNeutral04.deposits[0].vetos.value()
54 pfNeutralHadronVetos.append(otherSubJetVeto)
55 print(
"pfNeutralHadronVetos = %s" % pfNeutralHadronVetos)
57 pfGammaVetos = muPFIsoValueGamma04.deposits[0].vetos.value()
58 pfGammaVetos.append(otherSubJetVeto)
59 print(
"pfGammaVetos = %s" % pfGammaVetos)
61 userVetos1 = muPFIsoValueChargedAll04.deposits[0].vetos.value()
62 userVetos1.append(otherSubJetVeto)
63 print(
"userVetos1 = %s" % userVetos1)
65 userVetos2 = muPFIsoValuePU04.deposits[0].vetos.value()
66 userVetos2.append(otherSubJetVeto)
67 print(
"userVetos2 = %s" % userVetos2)
69 patBoostedMuons.userIsolation = cms.PSet(
71 pfChargedHadron = cms.PSet(
72 deltaR = cms.double(0.4),
73 src = patBoostedMuons.isoDeposits.pfChargedHadrons,
74 vetos = cms.vstring(pfChargedHadronVetos),
75 skipDefaultVeto = muPFIsoValueCharged04.deposits[0].skipDefaultVeto
77 pfNeutralHadron = cms.PSet(
78 deltaR = cms.double(0.4),
79 src = patBoostedMuons.isoDeposits.pfNeutralHadrons,
80 vetos = cms.vstring(pfNeutralHadronVetos),
81 skipDefaultVeto = muPFIsoValueNeutral04.deposits[0].skipDefaultVeto
84 deltaR = cms.double(0.4),
85 src = patBoostedMuons.isoDeposits.pfPhotons,
86 vetos = cms.vstring(pfGammaVetos),
87 skipDefaultVeto = muPFIsoValueGamma04.deposits[0].skipDefaultVeto
91 deltaR = cms.double(0.4),
92 src = patBoostedMuons.isoDeposits.user[0],
93 vetos = cms.vstring(userVetos1),
94 skipDefaultVeto = muPFIsoValueChargedAll04.deposits[0].skipDefaultVeto
97 deltaR = cms.double(0.4),
98 src = patBoostedMuons.isoDeposits.user[1],
99 vetos = cms.vstring(userVetos2),
100 skipDefaultVeto = muPFIsoValuePU04.deposits[0].skipDefaultVeto
105 makePatBoostedMuons = cms.Sequence(
106 boostedMuonPFIsolationSequence
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)