296 |
|
return SF; |
297 |
|
} |
298 |
|
|
299 |
< |
double mueEff(int Vtype){ |
300 |
< |
if (Vtype == 0) return 1.087; |
301 |
< |
if (Vtype == 1) return 0.974; |
299 |
> |
double mueEff(int Vtype, double eta0, double eta1, double pt0, double pt1){ |
300 |
> |
if (Vtype == 0) return 1.; |
301 |
> |
if (Vtype == 1) { |
302 |
> |
double corr = 1.0; |
303 |
> |
if (abs(eta0) < 1.3) corr*=0.95; |
304 |
> |
if (abs(eta1) < 1.3) corr*=0.95; |
305 |
> |
if (min(pt0,pt1) < 25.) corr*=0.6; |
306 |
> |
else if (min(pt0,pt1) < 30.) corr*=0.8; |
307 |
> |
// scale to lumi ABC/D |
308 |
> |
corr = 1.-(1.-corr)*6.9/12.1; |
309 |
> |
return corr; |
310 |
> |
} |
311 |
|
return 1.; |
312 |
|
} |
313 |
|
|