CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cutBasedPhotonID_Spring15_50ns_V1_cff.py
Go to the documentation of this file.
1 
2 from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
3 
4 # Common functions and classes for ID definition are imported here:
6 
7 #
8 # This is the first version of Spring15 cuts, optimized on Spring15 50ns samples.
9 #
10 # The ID cuts below are optimized IDs for Spring 50ns Scenario
11 # The cut values are taken from the twiki:
12 # https://twiki.cern.ch/twiki/bin/viewauth/CMS/CutBasedPhotonIdentificationRun2
13 # (where they may not stay, if a newer version of cuts becomes available for these
14 # conditions)
15 # See also the presentation explaining these working points (this will not change):
16 # https://indico.cern.ch/event/369239/contribution/2/attachments/1134693/1623149/spring15_pcb.pdf
17 
18 #
19 # First, define cut values
20 #
21 
22 # Loose working point Barrel and Endcap
23 idName = "cutBasedPhotonID-Spring15-50ns-V1-standalone-loose"
24 WP_Loose_EB = WorkingPoint_V2(
25  idName , # idName
26  0.05 , # hOverECut
27  0.0103 , # full5x5_SigmaIEtaIEtaCut
28 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + exp(pt*C2+C3)
29  2.44 , # absPFChaHadIsoWithEACut_C1
30  0 , # absPFChaHadIsoWithEACut_C2
31  2.57 , # absPFNeuHadIsoWithEACut_C1
32  0.0044 , # absPFNeuHadIsoWithEACut_C2
33  0.5809 , # absPFNeuHadIsoWithEACut_C3
34  1.92 , # absPFPhoIsoWithEACut_C1
35  0.0043 # absPFPhoIsoWithEACut_C2
36  )
37 WP_Loose_EE = WorkingPoint_V2(
38  idName , #idName
39  0.05 , # hOverECut
40  0.0277 , # full5x5_SigmaIEtaIEtaCut
41 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + exp(pt*C2+C3)
42  1.84 , # absPFChaHadIsoWithEACut_C1
43  0.00 , # absPFChaHadIsoWithEACut_C2
44  4.00 , # absPFNeuHadIsoWithEACut_C1
45  0.0040 , # absPFNeuHadIsoWithEACut_C2
46  0.9402 , # absPFNeuHadIsoWithEACut_C3
47  2.15 , # absPFPhoIsoWithEACut_C1
48  0.0041 # absPFPhoIsoWithEACut_C2
49  )
50 
51 # Medium working point Barrel and Endcap
52 idName = "cutBasedPhotonID-Spring15-50ns-V1-standalone-medium"
53 WP_Medium_EB = WorkingPoint_V2(
54  idName , # idName
55  0.05 , # hOverECut
56  0.0100 , # full5x5_SigmaIEtaIEtaCut
57 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + exp(pt*C2+C3)
58  1.31 , # absPFChaHadIsoWithEACut_C1
59  0.00 , # absPFChaHadIsoWithEACut_C2
60  0.60 , # absPFNeuHadIsoWithEACut_C1
61  0.0044 , # absPFNeuHadIsoWithEACut_C2
62  0.5809 , # absPFNeuHadIsowithEACut_C3
63  1.33 , # absPFPhoIsoWithEACut_C1
64  0.0043 # absPFPhoIsoWithEACut_C2
65  )
66 
67 WP_Medium_EE = WorkingPoint_V2(
68  idName , #idName
69  0.05 , # hOverECut
70  0.0267 , # full5x5_SigmaIEtaIEtaCut
71 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + exp(pt*C2+C3)
72  1.25 , # absPFChaHadIsoWithEACut_C1
73  0.00 , # absPFChaHadIsoWithEACut_C2
74  1.65 , # absPFNeuHadIsoWithEACut_C1
75  0.0040 , # absPFNeuHadIsoWithEACut_C2
76  0.9402 , # absPFNeuHadIsowithEACut_C3
77  1.02 , # absPFPhoIsoWithEACut_C1
78  0.0041 # absPFPhoIsoWithEACut_C2
79  )
80 
81 # Tight working point Barrel and Endcap
82 idName = "cutBasedPhotonID-Spring15-50ns-V1-standalone-tight"
83 WP_Tight_EB = WorkingPoint_V2(
84  idName , # idName
85  0.05 , # hOverECut
86  0.0100 , # full5x5_SigmaIEtaIEtaCut
87 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + exp(pt*C2+C3)
88  0.91 , # absPFChaHadIsoWithEACut_C1
89  0.00 , # absPFChaHadIsoWithEACut_C2
90  0.33 , # absPFNeuHadIsoWithEACut_C1
91  0.0044 , # absPFNeuHadIsoWithEACut_C2
92  0.5809 , # absPFNeuHadIsowithEACut_C3
93  0.61 , # absPFPhoIsoWithEACut_C1
94  0.0043 # absPFPhoIsoWithEACut_C2
95  )
96 
97 WP_Tight_EE = WorkingPoint_V2(
98  idName , #idName
99  0.05 , # hOverECut
100  0.0267 , # full5x5_SigmaIEtaIEtaCut
101 # Isolation cuts are generally absIso < C1 + pt*C2, except for NeuHad is < C1 + exp(pt*C2+C3)
102  0.65 , # absPFChaHadIsoWithEACut_C1
103  0.00 , # absPFChaHadIsoWithEACut_C2
104  0.93 , # absPFNeuHadIsoWithEACut_C1
105  0.0040 , # absPFNeuHadIsoWithEACut_C2
106  0.9402 , # absPFNeuHadIsowithEACut_C3
107  0.54 , # absPFPhoIsoWithEACut_C1
108  0.0041 # absPFPhoIsoWithEACut_C2
109  )
110 
111 
112 # Second, define where to find the precomputed isolations and what effective
113 # areas to use for pile-up correction
114 isoInputs = IsolationCutInputs(
115  # chHadIsolationMapName
116  'photonIDValueMapProducer:phoChargedIsolation' ,
117  # chHadIsolationEffAreas
118  "RecoEgamma/PhotonIdentification/data/Spring15/effAreaPhotons_cone03_pfChargedHadrons_50ns.txt" ,
119  # neuHadIsolationMapName
120  'photonIDValueMapProducer:phoNeutralHadronIsolation' ,
121  # neuHadIsolationEffAreas
122  "RecoEgamma/PhotonIdentification/data/Spring15/effAreaPhotons_cone03_pfNeutralHadrons_50ns.txt" ,
123  # phoIsolationMapName
124  "photonIDValueMapProducer:phoPhotonIsolation" ,
125  # phoIsolationEffAreas
126  "RecoEgamma/PhotonIdentification/data/Spring15/effAreaPhotons_cone03_pfPhotons_50ns.txt"
127 )
128 
129 #
130 # Finally, set up VID configuration for all cuts
131 #
132 cutBasedPhotonID_Spring15_50ns_V1_standalone_loose = configureVIDCutBasedPhoID_V4 ( WP_Loose_EB, WP_Loose_EE, isoInputs)
133 cutBasedPhotonID_Spring15_50ns_V1_standalone_medium = configureVIDCutBasedPhoID_V4 ( WP_Medium_EB, WP_Medium_EE, isoInputs)
134 cutBasedPhotonID_Spring15_50ns_V1_standalone_tight = configureVIDCutBasedPhoID_V4 ( WP_Tight_EB, WP_Tight_EE, isoInputs)
135 
136 ## The MD5 sum numbers below reflect the exact set of cut variables
137 # and values above. If anything changes, one has to
138 # 1) comment out the lines below about the registry,
139 # 2) run "calculateMD5 <this file name> <one of the VID config names just above>
140 # 3) update the MD5 sum strings below and uncomment the lines again.
141 #
142 
143 central_id_registry.register(cutBasedPhotonID_Spring15_50ns_V1_standalone_loose.idName,
144  '0ecdbf2d9e48f89051f6dd7f9e6547e8')
145 central_id_registry.register(cutBasedPhotonID_Spring15_50ns_V1_standalone_medium.idName,
146  '9efd6037fab2ff3bb65b7592fac5efde')
147 central_id_registry.register(cutBasedPhotonID_Spring15_50ns_V1_standalone_tight.idName,
148  'e6a9a77984738862cda3a2fd966fc05e')
149 
150 cutBasedPhotonID_Spring15_50ns_V1_standalone_loose.isPOGApproved = cms.untracked.bool(True)
151 cutBasedPhotonID_Spring15_50ns_V1_standalone_medium.isPOGApproved = cms.untracked.bool(True)
152 cutBasedPhotonID_Spring15_50ns_V1_standalone_tight.isPOGApproved = cms.untracked.bool(True)