File indexing completed on 2024-04-06 12:25:10
0001 from RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_tools import *
0002
0003 mvaVariablesFile = "RecoEgamma/PhotonIdentification/data/PhotonMVAEstimatorRun2VariablesSpring15ValMaps.txt"
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 mvaSpring15NonTrigClassName = "PhotonMVAEstimator"
0018
0019
0020
0021 mvaTag = "Run2Spring15NonTrig50nsV0"
0022
0023
0024
0025
0026
0027
0028 mvaSpring15NonTrigWeightFiles_V0 = cms.vstring(
0029 path.join(weightFileBaseDir, "Spring15/50ns_EB_V0.weights.xml.gz"),
0030 path.join(weightFileBaseDir, "Spring15/50ns_EE_V0.weights.xml.gz"),
0031 )
0032
0033
0034
0035
0036
0037 mvaProducerModuleLabel = "photonMVAValueMapProducer"
0038 mvaValueMapName = mvaProducerModuleLabel + ":" + mvaSpring15NonTrigClassName + mvaTag + "Values"
0039 mvaCategoriesMapName = mvaProducerModuleLabel + ":" + mvaSpring15NonTrigClassName + mvaTag + "Categories"
0040
0041
0042
0043
0044 idName = "mvaPhoID-Spring15-50ns-nonTrig-V0-wp90"
0045 MVA_WP90 = PhoMVA_2Categories_WP(
0046 idName = idName,
0047 mvaValueMapName = mvaValueMapName,
0048 mvaCategoriesMapName = mvaCategoriesMapName,
0049 cutCategory0 = 0.224,
0050 cutCategory1 = 0.355
0051 )
0052
0053
0054
0055
0056
0057
0058 mvaPhoID_Spring15_50ns_nonTrig_V0_producer_config = cms.PSet(
0059 mvaName = cms.string(mvaSpring15NonTrigClassName),
0060 mvaTag = cms.string(mvaTag),
0061 weightFileNames = mvaSpring15NonTrigWeightFiles_V0,
0062 variableDefinition = cms.string(mvaVariablesFile),
0063
0064 nCategories = cms.int32(2),
0065 categoryCuts = category_cuts
0066 )
0067
0068 mvaPhoID_Spring15_50ns_nonTrig_V0_wp90 = configureVIDMVAPhoID_V1( MVA_WP90 )
0069
0070
0071
0072
0073
0074
0075
0076
0077 central_id_registry.register( mvaPhoID_Spring15_50ns_nonTrig_V0_wp90.idName,
0078 'f7632ecc85a3b775335fd9bf78f468df')
0079
0080 mvaPhoID_Spring15_50ns_nonTrig_V0_wp90.isPOGApproved = cms.untracked.bool(False)