File indexing completed on 2024-04-06 12:25:10
0001 from RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_tools import *
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 mvaTag = "RunIIFall17v2"
0012 mvaVariablesFile = "RecoEgamma/PhotonIdentification/data/PhotonMVAEstimatorRun2VariablesFall17V1p1.txt"
0013 mvaWeightFiles = [
0014 path.join(weightFileBaseDir, "Fall17/EB_V2.weights.root"),
0015 path.join(weightFileBaseDir, "Fall17/EE_V2.weights.root"),
0016 ]
0017
0018 wpConfig = [
0019
0020
0021
0022 {"idName" : "mvaPhoID-RunIIFall17-v2-wp90",
0023 "cuts" : { "EB" : -0.02,
0024 "EE" : -0.26 }},
0025
0026
0027
0028 {"idName" : "mvaPhoID-RunIIFall17-v2-wp80",
0029 "cuts" : { "EB" : 0.42,
0030 "EE" : 0.14 }},
0031 ]
0032
0033
0034 configs = configureFullVIDMVAPhoID(mvaTag=mvaTag,
0035 variablesFile=mvaVariablesFile,
0036 weightFiles=mvaWeightFiles,
0037 wpConfig=wpConfig,
0038
0039 nCategories = cms.int32(2),
0040 categoryCuts = category_cuts)
0041 mvaPhoID_RunIIFall17_v2_producer_config = configs["producer_config"]
0042 mvaPhoID_RunIIFall17_v2_wp90 = configs["VID_config"]["mvaPhoID-RunIIFall17-v2-wp90"]
0043 mvaPhoID_RunIIFall17_v2_wp80 = configs["VID_config"]["mvaPhoID-RunIIFall17-v2-wp80"]
0044
0045
0046
0047
0048
0049
0050 central_id_registry.register( mvaPhoID_RunIIFall17_v2_wp90.idName,
0051 '5c06832759b1faf7dd6fc45ed1aef3a2')
0052 central_id_registry.register( mvaPhoID_RunIIFall17_v2_wp80.idName,
0053 '3013ddce7a3ad8b54827c29f5d92282e')
0054 mvaPhoID_RunIIFall17_v2_wp90.isPOGApproved = cms.bool(True)
0055 mvaPhoID_RunIIFall17_v2_wp80.isPOGApproved = cms.bool(True)