File indexing completed on 2024-04-06 12:25:08
0001 from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
0002 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_tools import *
0003 import FWCore.ParameterSet.Config as cms
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 mvaTag = "Spring16GeneralPurposeV1"
0020
0021
0022
0023
0024
0025
0026
0027 mvaSpring16WeightFiles_V1 = cms.vstring(
0028 "RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EB1_10.weights.root",
0029 "RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EB2_10.weights.root",
0030 "RecoEgamma/ElectronIdentification/data/Spring16_GeneralPurpose_V1/electronID_mva_Spring16_GeneralPurpose_V1_EE_10.weights.root"
0031 )
0032
0033
0034
0035 MVA_WP90 = EleMVA_WP(
0036 idName = "mvaEleID-Spring16-GeneralPurpose-V1-wp90", mvaTag = mvaTag,
0037 cutCategory0 = "0.836695742607",
0038 cutCategory1 = "0.715337944031",
0039 cutCategory2 = "0.356799721718",
0040 )
0041 MVA_WP80 = EleMVA_WP(
0042 idName = "mvaEleID-Spring16-GeneralPurpose-V1-wp80", mvaTag = mvaTag,
0043 cutCategory0 = "0.940962684155",
0044 cutCategory1 = "0.899208843708",
0045 cutCategory2 = "0.758484721184",
0046 )
0047
0048 workingPoints = dict(
0049 wp80 = MVA_WP80,
0050 wp90 = MVA_WP90
0051 )
0052
0053
0054
0055
0056
0057
0058 mvaEleID_Spring16_GeneralPurpose_V1_producer_config = cms.PSet(
0059 mvaName = cms.string(mvaClassName),
0060 mvaTag = cms.string(mvaTag),
0061
0062 nCategories = cms.int32(3),
0063 categoryCuts = cms.vstring(*EleMVA_3CategoriesCuts),
0064
0065 weightFileNames = mvaSpring16WeightFiles_V1,
0066 variableDefinition = cms.string(mvaVariablesFile)
0067 )
0068
0069 mvaEleID_Spring16_GeneralPurpose_V1_wp90 = configureVIDMVAEleID( MVA_WP90 )
0070 mvaEleID_Spring16_GeneralPurpose_V1_wp80 = configureVIDMVAEleID( MVA_WP80 )
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080 central_id_registry.register(mvaEleID_Spring16_GeneralPurpose_V1_wp90.idName,
0081 '14c153aaf3c207deb3ad4932586647a7')
0082 central_id_registry.register(mvaEleID_Spring16_GeneralPurpose_V1_wp80.idName,
0083 'b490bc0b0af2d5f3e9efea562370af2a')
0084
0085
0086 mvaEleID_Spring16_GeneralPurpose_V1_wp90.isPOGApproved = cms.untracked.bool(True)
0087 mvaEleID_Spring16_GeneralPurpose_V1_wp80.isPOGApproved = cms.untracked.bool(True)