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 mvaTag = "RunIIFall17v1"
0011 mvaVariablesFile = "RecoEgamma/PhotonIdentification/data/PhotonMVAEstimatorRun2VariablesFall17.txt"
0012 mvaWeightFiles = [
0013 path.join(weightFileBaseDir, "Fall17/EB_V1.weights.root"),
0014 path.join(weightFileBaseDir, "Fall17/EE_V1.weights.root"),
0015 ]
0016
0017
0018 wpConfig = [
0019
0020
0021
0022 {"idName" : "mvaPhoID-RunIIFall17-v1-wp90",
0023 "cuts" : { "EB" : 0.27,
0024 "EE" : 0.14 }},
0025
0026
0027
0028 {"idName" : "mvaPhoID-RunIIFall17-v1-wp80",
0029 "cuts" : { "EB" : 0.67,
0030 "EE" : 0.54 }},
0031 ]
0032
0033
0034
0035 configs = configureFullVIDMVAPhoID(mvaTag=mvaTag,
0036 variablesFile=mvaVariablesFile,
0037 weightFiles=mvaWeightFiles,
0038 wpConfig=wpConfig,
0039
0040 nCategories = cms.int32(2),
0041 categoryCuts = category_cuts)
0042 mvaPhoID_RunIIFall17_v1_producer_config = configs["producer_config"]
0043 mvaPhoID_RunIIFall17_v1_wp90 = configs["VID_config"]["mvaPhoID-RunIIFall17-v1-wp90"]
0044 mvaPhoID_RunIIFall17_v1_wp80 = configs["VID_config"]["mvaPhoID-RunIIFall17-v1-wp80"]
0045
0046
0047
0048
0049
0050
0051
0052 central_id_registry.register( mvaPhoID_RunIIFall17_v1_wp90.idName,
0053 '834dd792692b6a62786bd1caa6b53a68')
0054 central_id_registry.register( mvaPhoID_RunIIFall17_v1_wp80.idName,
0055 '7e48c47329d7d1eb889100ed03a02ba9')
0056
0057 mvaPhoID_RunIIFall17_v1_wp90.isPOGApproved = cms.untracked.bool(True)
0058 mvaPhoID_RunIIFall17_v1_wp80.isPOGApproved = cms.untracked.bool(True)