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 = "RunIIFall17v1p1"
0011 mvaVariablesFile = "RecoEgamma/PhotonIdentification/data/PhotonMVAEstimatorRun2VariablesFall17V1p1.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-v1p1-wp90",
0023 "cuts" : { "EB" : 0.27,
0024 "EE" : 0.14 }},
0025
0026
0027
0028 {"idName" : "mvaPhoID-RunIIFall17-v1p1-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_v1p1_producer_config = configs["producer_config"]
0043 mvaPhoID_RunIIFall17_v1p1_wp90 = configs["VID_config"]["mvaPhoID-RunIIFall17-v1p1-wp90"]
0044 mvaPhoID_RunIIFall17_v1p1_wp80 = configs["VID_config"]["mvaPhoID-RunIIFall17-v1p1-wp80"]
0045
0046
0047
0048
0049
0050
0051
0052 central_id_registry.register( mvaPhoID_RunIIFall17_v1p1_wp90.idName,
0053 '1120f91d15f68bf61b5f08958bf4f435')
0054 central_id_registry.register( mvaPhoID_RunIIFall17_v1p1_wp80.idName,
0055 '56138c4a3ac3c0bffc7f01c187063102')
0056
0057 mvaPhoID_RunIIFall17_v1p1_wp90.isPOGApproved = cms.untracked.bool(True)
0058 mvaPhoID_RunIIFall17_v1p1_wp80.isPOGApproved = cms.untracked.bool(True)