ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/interface/VHbbNameSpace.h
(Generate patch)

Comparing UserCode/VHbb/interface/VHbbNameSpace.h (file contents):
Revision 1.12 by nmohr, Sun Apr 7 20:12:15 2013 UTC vs.
Revision 1.13 by peller, Mon Apr 15 11:45:39 2013 UTC

# Line 296 | Line 296 | namespace VHbb {
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines