File indexing completed on 2024-04-06 12:25:10
0001 from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
0002
0003 import FWCore.ParameterSet.Config as cms
0004
0005
0006 from RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_tools \
0007 import ( WorkingPoint_V3,
0008 IsolationCutInputs,
0009 ClusterIsolationCutInputs,
0010 HoverECutInputs,
0011 configureVIDCutBasedPhoID_V6 )
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 idName = "cutBasedPhotonID-RunIIIWinter22-122X-V1-loose"
0024 WP_Loose_EB = WorkingPoint_V3(
0025 idName ,
0026 0.011452 ,
0027 0.12999 ,
0028
0029 1.8852 ,
0030 0.0 ,
0031 0.70379 ,
0032 0.00065204 ,
0033 6.3440 ,
0034 0.010055 ,
0035 0.00005783
0036 )
0037 WP_Loose_EE = WorkingPoint_V3(
0038 idName ,
0039 0.027674 ,
0040 0.15343 ,
0041
0042 1.6540 ,
0043 0.0 ,
0044 6.61585 ,
0045 0.00019549 ,
0046 1.8588 ,
0047 0.01170 ,
0048 0.00007476
0049 )
0050
0051
0052
0053
0054 idName = "cutBasedPhotonID-RunIIIWinter22-122X-V1-medium"
0055 WP_Medium_EB = WorkingPoint_V3(
0056 idName ,
0057 0.01001 ,
0058 0.058305 ,
0059
0060 0.93929 ,
0061 0.0 ,
0062 0.22770 ,
0063 0.00065204 ,
0064 2.1890 ,
0065 0.010055 ,
0066 0.00005783
0067 )
0068
0069 WP_Medium_EE = WorkingPoint_V3(
0070 idName ,
0071 0.02687 ,
0072 0.005181 ,
0073
0074 0.97029 ,
0075 0.0 ,
0076 1.124 ,
0077 0.00019549 ,
0078 0.033670 ,
0079 0.01170 ,
0080 0.00007476
0081 )
0082
0083
0084
0085
0086 idName = "cutBasedPhotonID-RunIIIWinter22-122X-V1-tight"
0087 WP_Tight_EB = WorkingPoint_V3(
0088 idName ,
0089 0.009993 ,
0090 0.0417588 ,
0091
0092 0.31631 ,
0093 0.0 ,
0094 0.14189 ,
0095 0.00065204 ,
0096 0.39057 ,
0097 0.0100547 ,
0098 0.00005783
0099 )
0100
0101 WP_Tight_EE = WorkingPoint_V3(
0102 idName ,
0103 0.02687 ,
0104 0.0025426 ,
0105
0106 0.29266 ,
0107 0.0 ,
0108 1.04269 ,
0109 0.00019549 ,
0110 0.029262 ,
0111 0.01170 ,
0112 0.00007476
0113 )
0114
0115
0116
0117
0118 isoInputs = IsolationCutInputs(
0119
0120 'photonIDValueMapProducer:phoChargedIsolation' ,
0121
0122 "RecoEgamma/PhotonIdentification/data/RunIII_Winter22/effectiveArea_ChgHadronIso_95percentBased.txt",
0123
0124 'photonIDValueMapProducer:phoNeutralHadronIsolation' ,
0125
0126 "RecoEgamma/PhotonIdentification/data/RunIII_Winter22/effectiveArea_NeuHadronIso_95percentBased.txt" ,
0127
0128 'photonIDValueMapProducer:phoPhotonIsolation' ,
0129
0130 "RecoEgamma/PhotonIdentification/data/RunIII_Winter22/effectiveArea_PhotonIso_95percentBased.txt"
0131 )
0132
0133 clusterIsoInputs = ClusterIsolationCutInputs(
0134
0135 'photonIDValueMapProducer:phoTrkIsolation' ,
0136
0137 "RecoEgamma/PhotonIdentification/data/RunIII_Winter22/effectiveArea_TrackerIso_95percentBased.txt",
0138
0139 'photonIDValueMapProducer:phoEcalPFClIsolation' ,
0140
0141 "RecoEgamma/PhotonIdentification/data/RunIII_Winter22/effectiveArea_ECalClusterIso_95percentBased.txt",
0142
0143 'photonIDValueMapProducer:phoHcalPFClIsolation' ,
0144
0145 "RecoEgamma/PhotonIdentification/data/RunIII_Winter22/effectiveArea_HCalClusterIso_95percentBased.txt"
0146 )
0147
0148 hOverEInputs = HoverECutInputs(
0149
0150 "RecoEgamma/PhotonIdentification/data/RunIII_Winter22/effectiveArea_coneBasedHoverE_95percentBased.txt"
0151 )
0152
0153
0154
0155
0156 cutBasedPhotonID_RunIIIWinter22_122X_V1_loose = configureVIDCutBasedPhoID_V6 ( WP_Loose_EB, WP_Loose_EE, isoInputs, clusterIsoInputs, hOverEInputs)
0157 cutBasedPhotonID_RunIIIWinter22_122X_V1_medium = configureVIDCutBasedPhoID_V6 ( WP_Medium_EB, WP_Medium_EE, isoInputs, clusterIsoInputs, hOverEInputs)
0158 cutBasedPhotonID_RunIIIWinter22_122X_V1_tight = configureVIDCutBasedPhoID_V6 ( WP_Tight_EB, WP_Tight_EE, isoInputs, clusterIsoInputs, hOverEInputs)
0159
0160
0161
0162
0163
0164
0165
0166
0167 central_id_registry.register(cutBasedPhotonID_RunIIIWinter22_122X_V1_loose.idName,
0168 '57d3fe8d9a1bff37aca5d13887138607233af1b5')
0169 central_id_registry.register(cutBasedPhotonID_RunIIIWinter22_122X_V1_medium.idName,
0170 '114b047ad28e2aae54869847420514d74f2540b8')
0171 central_id_registry.register(cutBasedPhotonID_RunIIIWinter22_122X_V1_tight.idName,
0172 '2e56bbbca90e9bc089e5a716412cc51f3de47cb3')
0173
0174 cutBasedPhotonID_RunIIIWinter22_122X_V1_loose.isPOGApproved = cms.untracked.bool(True)
0175 cutBasedPhotonID_RunIIIWinter22_122X_V1_medium.isPOGApproved = cms.untracked.bool(True)
0176 cutBasedPhotonID_RunIIIWinter22_122X_V1_tight.isPOGApproved = cms.untracked.bool(True)
0177