10 ele_mva_prod_name =
'electronMVAValueMapProducer'
11 pho_mva_prod_name =
'photonMVAValueMapProducer'
13 def setup_mva(val_pset,cat_pset,prod_name,mva_name):
14 value_name =
'%s:%sValues'%(prod_name,mva_name)
15 cat_name =
'%s:%sCategories'%(prod_name,mva_name)
16 setattr( val_pset,
'%sValues'%mva_name, cms.InputTag(value_name) )
17 setattr( cat_pset,
'%sCategories'%mva_name, cms.InputTag(cat_name) )
19 egamma_modifications = cms.VPSet(
20 cms.PSet( modifierName = cms.string(
'EGExtraInfoModifierFromFloatValueMaps'),
21 electron_config = cms.PSet( ),
22 photon_config = cms.PSet( phoFull5x5SigmaIEtaIPhi = cms.InputTag(
'photonIDValueMapProducer:phoFull5x5SigmaIEtaIPhi'),
23 phoFull5x5E1x3 = cms.InputTag(
'photonIDValueMapProducer:phoFull5x5E1x3'),
24 phoFull5x5E2x2 = cms.InputTag(
'photonIDValueMapProducer:phoFull5x5E2x2'),
25 phoFull5x5E2x5Max = cms.InputTag(
'photonIDValueMapProducer:phoFull5x5E2x5Max'),
26 phoESEffSigmaRR = cms.InputTag(
'photonIDValueMapProducer:phoESEffSigmaRR'),
27 chargedHadronIso = cms.InputTag(
'photonIDValueMapProducer:phoChargedIsolation'),
28 neutralHadronIsolation = cms.InputTag(
'photonIDValueMapProducer:phoNeutralHadronIsolation'),
29 photonIso = cms.InputTag(
'photonIDValueMapProducer:phoPhotonIsolation'),
30 chargedHadronIsoWrongVtx = cms.InputTag(
'photonIDValueMapProducer:phoWorstChargedIsolation')
33 cms.PSet( modifierName = cms.string(
'EGExtraInfoModifierFromIntValueMaps'),
34 electron_config = cms.PSet( ),
35 photon_config = cms.PSet( )
40 setup_mva(egamma_modifications[0].electron_config,
41 egamma_modifications[1].electron_config,
43 ele_spring15_nt.mvaSpring15NonTrigClassName+ele_spring15_nt.mvaTag)
45 setup_mva(egamma_modifications[0].photon_config,
46 egamma_modifications[1].photon_config,
48 pho_spring15_25_nt.mvaSpring15NonTrigClassName+pho_spring15_25_nt.mvaTag)
50 setup_mva(egamma_modifications[0].photon_config,
51 egamma_modifications[1].photon_config,
53 pho_spring15_50_nt.mvaSpring15NonTrigClassName+pho_spring15_50_nt.mvaTag)
62 egamma_modifications.append( regressionModifier )