![]() |
|
|||
File indexing completed on 2024-04-06 12:25:10
0001 0002 from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry 0003 0004 # Common functions and classes for ID definition are imported here: 0005 from RecoEgamma.PhotonIdentification.Identification.cutBasedPhotonID_tools import * 0006 0007 # 0008 # This is the first version of Spring15 cuts, optimized on Spring15 50ns samples. 0009 # 0010 # The ID cuts below are optimized IDs for Spring 50ns Scenario 0011 # The cut values are taken from the twiki: 0012 # https://twiki.cern.ch/twiki/bin/viewauth/CMS/CutBasedPhotonIdentificationRun2 0013 # (where they may not stay, if a newer version of cuts becomes available for these 0014 # conditions) 0015 # See also the presentation explaining these working points (this will not change): 0016 # ... not yet presented ... 0017 0018 # 0019 # First, define cut values 0020 # 0021 0022 # Loose working point Barrel and Endcap 0023 idName = "cutBasedPhotonID-Spring15-25ns-V1-standalone-loose" 0024 WP_Loose_EB = WorkingPoint_V2( 0025 idName , # idName 0026 0.05 , # hOverECut 0027 0.0102 , # full5x5_SigmaIEtaIEtaCut 0028 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + pt*C2 + pt*pt*C3 0029 3.32 , # absPFChaHadIsoWithEACut_C1 0030 0 , # absPFChaHadIsoWithEACut_C2 0031 1.92 , # absPFNeuHadIsoWithEACut_C1 0032 0.014 , # absPFNeuHadIsoWithEACut_C2 0033 0.000019 , # absPFNeuHadIsoWithEACut_C3 0034 0.81 , # absPFPhoIsoWithEACut_C1 0035 0.0053 # absPFPhoIsoWithEACut_C2 0036 ) 0037 WP_Loose_EE = WorkingPoint_V2( 0038 idName , #idName 0039 0.05 , # hOverECut 0040 0.0274 , # full5x5_SigmaIEtaIEtaCut 0041 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + pt*C2 + pt*pt*C3 0042 1.97 , # absPFChaHadIsoWithEACut_C1 0043 0.00 , # absPFChaHadIsoWithEACut_C2 0044 11.86 , # absPFNeuHadIsoWithEACut_C1 0045 0.0139 , # absPFNeuHadIsoWithEACut_C2 0046 0.000025 , # absPFNeuHadIsoWithEACut_C3 0047 0.83 , # absPFPhoIsoWithEACut_C1 0048 0.0034 # absPFPhoIsoWithEACut_C2 0049 ) 0050 0051 # Medium working point Barrel and Endcap 0052 idName = "cutBasedPhotonID-Spring15-25ns-V1-standalone-medium" 0053 WP_Medium_EB = WorkingPoint_V2( 0054 idName , # idName 0055 0.05 , # hOverECut 0056 0.0102 , # full5x5_SigmaIEtaIEtaCut 0057 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + pt*C2 + pt*pt*C3 0058 1.37 , # absPFChaHadIsoWithEACut_C1 0059 0.00 , # absPFChaHadIsoWithEACut_C2 0060 1.06 , # absPFNeuHadIsoWithEACut_C1 0061 0.014 , # absPFNeuHadIsoWithEACut_C2 0062 0.000019 , # absPFNeuHadIsowithEACut_C3 0063 0.28 , # absPFPhoIsoWithEACut_C1 0064 0.0053 # absPFPhoIsoWithEACut_C2 0065 ) 0066 0067 WP_Medium_EE = WorkingPoint_V2( 0068 idName , #idName 0069 0.05 , # hOverECut 0070 0.0268 , # full5x5_SigmaIEtaIEtaCut 0071 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + pt*C2 + pt*pt*C3 0072 1.10 , # absPFChaHadIsoWithEACut_C1 0073 0.00 , # absPFChaHadIsoWithEACut_C2 0074 2.69 , # absPFNeuHadIsoWithEACut_C1 0075 0.0139 , # absPFNeuHadIsoWithEACut_C2 0076 0.000025 , # absPFNeuHadIsowithEACut_C3 0077 0.39 , # absPFPhoIsoWithEACut_C1 0078 0.0034 # absPFPhoIsoWithEACut_C2 0079 ) 0080 0081 # Tight working point Barrel and Endcap 0082 idName = "cutBasedPhotonID-Spring15-25ns-V1-standalone-tight" 0083 WP_Tight_EB = WorkingPoint_V2( 0084 idName , # idName 0085 0.05 , # hOverECut 0086 0.0100 , # full5x5_SigmaIEtaIEtaCut 0087 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + pt*C2 + pt*pt*C3 0088 0.76 , # absPFChaHadIsoWithEACut_C1 0089 0.00 , # absPFChaHadIsoWithEACut_C2 0090 0.97 , # absPFNeuHadIsoWithEACut_C1 0091 0.014 , # absPFNeuHadIsoWithEACut_C2 0092 0.000019 , # absPFNeuHadIsowithEACut_C3 0093 0.08 , # absPFPhoIsoWithEACut_C1 0094 0.0053 # absPFPhoIsoWithEACut_C2 0095 ) 0096 0097 WP_Tight_EE = WorkingPoint_V2( 0098 idName , #idName 0099 0.05 , # hOverECut 0100 0.0268 , # full5x5_SigmaIEtaIEtaCut 0101 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + pt*C2 + pt*pt*C3 0102 0.56 , # absPFChaHadIsoWithEACut_C1 0103 0.00 , # absPFChaHadIsoWithEACut_C2 0104 2.09 , # absPFNeuHadIsoWithEACut_C1 0105 0.0139 , # absPFNeuHadIsoWithEACut_C2 0106 0.000025 , # absPFNeuHadIsowithEACut_C3 0107 0.16 , # absPFPhoIsoWithEACut_C1 0108 0.0034 # absPFPhoIsoWithEACut_C2 0109 ) 0110 0111 0112 # Second, define where to find the precomputed isolations and what effective 0113 # areas to use for pile-up correction 0114 isoInputs = IsolationCutInputs( 0115 # chHadIsolationMapName 0116 'photonIDValueMapProducer:phoChargedIsolation' , 0117 # chHadIsolationEffAreas 0118 "RecoEgamma/PhotonIdentification/data/Spring15/effAreaPhotons_cone03_pfChargedHadrons_25ns_NULLcorrection.txt", 0119 # neuHadIsolationMapName 0120 'photonIDValueMapProducer:phoNeutralHadronIsolation' , 0121 # neuHadIsolationEffAreas 0122 "RecoEgamma/PhotonIdentification/data/Spring15/effAreaPhotons_cone03_pfNeutralHadrons_25ns_90percentBased.txt" , 0123 # phoIsolationMapName 0124 "photonIDValueMapProducer:phoPhotonIsolation" , 0125 # phoIsolationEffAreas 0126 "RecoEgamma/PhotonIdentification/data/Spring15/effAreaPhotons_cone03_pfPhotons_25ns_90percentBased.txt" 0127 ) 0128 0129 # 0130 # Finally, set up VID configuration for all cuts 0131 # 0132 cutBasedPhotonID_Spring15_25ns_V1_standalone_loose = configureVIDCutBasedPhoID_V5 ( WP_Loose_EB, WP_Loose_EE, isoInputs) 0133 cutBasedPhotonID_Spring15_25ns_V1_standalone_medium = configureVIDCutBasedPhoID_V5 ( WP_Medium_EB, WP_Medium_EE, isoInputs) 0134 cutBasedPhotonID_Spring15_25ns_V1_standalone_tight = configureVIDCutBasedPhoID_V5 ( WP_Tight_EB, WP_Tight_EE, isoInputs) 0135 0136 ## The MD5 sum numbers below reflect the exact set of cut variables 0137 # and values above. If anything changes, one has to 0138 # 1) comment out the lines below about the registry, 0139 # 2) run "calculateMD5 <this file name> <one of the VID config names just above> 0140 # 3) update the MD5 sum strings below and uncomment the lines again. 0141 # 0142 0143 central_id_registry.register(cutBasedPhotonID_Spring15_25ns_V1_standalone_loose.idName, 0144 '3dbb7c6922f3e1b9eb9cf1c679ff70bb') 0145 central_id_registry.register(cutBasedPhotonID_Spring15_25ns_V1_standalone_medium.idName, 0146 '3c31de4198e6c34a0668e11fae83ac21') 0147 central_id_registry.register(cutBasedPhotonID_Spring15_25ns_V1_standalone_tight.idName, 0148 '82ed54bcaf3c8d0ac4f2ae51aa8ff37d') 0149 0150 cutBasedPhotonID_Spring15_25ns_V1_standalone_loose.isPOGApproved = cms.untracked.bool(True) 0151 cutBasedPhotonID_Spring15_25ns_V1_standalone_medium.isPOGApproved = cms.untracked.bool(True) 0152 cutBasedPhotonID_Spring15_25ns_V1_standalone_tight.isPOGApproved = cms.untracked.bool(True)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |