CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cutBasedElectronID_Spring15_50ns_V1_cff.py
Go to the documentation of this file.
1 from PhysicsTools.SelectorUtils.centralIDRegistry import central_id_registry
2 
3 # Common functions and classes for ID definition are imported here:
5 
6 #
7 # This is the first round of Spring15 50ns cuts, optimized on Spring15 50ns samples.
8 #
9 # The ID cuts below are optimized IDs for Spring15 Scenario with 50ns bunch spacing
10 # The cut values are taken from the twiki:
11 # https://twiki.cern.ch/twiki/bin/view/CMS/CutBasedElectronIdentificationRun2
12 # (where they may not stay, if a newer version of cuts becomes available for these
13 # conditions)
14 # See also the presentation explaining these working points (this will not change):
15 # https://indico.cern.ch/event/369239/contribution/6/attachments/1134836/1623383/Rami_eleCB_ID_50ns.pdf
16 #
17 # First, define cut values
18 #
19 
20 # Veto working point Barrel and Endcap
21 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-veto"
22 WP_Veto_EB = EleWorkingPoint_V2(
23  idName , # idName
24  0.0126 , # dEtaInCut
25  0.107 , # dPhiInCut
26  0.012 , # full5x5_sigmaIEtaIEtaCut
27  0.186 , # hOverECut
28  0.0621 , # dxyCut
29  0.613 , # dzCut
30  0.239 , # absEInverseMinusPInverseCut
31  0.161 , # relCombIsolationWithEALowPtCut
32  0.161 , # relCombIsolationWithEAHighPtCut
33  # conversion veto cut needs no parameters, so not mentioned
34  2 # missingHitsCut
35  )
36 
37 WP_Veto_EE = EleWorkingPoint_V2(
38  idName , # idName
39  0.0109 , # dEtaInCut
40  0.219 , # dPhiInCut
41  0.0339 , # full5x5_sigmaIEtaIEtaCut
42  0.0962 , # hOverECut
43  0.279 , # dxyCut
44  0.947 , # dzCut
45  0.141 , # absEInverseMinusPInverseCut
46  0.193 , # relCombIsolationWithEALowPtCut
47  0.193 , # relCombIsolationWithEAHighPtCut
48  # conversion veto cut needs no parameters, so not mentioned
49  3 # missingHitsCut
50  )
51 
52 # Loose working point Barrel and Endcap
53 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-loose"
54 WP_Loose_EB = EleWorkingPoint_V2(
55  idName , # idName
56  0.0098 , # dEtaInCut
57  0.0929 , # dPhiInCut
58  0.0105 , # full5x5_sigmaIEtaIEtaCut
59  0.0765 , # hOverECut
60  0.0227 , # dxyCut
61  0.379 , # dzCut
62  0.184 , # absEInverseMinusPInverseCut
63  0.118 , # relCombIsolationWithEALowPtCut
64  0.118 , # relCombIsolationWithEAHighPtCut
65  # conversion veto cut needs no parameters, so not mentioned
66  2 # missingHitsCut
67  )
68 
69 WP_Loose_EE = EleWorkingPoint_V2(
70  idName , # idName
71  0.00950 , # dEtaInCut
72  0.181 , # dPhiInCut
73  0.0318 , # full5x5_sigmaIEtaIEtaCut
74  0.0824 , # hOverECut
75  0.242 , # dxyCut
76  0.921 , # dzCut
77  0.125 , # absEInverseMinusPInverseCut
78  0.118 , # relCombIsolationWithEALowPtCut
79  0.118 , # relCombIsolationWithEAHighPtCut
80  # conversion veto cut needs no parameters, so not mentioned
81  1 # missingHitsCut
82  )
83 
84 # Medium working point Barrel and Endcap
85 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-medium"
86 WP_Medium_EB = EleWorkingPoint_V2(
87  idName , # idName
88  0.00945 , # dEtaInCut
89  0.0296 , # dPhiInCut
90  0.0101 , # full5x5_sigmaIEtaIEtaCut
91  0.0372 , # hOverECut
92  0.0151 , # dxyCut
93  0.238 , # dzCut
94  0.118 , # absEInverseMinusPInverseCut
95  0.0987 , # relCombIsolationWithEALowPtCut
96  0.0987 , # relCombIsolationWithEAHighPtCut
97  # conversion veto cut needs no parameters, so not mentioned
98  2 # missingHitsCut
99  )
100 
101 WP_Medium_EE = EleWorkingPoint_V2(
102  idName , # idName
103  0.00773 , # dEtaInCut
104  0.148 , # dPhiInCut
105  0.0287 , # full5x5_sigmaIEtaIEtaCut
106  0.0546 , # hOverECut
107  0.0535 , # dxyCut
108  0.572 , # dzCut
109  0.104 , # absEInverseMinusPInverseCut
110  0.0902 , # relCombIsolationWithEALowPtCut
111  0.0902 , # relCombIsolationWithEAHighPtCut
112  # conversion veto cut needs no parameters, so not mentioned
113  1 # missingHitsCut
114  )
115 
116 # Tight working point Barrel and Endcap
117 idName = "cutBasedElectronID-Spring15-50ns-V1-standalone-tight"
118 WP_Tight_EB = EleWorkingPoint_V2(
119  idName , # idName
120  0.00950 , # dEtaInCut
121  0.0291 , # dPhiInCut
122  0.0101 , # full5x5_sigmaIEtaIEtaCut
123  0.0372 , # hOverECut
124  0.0144 , # dxyCut
125  0.323 , # dzCut
126  0.0174 , # absEInverseMinusPInverseCut
127  0.0468 , # relCombIsolationWithEALowPtCut
128  0.0468 , # relCombIsolationWithEAHighPtCut
129  # conversion veto cut needs no parameters, so not mentioned
130  2 # missingHitsCut
131  )
132 
133 WP_Tight_EE = EleWorkingPoint_V2(
134  idName , # idName
135  0.00762 , # dEtaInCut
136  0.0439 , # dPhiInCut
137  0.0287 , # full5x5_sigmaIEtaIEtaCut
138  0.0544 , # hOverECut
139  0.0377 , # dxyCut
140  0.571 , # dzCut
141  0.0100 , # absEInverseMinusPInverseCut
142  0.0759 , # relCombIsolationWithEALowPtCut
143  0.0759 , # relCombIsolationWithEAHighPtCut
144  # conversion veto cut needs no parameters, so not mentioned
145  1 # missingHitsCut
146  )
147 
148 # Second, define what effective areas to use for pile-up correction
149 isoInputs = IsolationCutInputs_V2(
150  # phoIsolationEffAreas
151  "RecoEgamma/ElectronIdentification/data/Spring15/effAreaElectrons_cone03_pfNeuHadronsAndPhotons_50ns.txt"
152 )
153 
154 
155 #
156 # Set up VID configuration for all cuts and working points
157 #
158 
159 cutBasedElectronID_Spring15_50ns_V1_standalone_veto = configureVIDCutBasedEleID_V2(WP_Veto_EB, WP_Veto_EE, isoInputs)
160 cutBasedElectronID_Spring15_50ns_V1_standalone_loose = configureVIDCutBasedEleID_V2(WP_Loose_EB, WP_Loose_EE, isoInputs)
161 cutBasedElectronID_Spring15_50ns_V1_standalone_medium = configureVIDCutBasedEleID_V2(WP_Medium_EB, WP_Medium_EE, isoInputs)
162 cutBasedElectronID_Spring15_50ns_V1_standalone_tight = configureVIDCutBasedEleID_V2(WP_Tight_EB, WP_Tight_EE, isoInputs)
163 
164 
165 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_veto.idName,
166  '1430580668994ed3805fc833c314354e')
167 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_loose.idName,
168  '73e5cdf3377e99aa208851339f4906b9')
169 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_medium.idName,
170  '2623f1f07173be98c3c3d6e6b69434a6')
171 central_id_registry.register(cutBasedElectronID_Spring15_50ns_V1_standalone_tight.idName,
172  '19b4ab8a58bda9c2e1b79b0694f6eee7')
173 
174 
175 # for now until we have a database...
176 cutBasedElectronID_Spring15_50ns_V1_standalone_veto.isPOGApproved = cms.untracked.bool(True)
177 cutBasedElectronID_Spring15_50ns_V1_standalone_loose.isPOGApproved = cms.untracked.bool(True)
178 cutBasedElectronID_Spring15_50ns_V1_standalone_medium.isPOGApproved = cms.untracked.bool(True)
179 cutBasedElectronID_Spring15_50ns_V1_standalone_tight.isPOGApproved = cms.untracked.bool(True)