CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
egammaObjectModificationsInMiniAOD_cff.py
Go to the documentation of this file.
2 
3 #electron mva ids
5 
6 #photon mva ids
9 
10 ele_mva_prod_name = 'electronMVAValueMapProducer'
11 pho_mva_prod_name = 'photonMVAValueMapProducer'
12 
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) )
18 
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')
31  )
32  ),
33  cms.PSet( modifierName = cms.string('EGExtraInfoModifierFromIntValueMaps'),
34  electron_config = cms.PSet( ),
35  photon_config = cms.PSet( )
36  )
37 )
38 
39 #setup the mva value maps to embed
40 setup_mva(egamma_modifications[0].electron_config,
41  egamma_modifications[1].electron_config,
42  ele_mva_prod_name,
43  ele_spring15_nt.mvaSpring15NonTrigClassName+ele_spring15_nt.mvaTag)
44 
45 setup_mva(egamma_modifications[0].photon_config,
46  egamma_modifications[1].photon_config,
47  pho_mva_prod_name,
48  pho_spring15_25_nt.mvaSpring15NonTrigClassName+pho_spring15_25_nt.mvaTag)
49 
50 setup_mva(egamma_modifications[0].photon_config,
51  egamma_modifications[1].photon_config,
52  pho_mva_prod_name,
53  pho_spring15_50_nt.mvaSpring15NonTrigClassName+pho_spring15_50_nt.mvaTag)
54 
55 
56 #############################################################
57 # REGRESSION MODIFIERS
58 #############################################################
59 
61 
62 egamma_modifications.append( regressionModifier )
REGRESSION MODIFIERS.