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
0018 mvaSpring15NonTrigClassName = "PhotonMVAEstimator"
0019
0020
0021
0022 mvaTag = "Run2Spring15NonTrig25nsV2"
0023
0024
0025
0026
0027
0028
0029 mvaSpring15NonTrigWeightFiles_V2 = cms.vstring(
0030 path.join(weightFileBaseDir, "Spring15/25ns_EB_V2.weights.xml.gz"),
0031 path.join(weightFileBaseDir, "Spring15/25ns_EE_V2.weights.xml.gz"),
0032 )
0033
0034
0035
0036
0037
0038 mvaProducerModuleLabel = "photonMVAValueMapProducer"
0039 mvaValueMapName = mvaProducerModuleLabel + ":" + mvaSpring15NonTrigClassName + mvaTag + "Values"
0040 mvaCategoriesMapName = mvaProducerModuleLabel + ":" + mvaSpring15NonTrigClassName + mvaTag + "Categories"
0041
0042
0043
0044
0045 idName = "mvaPhoID-Spring15-25ns-nonTrig-V2-wp90"
0046 MVA_WP90 = PhoMVA_2Categories_WP(
0047 idName = idName,
0048 mvaValueMapName = mvaValueMapName,
0049 mvaCategoriesMapName = mvaCategoriesMapName,
0050 cutCategory0 = 0.374,
0051 cutCategory1 = 0.336
0052 )
0053
0054
0055
0056
0057
0058
0059 mvaPhoID_Spring15_25ns_nonTrig_V2_producer_config = cms.PSet(
0060 mvaName = cms.string(mvaSpring15NonTrigClassName),
0061 mvaTag = cms.string(mvaTag),
0062 weightFileNames = mvaSpring15NonTrigWeightFiles_V2,
0063 variableDefinition = cms.string(mvaVariablesFile),
0064
0065 nCategories = cms.int32(2),
0066 categoryCuts = category_cuts
0067 )
0068
0069 mvaPhoID_Spring15_25ns_nonTrig_V2_wp90 = configureVIDMVAPhoID_V1( MVA_WP90 )
0070
0071
0072
0073
0074
0075
0076
0077
0078 central_id_registry.register( mvaPhoID_Spring15_25ns_nonTrig_V2_wp90.idName,
0079 '8a6870b7182e5aeee51b71cdba3c3fce')
0080
0081 mvaPhoID_Spring15_25ns_nonTrig_V2_wp90.isPOGApproved = cms.untracked.bool(True)