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
0012
0013
0014
0015
0016
0017
0018 mvaTag = "RunIIIWinter22v1"
0019 mvaVariablesFile = "RecoEgamma/PhotonIdentification/data/PhotonMVAEstimatorRun3VariablesWinter22V1.txt"
0020 mvaWeightFiles = [
0021 path.join(weightFileBaseDir, "RunIII_Winter22/PhoMVA_ID_EB_V1.weights.root"),
0022 path.join(weightFileBaseDir, "RunIII_Winter22/PhoMVA_ID_EE_V1.weights.root"),
0023 ]
0024
0025 wpConfig = [
0026
0027
0028 {"idName" : "mvaPhoID-RunIIIWinter22-v1-wp90",
0029 "cuts" : { "EB" : 0.0439603,
0030 "EE" : -0.249526 }},
0031
0032
0033 {"idName" : "mvaPhoID-RunIIIWinter22-v1-wp80",
0034 "cuts" : { "EB" : 0.420473,
0035 "EE" : 0.203451 }},
0036 ]
0037
0038
0039 configs = configureFullVIDMVAPhoID(mvaTag=mvaTag,
0040 variablesFile=mvaVariablesFile,
0041 weightFiles=mvaWeightFiles,
0042 wpConfig=wpConfig,
0043
0044 nCategories = cms.int32(2),
0045 categoryCuts = category_cuts)
0046 mvaPhoID_RunIIIWinter22_v1_producer_config = configs["producer_config"]
0047 mvaPhoID_RunIIIWinter22_v1_wp90 = configs["VID_config"]["mvaPhoID-RunIIIWinter22-v1-wp90"]
0048 mvaPhoID_RunIIIWinter22_v1_wp80 = configs["VID_config"]["mvaPhoID-RunIIIWinter22-v1-wp80"]
0049
0050
0051
0052
0053
0054
0055
0056 central_id_registry.register( mvaPhoID_RunIIIWinter22_v1_wp90.idName,
0057 '2720b451f89dd72162f4a1de626a03ee098c8352')
0058 central_id_registry.register( mvaPhoID_RunIIIWinter22_v1_wp80.idName,
0059 'c198ffac6a62f5b64b1db5190048903722d29a66')
0060 mvaPhoID_RunIIIWinter22_v1_wp90.isPOGApproved = cms.bool(True)
0061 mvaPhoID_RunIIIWinter22_v1_wp80.isPOGApproved = cms.bool(True)