File indexing completed on 2024-04-06 12:25:08
0001 import FWCore.ParameterSet.Config as cms
0002 from RecoEgamma.ElectronIdentification.Identification.mvaElectronID_tools import *
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 mvaTag = "Fall17NoIsoV1"
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 mvaFall17WeightFiles_V1 = cms.vstring(
0029 "RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_5_2017_puinfo_BDT.weights.root",
0030 "RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_5_2017_puinfo_BDT.weights.root",
0031 "RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_5_2017_puinfo_BDT.weights.root",
0032 "RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB1_10_2017_puinfo_BDT.weights.root",
0033 "RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EB2_10_2017_puinfo_BDT.weights.root",
0034 "RecoEgamma/ElectronIdentification/data/Fall17/EIDmva_EE_10_2017_puinfo_BDT.weights.root"
0035 )
0036
0037
0038
0039
0040 idName90 = "mvaEleID-Fall17-noIso-V1-wp90"
0041 MVA_WP90 = EleMVA_WP(
0042 idName = idName90, mvaTag = mvaTag,
0043 cutCategory0 = "0.9165112826974601 - exp(-pt / 2.7381703555094217) * 1.03549199648109",
0044 cutCategory1 = "0.8655738322220173 - exp(-pt / 2.4027944652597073) * 0.7975615613282494",
0045 cutCategory2 = "-3016.035055227131 - exp(-pt / -52140.61856333602) * -3016.3029387236506",
0046 cutCategory3 = "0.9616542816132922 - exp(-pt / 8.757943837889817) * 3.1390200321591206",
0047 cutCategory4 = "0.9319258011430132 - exp(-pt / 8.846057432565809) * 3.5985063793347787",
0048 cutCategory5 = "0.8899260780999244 - exp(-pt / 10.124234115859881) * 4.352791250718547",
0049 )
0050
0051 idName80 = "mvaEleID-Fall17-noIso-V1-wp80"
0052 MVA_WP80 = EleMVA_WP(
0053 idName = idName80, mvaTag = mvaTag,
0054 cutCategory0 = "0.9530240956555949 - exp(-pt / 2.7591425841003647) * 0.4669644718545271",
0055 cutCategory1 = "0.9336564763961019 - exp(-pt / 2.709276284272272) * 0.33512286599215946",
0056 cutCategory2 = "0.9313133688365339 - exp(-pt / 1.5821934800715558) * 3.8889462619659265",
0057 cutCategory3 = "0.9825268564943458 - exp(-pt / 8.702601455860762) * 1.1974861596609097",
0058 cutCategory4 = "0.9727509457929913 - exp(-pt / 8.179525631018565) * 1.7111755094657688",
0059 cutCategory5 = "0.9562619539540145 - exp(-pt / 8.109845366281608) * 3.013927699126942",
0060 )
0061
0062
0063
0064
0065
0066 idNamewpLoose = "mvaEleID-Fall17-noIso-V1-wpLoose"
0067 MVA_WPLoose = EleMVA_WP(
0068 idName = idNamewpLoose, mvaTag = mvaTag,
0069 cutCategory0 = "-0.13285867293779202",
0070 cutCategory1 = "-0.31765300958836074",
0071 cutCategory2 = "-0.0799205914718861" ,
0072 cutCategory3 = "-0.856871961305474" ,
0073 cutCategory4 = "-0.8107642141584835" ,
0074 cutCategory5 = "-0.7179265933023059"
0075 )
0076
0077
0078
0079
0080
0081
0082 mvaEleID_Fall17_noIso_V1_producer_config = cms.PSet(
0083 mvaName = cms.string(mvaClassName),
0084 mvaTag = cms.string(mvaTag),
0085
0086 nCategories = cms.int32(6),
0087 categoryCuts = cms.vstring(*EleMVA_6CategoriesCuts),
0088
0089 weightFileNames = mvaFall17WeightFiles_V1,
0090 variableDefinition = cms.string("RecoEgamma/ElectronIdentification/data/ElectronMVAEstimatorRun2Fall17V1Variables.txt")
0091 )
0092
0093 mvaEleID_Fall17_V1_wpLoose = configureVIDMVAEleID( MVA_WPLoose )
0094 mvaEleID_Fall17_V1_wp90 = configureVIDMVAEleID( MVA_WP90 )
0095 mvaEleID_Fall17_V1_wp80 = configureVIDMVAEleID( MVA_WP80 )
0096
0097 mvaEleID_Fall17_V1_wpLoose.isPOGApproved = cms.untracked.bool(True)
0098 mvaEleID_Fall17_V1_wp90.isPOGApproved = cms.untracked.bool(True)
0099 mvaEleID_Fall17_V1_wp80.isPOGApproved = cms.untracked.bool(True)