CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions
ElectronEffectiveArea Class Reference

#include <ElectronEffectiveArea.h>

Public Types

enum  ElectronEffectiveAreaTarget {
  kEleEANoCorr, kEleEAData2011, kEleEASummer11MC, kEleEAFall11MC,
  kEleEAData2012
}
 
enum  ElectronEffectiveAreaType {
  kEleTrkIso03, kEleEcalIso03, kEleHcalIso03, kEleTrkIso04,
  kEleEcalIso04, kEleHcalIso04, kEleChargedIso03, kEleGammaIso03,
  kEleNeutralHadronIso03, kEleGammaAndNeutralHadronIso03, kEleChargedIso04, kEleGammaIso04,
  kEleNeutralHadronIso04, kEleGammaAndNeutralHadronIso04, kEleGammaIsoDR0p0To0p1, kEleGammaIsoDR0p1To0p2,
  kEleGammaIsoDR0p2To0p3, kEleGammaIsoDR0p3To0p4, kEleGammaIsoDR0p4To0p5, kEleNeutralHadronIsoDR0p0To0p1,
  kEleNeutralHadronIsoDR0p1To0p2, kEleNeutralHadronIsoDR0p2To0p3, kEleNeutralHadronIsoDR0p3To0p4, kEleNeutralHadronIsoDR0p4To0p5
}
 

Public Member Functions

 ElectronEffectiveArea ()
 
 ~ElectronEffectiveArea ()
 

Static Public Member Functions

static Double_t GetElectronEffectiveArea (ElectronEffectiveAreaType type, Double_t SCEta, ElectronEffectiveAreaTarget EffectiveAreaTarget=kEleEAData2011)
 

Detailed Description

--> NOTE if you want to use this class as standalone without the CMSSW part you need to uncomment the below line and compile normally with scramv1 b Then you need just to load it in your root macro the lib with the correct path

Definition at line 25 of file ElectronEffectiveArea.h.

Member Enumeration Documentation

◆ ElectronEffectiveAreaTarget

Enumerator
kEleEANoCorr 
kEleEAData2011 
kEleEASummer11MC 
kEleEAFall11MC 
kEleEAData2012 

Definition at line 57 of file ElectronEffectiveArea.h.

◆ ElectronEffectiveAreaType

Enumerator
kEleTrkIso03 
kEleEcalIso03 
kEleHcalIso03 
kEleTrkIso04 
kEleEcalIso04 
kEleHcalIso04 
kEleChargedIso03 
kEleGammaIso03 
kEleNeutralHadronIso03 
kEleGammaAndNeutralHadronIso03 
kEleChargedIso04 
kEleGammaIso04 
kEleNeutralHadronIso04 
kEleGammaAndNeutralHadronIso04 
kEleGammaIsoDR0p0To0p1 
kEleGammaIsoDR0p1To0p2 
kEleGammaIsoDR0p2To0p3 
kEleGammaIsoDR0p3To0p4 
kEleGammaIsoDR0p4To0p5 
kEleNeutralHadronIsoDR0p0To0p1 
kEleNeutralHadronIsoDR0p1To0p2 
kEleNeutralHadronIsoDR0p2To0p3 
kEleNeutralHadronIsoDR0p3To0p4 
kEleNeutralHadronIsoDR0p4To0p5 

Definition at line 30 of file ElectronEffectiveArea.h.

Constructor & Destructor Documentation

◆ ElectronEffectiveArea()

ElectronEffectiveArea::ElectronEffectiveArea ( )

◆ ~ElectronEffectiveArea()

ElectronEffectiveArea::~ElectronEffectiveArea ( )

Member Function Documentation

◆ GetElectronEffectiveArea()

static Double_t ElectronEffectiveArea::GetElectronEffectiveArea ( ElectronEffectiveAreaType  type,
Double_t  SCEta,
ElectronEffectiveAreaTarget  EffectiveAreaTarget = kEleEAData2011 
)
inlinestatic

Definition at line 59 of file ElectronEffectiveArea.h.

61  {
62  Double_t EffectiveArea = 0;
63 
65  return 0.0;
66  }
67 
68  //2012 Data Effective Areas
69  else if (EffectiveAreaTarget == kEleEAData2012) {
70  if (type == kEleGammaIso03) { // HCP 2012 updated
71  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
72  EffectiveArea = 0.117;
73  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
74  EffectiveArea = 0.114;
75  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
76  EffectiveArea = 0.049;
77  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
78  EffectiveArea = 0.077;
79  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
80  EffectiveArea = 0.089;
81  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
82  EffectiveArea = 0.083;
83  if (fabs(SCEta) >= 2.4)
84  EffectiveArea = 0.099;
85  }
86  if (type == kEleGammaIso04) { // HCP 2012 updated
87  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
88  EffectiveArea = 0.182;
89  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
90  EffectiveArea = 0.168;
91  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
92  EffectiveArea = 0.081;
93  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.2)
94  EffectiveArea = 0.116;
95  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.3)
96  EffectiveArea = 0.144;
97  if (fabs(SCEta) >= 2.4 && fabs(SCEta) < 2.4)
98  EffectiveArea = 0.143;
99  if (fabs(SCEta) >= 2.4)
100  EffectiveArea = 0.164;
101  }
102  if (type == kEleNeutralHadronIso03) { // HCP 2012 updated
103  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
104  EffectiveArea = 0.014;
105  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
106  EffectiveArea = 0.023;
107  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
108  EffectiveArea = 0.019;
109  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
110  EffectiveArea = 0.012;
111  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
112  EffectiveArea = 0.018;
113  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
114  EffectiveArea = 0.028;
115  if (fabs(SCEta) >= 2.4)
116  EffectiveArea = 0.039;
117  }
118  if (type == kEleNeutralHadronIso04) { // HCP 2012 updated
119  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
120  EffectiveArea = 0.026;
121  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
122  EffectiveArea = 0.040;
123  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
124  EffectiveArea = 0.034;
125  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
126  EffectiveArea = 0.027;
127  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
128  EffectiveArea = 0.039;
129  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
130  EffectiveArea = 0.051;
131  if (fabs(SCEta) >= 2.4)
132  EffectiveArea = 0.096;
133  }
134  if (type == kEleGammaAndNeutralHadronIso03) { // HCP 2012 updated
135  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
136  EffectiveArea = 0.130;
137  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
138  EffectiveArea = 0.137;
139  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
140  EffectiveArea = 0.067;
141  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
142  EffectiveArea = 0.089;
143  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
144  EffectiveArea = 0.107;
145  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
146  EffectiveArea = 0.110;
147  if (fabs(SCEta) >= 2.4)
148  EffectiveArea = 0.138;
149  }
150  if (type == kEleGammaAndNeutralHadronIso04) { // HCP 2012 updated
151  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
152  EffectiveArea = 0.208;
153  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
154  EffectiveArea = 0.209;
155  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
156  EffectiveArea = 0.115;
157  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
158  EffectiveArea = 0.143;
159  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
160  EffectiveArea = 0.183;
161  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
162  EffectiveArea = 0.194;
163  if (fabs(SCEta) >= 2.4)
164  EffectiveArea = 0.261;
165  }
166  if (type == kEleGammaIsoDR0p0To0p1) {
167  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
168  EffectiveArea = 0.082;
169  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
170  EffectiveArea = 0.106;
171  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
172  EffectiveArea = 0.029;
173  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
174  EffectiveArea = 0.057;
175  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
176  EffectiveArea = 0.059;
177  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
178  EffectiveArea = 0.075;
179  if (fabs(SCEta) >= 2.4)
180  EffectiveArea = 0.068;
181  }
183  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
184  EffectiveArea = 0.010;
185  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
186  EffectiveArea = 0.011;
187  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
188  EffectiveArea = 0.007;
189  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
190  EffectiveArea = 0.003;
191  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
192  EffectiveArea = 0.004;
193  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
194  EffectiveArea = 0.007;
195  if (fabs(SCEta) >= 2.4)
196  EffectiveArea = 0.002;
197  }
198  if (type == kEleGammaIsoDR0p1To0p2) {
199  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
200  EffectiveArea = 0.030;
201  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
202  EffectiveArea = 0.028;
203  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
204  EffectiveArea = 0.023;
205  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
206  EffectiveArea = 0.052;
207  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
208  EffectiveArea = 0.057;
209  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
210  EffectiveArea = 0.063;
211  if (fabs(SCEta) >= 2.4)
212  EffectiveArea = 0.007;
213  }
215  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
216  EffectiveArea = 0.006;
217  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
218  EffectiveArea = 0.008;
219  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
220  EffectiveArea = 0.006;
221  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
222  EffectiveArea = 0.003;
223  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
224  EffectiveArea = 0.004;
225  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
226  EffectiveArea = 0.006;
227  if (fabs(SCEta) >= 2.4)
228  EffectiveArea = 0.002;
229  }
230  if (type == kEleGammaIsoDR0p2To0p3) {
231  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
232  EffectiveArea = 0.043;
233  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
234  EffectiveArea = 0.039;
235  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
236  EffectiveArea = 0.027;
237  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
238  EffectiveArea = 0.050;
239  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
240  EffectiveArea = 0.076;
241  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
242  EffectiveArea = 0.133;
243  if (fabs(SCEta) >= 2.4)
244  EffectiveArea = 0.129;
245  }
247  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
248  EffectiveArea = 0.008;
249  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
250  EffectiveArea = 0.011;
251  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
252  EffectiveArea = 0.007;
253  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
254  EffectiveArea = 0.008;
255  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
256  EffectiveArea = 0.017;
257  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
258  EffectiveArea = 0.004;
259  if (fabs(SCEta) >= 2.4)
260  EffectiveArea = 0.013;
261  }
262  if (type == kEleGammaIsoDR0p3To0p4) {
263  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
264  EffectiveArea = 0.063;
265  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
266  EffectiveArea = 0.052;
267  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
268  EffectiveArea = 0.038;
269  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
270  EffectiveArea = 0.070;
271  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
272  EffectiveArea = 0.092;
273  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
274  EffectiveArea = 0.121;
275  if (fabs(SCEta) >= 2.4)
276  EffectiveArea = 0.138;
277  }
279  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
280  EffectiveArea = 0.011;
281  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
282  EffectiveArea = 0.016;
283  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
284  EffectiveArea = 0.011;
285  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
286  EffectiveArea = 0.013;
287  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
288  EffectiveArea = 0.022;
289  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
290  EffectiveArea = 0.031;
291  if (fabs(SCEta) >= 2.4)
292  EffectiveArea = 0.007;
293  }
294  if (type == kEleGammaIsoDR0p4To0p5) {
295  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
296  EffectiveArea = 0.083;
297  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
298  EffectiveArea = 0.068;
299  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
300  EffectiveArea = 0.054;
301  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
302  EffectiveArea = 0.090;
303  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
304  EffectiveArea = 0.119;
305  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
306  EffectiveArea = 0.142;
307  if (fabs(SCEta) >= 2.4)
308  EffectiveArea = 0.123;
309  }
311  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
312  EffectiveArea = 0.014;
313  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
314  EffectiveArea = 0.021;
315  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
316  EffectiveArea = 0.020;
317  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
318  EffectiveArea = 0.019;
319  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
320  EffectiveArea = 0.038;
321  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
322  EffectiveArea = 0.084;
323  if (fabs(SCEta) >= 2.4)
324  EffectiveArea = 0.030;
325  }
326  }
327 
328  //2011 Data Effective Areas
329  else if (EffectiveAreaTarget == kEleEAData2011) {
330  if (type == kEleGammaIso03) {
331  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
332  EffectiveArea = 0.081;
333  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
334  EffectiveArea = 0.084;
335  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
336  EffectiveArea = 0.048;
337  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
338  EffectiveArea = 0.089;
339  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
340  EffectiveArea = 0.092;
341  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
342  EffectiveArea = 0.097;
343  if (fabs(SCEta) >= 2.4)
344  EffectiveArea = 0.110;
345  }
346  if (type == kEleGammaIso04) {
347  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
348  EffectiveArea = 0.140;
349  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
350  EffectiveArea = 0.130;
351  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
352  EffectiveArea = 0.079;
353  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
354  EffectiveArea = 0.130;
355  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
356  EffectiveArea = 0.150;
357  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
358  EffectiveArea = 0.160;
359  if (fabs(SCEta) >= 2.4)
360  EffectiveArea = 0.180;
361  }
362  if (type == kEleNeutralHadronIso03) {
363  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
364  EffectiveArea = 0.024;
365  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
366  EffectiveArea = 0.037;
367  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
368  EffectiveArea = 0.037;
369  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
370  EffectiveArea = 0.023;
371  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
372  EffectiveArea = 0.023;
373  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
374  EffectiveArea = 0.021;
375  if (fabs(SCEta) >= 2.4)
376  EffectiveArea = 0.021;
377  }
378  if (type == kEleNeutralHadronIso04) {
379  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
380  EffectiveArea = 0.044;
381  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
382  EffectiveArea = 0.065;
383  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
384  EffectiveArea = 0.068;
385  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
386  EffectiveArea = 0.057;
387  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
388  EffectiveArea = 0.058;
389  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
390  EffectiveArea = 0.061;
391  if (fabs(SCEta) >= 2.4)
392  EffectiveArea = 0.110;
393  }
395  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
396  EffectiveArea = 0.100;
397  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
398  EffectiveArea = 0.120;
399  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
400  EffectiveArea = 0.085;
401  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
402  EffectiveArea = 0.110;
403  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
404  EffectiveArea = 0.120;
405  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
406  EffectiveArea = 0.120;
407  if (fabs(SCEta) >= 2.4)
408  EffectiveArea = 0.130;
409  }
411  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
412  EffectiveArea = 0.180;
413  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
414  EffectiveArea = 0.200;
415  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
416  EffectiveArea = 0.150;
417  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
418  EffectiveArea = 0.190;
419  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
420  EffectiveArea = 0.210;
421  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
422  EffectiveArea = 0.220;
423  if (fabs(SCEta) >= 2.4)
424  EffectiveArea = 0.290;
425  }
426  if (type == kEleGammaIsoDR0p0To0p1) {
427  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
428  EffectiveArea = 0.017;
429  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
430  EffectiveArea = 0.033;
431  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
432  EffectiveArea = 0.005;
433  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
434  EffectiveArea = 0.007;
435  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
436  EffectiveArea = 0.004;
437  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
438  EffectiveArea = 0.000;
439  if (fabs(SCEta) >= 2.4)
440  EffectiveArea = 0.000;
441  }
442  if (type == kEleGammaIsoDR0p1To0p2) {
443  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
444  EffectiveArea = 0.010;
445  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
446  EffectiveArea = 0.010;
447  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
448  EffectiveArea = 0.019;
449  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
450  EffectiveArea = 0.042;
451  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
452  EffectiveArea = 0.041;
453  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
454  EffectiveArea = 0.035;
455  if (fabs(SCEta) >= 2.4)
456  EffectiveArea = 0.041;
457  }
458  if (type == kEleGammaIsoDR0p2To0p3) {
459  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
460  EffectiveArea = 0.020;
461  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
462  EffectiveArea = 0.017;
463  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
464  EffectiveArea = 0.014;
465  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
466  EffectiveArea = 0.029;
467  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
468  EffectiveArea = 0.039;
469  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
470  EffectiveArea = 0.042;
471  if (fabs(SCEta) >= 2.4)
472  EffectiveArea = 0.048;
473  }
474  if (type == kEleGammaIsoDR0p3To0p4) {
475  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
476  EffectiveArea = 0.036;
477  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
478  EffectiveArea = 0.029;
479  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
480  EffectiveArea = 0.020;
481  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
482  EffectiveArea = 0.029;
483  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
484  EffectiveArea = 0.042;
485  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
486  EffectiveArea = 0.047;
487  if (fabs(SCEta) >= 2.4)
488  EffectiveArea = 0.054;
489  }
490  if (type == kEleGammaIsoDR0p4To0p5) {
491  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
492  EffectiveArea = 0.051;
493  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
494  EffectiveArea = 0.038;
495  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
496  EffectiveArea = 0.028;
497  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
498  EffectiveArea = 0.036;
499  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
500  EffectiveArea = 0.047;
501  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
502  EffectiveArea = 0.057;
503  if (fabs(SCEta) >= 2.4)
504  EffectiveArea = 0.059;
505  }
507  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
508  EffectiveArea = 0.001;
509  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
510  EffectiveArea = 0.002;
511  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
512  EffectiveArea = 0.002;
513  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
514  EffectiveArea = 0.000;
515  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
516  EffectiveArea = 0.000;
517  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
518  EffectiveArea = 0.000;
519  if (fabs(SCEta) >= 2.4)
520  EffectiveArea = 0.000;
521  }
523  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
524  EffectiveArea = 0.005;
525  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
526  EffectiveArea = 0.008;
527  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
528  EffectiveArea = 0.008;
529  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
530  EffectiveArea = 0.006;
531  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
532  EffectiveArea = 0.003;
533  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
534  EffectiveArea = 0.001;
535  if (fabs(SCEta) >= 2.4)
536  EffectiveArea = 0.003;
537  }
539  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
540  EffectiveArea = 0.010;
541  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
542  EffectiveArea = 0.014;
543  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
544  EffectiveArea = 0.017;
545  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
546  EffectiveArea = 0.016;
547  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
548  EffectiveArea = 0.016;
549  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
550  EffectiveArea = 0.016;
551  if (fabs(SCEta) >= 2.4)
552  EffectiveArea = 0.019;
553  }
555  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
556  EffectiveArea = 0.015;
557  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
558  EffectiveArea = 0.021;
559  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
560  EffectiveArea = 0.025;
561  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
562  EffectiveArea = 0.030;
563  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
564  EffectiveArea = 0.036;
565  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
566  EffectiveArea = 0.038;
567  if (fabs(SCEta) >= 2.4)
568  EffectiveArea = 0.084;
569  }
571  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
572  EffectiveArea = 0.020;
573  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
574  EffectiveArea = 0.027;
575  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
576  EffectiveArea = 0.035;
577  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
578  EffectiveArea = 0.045;
579  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
580  EffectiveArea = 0.051;
581  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
582  EffectiveArea = 0.107;
583  if (fabs(SCEta) >= 2.4)
584  EffectiveArea = 0.228;
585  }
586  }
587 
588  //Summer11 MC Effective Areas
590  //************************************************************************
591  //The next 6 effective areas are taken from the Data measurement, because
592  //the calculation from Summer11 was not done.
593  //************************************************************************
594  if (type == kEleGammaIso03) {
595  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
596  EffectiveArea = 0.081;
597  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
598  EffectiveArea = 0.084;
599  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
600  EffectiveArea = 0.048;
601  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
602  EffectiveArea = 0.089;
603  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
604  EffectiveArea = 0.092;
605  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
606  EffectiveArea = 0.097;
607  if (fabs(SCEta) >= 2.4)
608  EffectiveArea = 0.110;
609  }
610  if (type == kEleGammaIso04) {
611  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
612  EffectiveArea = 0.140;
613  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
614  EffectiveArea = 0.130;
615  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
616  EffectiveArea = 0.079;
617  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
618  EffectiveArea = 0.130;
619  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
620  EffectiveArea = 0.150;
621  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
622  EffectiveArea = 0.160;
623  if (fabs(SCEta) >= 2.4)
624  EffectiveArea = 0.180;
625  }
626  if (type == kEleNeutralHadronIso03) {
627  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
628  EffectiveArea = 0.024;
629  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
630  EffectiveArea = 0.037;
631  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
632  EffectiveArea = 0.037;
633  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
634  EffectiveArea = 0.023;
635  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
636  EffectiveArea = 0.023;
637  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
638  EffectiveArea = 0.021;
639  if (fabs(SCEta) >= 2.4)
640  EffectiveArea = 0.021;
641  }
642  if (type == kEleNeutralHadronIso04) {
643  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
644  EffectiveArea = 0.044;
645  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
646  EffectiveArea = 0.065;
647  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
648  EffectiveArea = 0.068;
649  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
650  EffectiveArea = 0.057;
651  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
652  EffectiveArea = 0.058;
653  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
654  EffectiveArea = 0.061;
655  if (fabs(SCEta) >= 2.4)
656  EffectiveArea = 0.110;
657  }
659  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
660  EffectiveArea = 0.100;
661  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
662  EffectiveArea = 0.120;
663  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
664  EffectiveArea = 0.085;
665  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
666  EffectiveArea = 0.110;
667  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
668  EffectiveArea = 0.120;
669  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
670  EffectiveArea = 0.120;
671  if (fabs(SCEta) >= 2.4)
672  EffectiveArea = 0.130;
673  }
675  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
676  EffectiveArea = 0.180;
677  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
678  EffectiveArea = 0.200;
679  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
680  EffectiveArea = 0.150;
681  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
682  EffectiveArea = 0.190;
683  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
684  EffectiveArea = 0.210;
685  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
686  EffectiveArea = 0.220;
687  if (fabs(SCEta) >= 2.4)
688  EffectiveArea = 0.290;
689  }
690 
691  //************************************************************************
692  //The following effective areas are from Summer11 MC
693  //************************************************************************
694  if (type == kEleGammaIsoDR0p0To0p1) {
695  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
696  EffectiveArea = 0.015;
697  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
698  EffectiveArea = 0.030;
699  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
700  EffectiveArea = 0.004;
701  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
702  EffectiveArea = 0.010;
703  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
704  EffectiveArea = 0.014;
705  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
706  EffectiveArea = 0.024;
707  if (fabs(SCEta) >= 2.4)
708  EffectiveArea = 0.023;
709  }
710  if (type == kEleGammaIsoDR0p1To0p2) {
711  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
712  EffectiveArea = 0.012;
713  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
714  EffectiveArea = 0.010;
715  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
716  EffectiveArea = 0.009;
717  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
718  EffectiveArea = 0.037;
719  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
720  EffectiveArea = 0.046;
721  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
722  EffectiveArea = 0.055;
723  if (fabs(SCEta) >= 2.4)
724  EffectiveArea = 0.046;
725  }
726  if (type == kEleGammaIsoDR0p2To0p3) {
727  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
728  EffectiveArea = 0.021;
729  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
730  EffectiveArea = 0.018;
731  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
732  EffectiveArea = 0.013;
733  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
734  EffectiveArea = 0.026;
735  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
736  EffectiveArea = 0.038;
737  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
738  EffectiveArea = 0.045;
739  if (fabs(SCEta) >= 2.4)
740  EffectiveArea = 0.059;
741  }
742  if (type == kEleGammaIsoDR0p3To0p4) {
743  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
744  EffectiveArea = 0.036;
745  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
746  EffectiveArea = 0.030;
747  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
748  EffectiveArea = 0.017;
749  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
750  EffectiveArea = 0.036;
751  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
752  EffectiveArea = 0.058;
753  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
754  EffectiveArea = 0.073;
755  if (fabs(SCEta) >= 2.4)
756  EffectiveArea = 0.083;
757  }
758  if (type == kEleGammaIsoDR0p4To0p5) {
759  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
760  EffectiveArea = 0.053;
761  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
762  EffectiveArea = 0.037;
763  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
764  EffectiveArea = 0.032;
765  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
766  EffectiveArea = 0.048;
767  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
768  EffectiveArea = 0.062;
769  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
770  EffectiveArea = 0.085;
771  if (fabs(SCEta) >= 2.4)
772  EffectiveArea = 0.118;
773  }
775  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
776  EffectiveArea = 0.000;
777  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
778  EffectiveArea = 0.000;
779  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
780  EffectiveArea = 0.000;
781  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
782  EffectiveArea = 0.000;
783  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
784  EffectiveArea = 0.000;
785  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
786  EffectiveArea = 0.000;
787  if (fabs(SCEta) >= 2.4)
788  EffectiveArea = 0.000;
789  }
791  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
792  EffectiveArea = 0.004;
793  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
794  EffectiveArea = 0.007;
795  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
796  EffectiveArea = 0.009;
797  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
798  EffectiveArea = 0.004;
799  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
800  EffectiveArea = 0.003;
801  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
802  EffectiveArea = 0.000;
803  if (fabs(SCEta) >= 2.4)
804  EffectiveArea = 0.004;
805  }
807  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
808  EffectiveArea = 0.008;
809  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
810  EffectiveArea = 0.013;
811  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
812  EffectiveArea = 0.016;
813  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
814  EffectiveArea = 0.013;
815  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
816  EffectiveArea = 0.014;
817  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
818  EffectiveArea = 0.016;
819  if (fabs(SCEta) >= 2.4)
820  EffectiveArea = 0.021;
821  }
823  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
824  EffectiveArea = 0.012;
825  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
826  EffectiveArea = 0.017;
827  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
828  EffectiveArea = 0.020;
829  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
830  EffectiveArea = 0.024;
831  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
832  EffectiveArea = 0.040;
833  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
834  EffectiveArea = 0.036;
835  if (fabs(SCEta) >= 2.4)
836  EffectiveArea = 0.086;
837  }
839  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
840  EffectiveArea = 0.016;
841  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
842  EffectiveArea = 0.026;
843  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
844  EffectiveArea = 0.030;
845  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
846  EffectiveArea = 0.038;
847  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
848  EffectiveArea = 0.051;
849  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
850  EffectiveArea = 0.105;
851  if (fabs(SCEta) >= 2.4)
852  EffectiveArea = 0.169;
853  }
854  }
855 
856  //Fall11 MC Effective Areas
857  else if (EffectiveAreaTarget == kEleEAFall11MC) {
858  if (type == kEleGammaIso03) {
859  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
860  EffectiveArea = 0.084;
861  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
862  EffectiveArea = 0.090;
863  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
864  EffectiveArea = 0.049;
865  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
866  EffectiveArea = 0.099;
867  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
868  EffectiveArea = 0.122;
869  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
870  EffectiveArea = 0.132;
871  if (fabs(SCEta) >= 2.4)
872  EffectiveArea = 0.155;
873  }
874  if (type == kEleGammaIso04) {
875  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
876  EffectiveArea = 0.140;
877  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
878  EffectiveArea = 0.140;
879  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
880  EffectiveArea = 0.084;
881  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
882  EffectiveArea = 0.150;
883  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
884  EffectiveArea = 0.200;
885  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
886  EffectiveArea = 0.220;
887  if (fabs(SCEta) >= 2.4)
888  EffectiveArea = 0.260;
889  }
890  if (type == kEleNeutralHadronIso03) {
891  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
892  EffectiveArea = 0.022;
893  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
894  EffectiveArea = 0.039;
895  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
896  EffectiveArea = 0.040;
897  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
898  EffectiveArea = 0.028;
899  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
900  EffectiveArea = 0.027;
901  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
902  EffectiveArea = 0.024;
903  if (fabs(SCEta) >= 2.4)
904  EffectiveArea = 0.030;
905  }
906  if (type == kEleNeutralHadronIso04) {
907  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
908  EffectiveArea = 0.041;
909  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
910  EffectiveArea = 0.068;
911  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
912  EffectiveArea = 0.075;
913  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
914  EffectiveArea = 0.068;
915  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
916  EffectiveArea = 0.072;
917  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
918  EffectiveArea = 0.077;
919  if (fabs(SCEta) >= 2.4)
920  EffectiveArea = 0.140;
921  }
923  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
924  EffectiveArea = 0.110;
925  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
926  EffectiveArea = 0.130;
927  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
928  EffectiveArea = 0.089;
929  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
930  EffectiveArea = 0.130;
931  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
932  EffectiveArea = 0.150;
933  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
934  EffectiveArea = 0.160;
935  if (fabs(SCEta) >= 2.4)
936  EffectiveArea = 0.190;
937  }
939  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
940  EffectiveArea = 0.180;
941  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
942  EffectiveArea = 0.210;
943  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
944  EffectiveArea = 0.160;
945  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
946  EffectiveArea = 0.220;
947  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
948  EffectiveArea = 0.270;
949  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
950  EffectiveArea = 0.300;
951  if (fabs(SCEta) >= 2.4)
952  EffectiveArea = 0.410;
953  }
954  if (type == kEleGammaIsoDR0p0To0p1) {
955  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
956  EffectiveArea = 0.014;
957  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
958  EffectiveArea = 0.020;
959  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
960  EffectiveArea = 0.004;
961  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
962  EffectiveArea = 0.012;
963  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
964  EffectiveArea = 0.016;
965  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
966  EffectiveArea = 0.021;
967  if (fabs(SCEta) >= 2.4)
968  EffectiveArea = 0.012;
969  }
970  if (type == kEleGammaIsoDR0p1To0p2) {
971  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
972  EffectiveArea = 0.012;
973  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
974  EffectiveArea = 0.011;
975  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
976  EffectiveArea = 0.015;
977  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
978  EffectiveArea = 0.042;
979  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
980  EffectiveArea = 0.055;
981  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
982  EffectiveArea = 0.068;
983  if (fabs(SCEta) >= 2.4)
984  EffectiveArea = 0.067;
985  }
986  if (type == kEleGammaIsoDR0p2To0p3) {
987  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
988  EffectiveArea = 0.024;
989  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
990  EffectiveArea = 0.020;
991  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
992  EffectiveArea = 0.017;
993  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
994  EffectiveArea = 0.038;
995  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
996  EffectiveArea = 0.051;
997  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
998  EffectiveArea = 0.066;
999  if (fabs(SCEta) >= 2.4)
1000  EffectiveArea = 0.080;
1001  }
1002  if (type == kEleGammaIsoDR0p3To0p4) {
1003  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
1004  EffectiveArea = 0.040;
1005  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
1006  EffectiveArea = 0.032;
1007  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
1008  EffectiveArea = 0.021;
1009  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
1010  EffectiveArea = 0.047;
1011  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
1012  EffectiveArea = 0.066;
1013  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
1014  EffectiveArea = 0.083;
1015  if (fabs(SCEta) >= 2.4)
1016  EffectiveArea = 0.123;
1017  }
1018  if (type == kEleGammaIsoDR0p4To0p5) {
1019  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
1020  EffectiveArea = 0.059;
1021  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
1022  EffectiveArea = 0.041;
1023  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
1024  EffectiveArea = 0.037;
1025  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
1026  EffectiveArea = 0.057;
1027  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
1028  EffectiveArea = 0.095;
1029  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
1030  EffectiveArea = 0.123;
1031  if (fabs(SCEta) >= 2.4)
1032  EffectiveArea = 0.133;
1033  }
1035  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
1036  EffectiveArea = 0.002;
1037  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
1038  EffectiveArea = 0.003;
1039  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
1040  EffectiveArea = 0.000;
1041  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
1042  EffectiveArea = 0.000;
1043  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
1044  EffectiveArea = 0.000;
1045  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
1046  EffectiveArea = 0.000;
1047  if (fabs(SCEta) >= 2.4)
1048  EffectiveArea = 0.000;
1049  }
1051  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
1052  EffectiveArea = 0.006;
1053  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
1054  EffectiveArea = 0.008;
1055  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
1056  EffectiveArea = 0.010;
1057  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
1058  EffectiveArea = 0.006;
1059  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
1060  EffectiveArea = 0.005;
1061  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
1062  EffectiveArea = 0.002;
1063  if (fabs(SCEta) >= 2.4)
1064  EffectiveArea = 0.007;
1065  }
1067  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
1068  EffectiveArea = 0.009;
1069  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
1070  EffectiveArea = 0.014;
1071  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
1072  EffectiveArea = 0.018;
1073  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
1074  EffectiveArea = 0.016;
1075  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
1076  EffectiveArea = 0.017;
1077  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
1078  EffectiveArea = 0.020;
1079  if (fabs(SCEta) >= 2.4)
1080  EffectiveArea = 0.021;
1081  }
1083  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
1084  EffectiveArea = 0.013;
1085  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
1086  EffectiveArea = 0.019;
1087  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
1088  EffectiveArea = 0.027;
1089  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
1090  EffectiveArea = 0.035;
1091  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
1092  EffectiveArea = 0.037;
1093  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
1094  EffectiveArea = 0.043;
1095  if (fabs(SCEta) >= 2.4)
1096  EffectiveArea = 0.110;
1097  }
1099  if (fabs(SCEta) >= 0.0 && fabs(SCEta) < 1.0)
1100  EffectiveArea = 0.017;
1101  if (fabs(SCEta) >= 1.0 && fabs(SCEta) < 1.479)
1102  EffectiveArea = 0.027;
1103  if (fabs(SCEta) >= 1.479 && fabs(SCEta) < 2.0)
1104  EffectiveArea = 0.036;
1105  if (fabs(SCEta) >= 2.0 && fabs(SCEta) < 2.2)
1106  EffectiveArea = 0.045;
1107  if (fabs(SCEta) >= 2.2 && fabs(SCEta) < 2.3)
1108  EffectiveArea = 0.057;
1109  if (fabs(SCEta) >= 2.3 && fabs(SCEta) < 2.4)
1110  EffectiveArea = 0.123;
1111  if (fabs(SCEta) >= 2.4)
1112  EffectiveArea = 0.220;
1113  }
1114  }
1115  return EffectiveArea;
1116  }

References electronIsolatorFromEffectiveArea_cfi::EffectiveAreaTarget, kEleEAData2011, kEleEAData2012, kEleEAFall11MC, kEleEANoCorr, kEleEASummer11MC, kEleGammaAndNeutralHadronIso03, kEleGammaAndNeutralHadronIso04, kEleGammaIso03, kEleGammaIso04, kEleGammaIsoDR0p0To0p1, kEleGammaIsoDR0p1To0p2, kEleGammaIsoDR0p2To0p3, kEleGammaIsoDR0p3To0p4, kEleGammaIsoDR0p4To0p5, kEleNeutralHadronIso03, kEleNeutralHadronIso04, kEleNeutralHadronIsoDR0p0To0p1, kEleNeutralHadronIsoDR0p1To0p2, kEleNeutralHadronIsoDR0p2To0p3, kEleNeutralHadronIsoDR0p3To0p4, and kEleNeutralHadronIsoDR0p4To0p5.

Referenced by ElectronIsolatorFromEffectiveArea::filter(), EGammaMvaEleEstimator::IDIsoCombinedMvaValue(), EGammaMvaEleEstimator::isoMvaValue(), and EgammaCutBasedEleId::TestWP().

ElectronEffectiveArea::kEleGammaIsoDR0p1To0p2
Definition: ElectronEffectiveArea.h:46
ElectronEffectiveArea::kEleNeutralHadronIsoDR0p3To0p4
Definition: ElectronEffectiveArea.h:53
ElectronEffectiveArea::kEleChargedIso03
Definition: ElectronEffectiveArea.h:37
ElectronEffectiveArea::kEleGammaIso04
Definition: ElectronEffectiveArea.h:42
ElectronEffectiveArea::kEleGammaAndNeutralHadronIso03
Definition: ElectronEffectiveArea.h:40
ElectronEffectiveArea::kEleGammaIsoDR0p4To0p5
Definition: ElectronEffectiveArea.h:49
ElectronEffectiveArea::kEleTrkIso04
Definition: ElectronEffectiveArea.h:34
ElectronEffectiveArea::kEleNeutralHadronIsoDR0p2To0p3
Definition: ElectronEffectiveArea.h:52
electronIsolatorFromEffectiveArea_cfi.EffectiveAreaTarget
EffectiveAreaTarget
Definition: electronIsolatorFromEffectiveArea_cfi.py:8
ElectronEffectiveArea::kEleHcalIso03
Definition: ElectronEffectiveArea.h:33
ElectronEffectiveArea::kEleGammaIsoDR0p3To0p4
Definition: ElectronEffectiveArea.h:48
ElectronEffectiveArea::kEleNeutralHadronIso03
Definition: ElectronEffectiveArea.h:39
ElectronEffectiveArea::kEleHcalIso04
Definition: ElectronEffectiveArea.h:36
ElectronEffectiveArea::kEleEANoCorr
Definition: ElectronEffectiveArea.h:57
ElectronEffectiveArea::kEleGammaIsoDR0p2To0p3
Definition: ElectronEffectiveArea.h:47
ElectronEffectiveArea::kEleTrkIso03
Definition: ElectronEffectiveArea.h:31
ElectronEffectiveArea::kEleNeutralHadronIsoDR0p1To0p2
Definition: ElectronEffectiveArea.h:51
ElectronEffectiveArea::kEleGammaAndNeutralHadronIso04
Definition: ElectronEffectiveArea.h:44
ElectronEffectiveArea::kEleEAFall11MC
Definition: ElectronEffectiveArea.h:57
ElectronEffectiveArea::kEleGammaIsoDR0p0To0p1
Definition: ElectronEffectiveArea.h:45
ElectronEffectiveArea::kEleGammaIso03
Definition: ElectronEffectiveArea.h:38
ElectronEffectiveArea::kEleNeutralHadronIso04
Definition: ElectronEffectiveArea.h:43
ElectronEffectiveArea::kEleEASummer11MC
Definition: ElectronEffectiveArea.h:57
type
type
Definition: HCALResponse.h:21
ElectronEffectiveArea::kEleNeutralHadronIsoDR0p4To0p5
Definition: ElectronEffectiveArea.h:54
ElectronEffectiveArea::kEleNeutralHadronIsoDR0p0To0p1
Definition: ElectronEffectiveArea.h:50
ElectronEffectiveArea::kEleEcalIso04
Definition: ElectronEffectiveArea.h:35
ElectronEffectiveArea::kEleEAData2011
Definition: ElectronEffectiveArea.h:57
ElectronEffectiveArea::kEleEcalIso03
Definition: ElectronEffectiveArea.h:32
ElectronEffectiveArea::kEleChargedIso04
Definition: ElectronEffectiveArea.h:41
ElectronEffectiveArea::kEleEAData2012
Definition: ElectronEffectiveArea.h:57