CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
cutBasedElectronID_PHYS14_PU20bx25_V2_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 second of PHYS14 cuts, optimized on PHYS14 samples.
8 #
9 # The ID cuts below are optimized IDs for PHYS14 Scenario PU 20, bx 25ns
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/370494/contribution/2/material/slides/0.pdf
16 #
17 # First, define cut values
18 #
19 
20 # Veto working point Barrel and Endcap
21 idName = "cutBasedElectronID-PHYS14-PU20bx25-V2-standalone-veto"
22 WP_Veto_EB = EleWorkingPoint_V2(
23  idName , # idName
24  0.013625 , # dEtaInCut
25  0.230374 , # dPhiInCut
26  0.011586 , # full5x5_sigmaIEtaIEtaCut
27  0.181130 , # hOverECut
28  0.094095 , # dxyCut
29  0.713070 , # dzCut
30  0.295751 , # absEInverseMinusPInverseCut
31  0.158721 , # relCombIsolationWithEALowPtCut
32  0.158721 , # 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.011932 , # dEtaInCut
40  0.255450 , # dPhiInCut
41  0.031849 , # full5x5_sigmaIEtaIEtaCut
42  0.223870 , # hOverECut
43  0.342293 , # dxyCut
44  0.953461 , # dzCut
45  0.155501 , # absEInverseMinusPInverseCut
46  0.177032 , # relCombIsolationWithEALowPtCut
47  0.177032 , # 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-PHYS14-PU20bx25-V2-standalone-loose"
54 WP_Loose_EB = EleWorkingPoint_V2(
55  idName , # idName
56  0.009277 , # dEtaInCut
57  0.094739 , # dPhiInCut
58  0.010331 , # full5x5_sigmaIEtaIEtaCut
59  0.093068 , # hOverECut
60  0.035904 , # dxyCut
61  0.075496 , # dzCut
62  0.189968 , # absEInverseMinusPInverseCut
63  0.130136 , # relCombIsolationWithEALowPtCut
64  0.130136 , # relCombIsolationWithEAHighPtCut
65  # conversion veto cut needs no parameters, so not mentioned
66  1 # missingHitsCut
67  )
68 
69 WP_Loose_EE = EleWorkingPoint_V2(
70  idName , # idName
71  0.009833 , # dEtaInCut
72  0.149934 , # dPhiInCut
73  0.031838 , # full5x5_sigmaIEtaIEtaCut
74  0.115754 , # hOverECut
75  0.099266 , # dxyCut
76  0.197897 , # dzCut
77  0.140662 , # absEInverseMinusPInverseCut
78  0.163368 , # relCombIsolationWithEALowPtCut
79  0.163368 , # 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-PHYS14-PU20bx25-V2-standalone-medium"
86 WP_Medium_EB = EleWorkingPoint_V2(
87  idName , # idName
88  0.008925 , # dEtaInCut
89  0.035973 , # dPhiInCut
90  0.009996 , # full5x5_sigmaIEtaIEtaCut
91  0.050537 , # hOverECut
92  0.012235 , # dxyCut
93  0.042020 , # dzCut
94  0.091942 , # absEInverseMinusPInverseCut
95  0.107587 , # relCombIsolationWithEALowPtCut
96  0.107587 , # relCombIsolationWithEAHighPtCut
97  # conversion veto cut needs no parameters, so not mentioned
98  1 # missingHitsCut
99  )
100 
101 WP_Medium_EE = EleWorkingPoint_V2(
102  idName , # idName
103  0.007429 , # dEtaInCut
104  0.067879 , # dPhiInCut
105  0.030135 , # full5x5_sigmaIEtaIEtaCut
106  0.086782 , # hOverECut
107  0.036719 , # dxyCut
108  0.138142 , # dzCut
109  0.100683 , # absEInverseMinusPInverseCut
110  0.113254 , # relCombIsolationWithEALowPtCut
111  0.113254 , # 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-PHYS14-PU20bx25-V2-standalone-tight"
118 WP_Tight_EB = EleWorkingPoint_V2(
119  idName , # idName
120  0.006046 , # dEtaInCut
121  0.028092 , # dPhiInCut
122  0.009947 , # full5x5_sigmaIEtaIEtaCut
123  0.045772 , # hOverECut
124  0.008790 , # dxyCut
125  0.021226 , # dzCut
126  0.020118 , # absEInverseMinusPInverseCut
127  0.069537 , # relCombIsolationWithEALowPtCut
128  0.069537 , # relCombIsolationWithEAHighPtCut
129  # conversion veto cut needs no parameters, so not mentioned
130  1 # missingHitsCut
131  )
132 
133 WP_Tight_EE = EleWorkingPoint_V2(
134  idName , # idName
135  0.007057 , # dEtaInCut
136  0.030159 , # dPhiInCut
137  0.028237 , # full5x5_sigmaIEtaIEtaCut
138  0.067778 , # hOverECut
139  0.027984 , # dxyCut
140  0.133431 , # dzCut
141  0.098919 , # absEInverseMinusPInverseCut
142  0.078265 , # relCombIsolationWithEALowPtCut
143  0.078265 , # 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/PHYS14/effAreaElectrons_cone03_pfNeuHadronsAndPhotons.txt"
152 )
153 
154 
155 #
156 # Set up VID configuration for all cuts and working points
157 #
158 
159 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_veto = configureVIDCutBasedEleID_V2(WP_Veto_EB, WP_Veto_EE, isoInputs)
160 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_loose = configureVIDCutBasedEleID_V2(WP_Loose_EB, WP_Loose_EE, isoInputs)
161 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_medium = configureVIDCutBasedEleID_V2(WP_Medium_EB, WP_Medium_EE, isoInputs)
162 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_tight = configureVIDCutBasedEleID_V2(WP_Tight_EB, WP_Tight_EE, isoInputs)
163 
164 
165 central_id_registry.register(cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_veto.idName,
166  '1f322690ebc601ee190dd97f60371272')
167 central_id_registry.register(cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_loose.idName,
168  'fce6cef3a2c73849c527549af6a0dd86')
169 central_id_registry.register(cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_medium.idName,
170  'a8c98f61148e0d989e436a46497df86a')
171 central_id_registry.register(cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_tight.idName,
172  '26d5a314fe762b4927150f37a23d3e71')
173 
174 
175 # for now until we have a database...
176 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_veto.isPOGApproved = cms.untracked.bool(True)
177 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_loose.isPOGApproved = cms.untracked.bool(True)
178 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_medium.isPOGApproved = cms.untracked.bool(True)
179 cutBasedElectronID_PHYS14_PU20bx25_V2_standalone_tight.isPOGApproved = cms.untracked.bool(True)