def Averages_36Invpb::vbtfRatioAverage | ( | title, | |
ratio1, | |||
ratio2, | |||
eratio1, | |||
eratio2, | |||
sysUnc1, | |||
sysUnc2, | |||
sysCor1, | |||
sysCor2 | |||
) |
Definition at line 270 of file Averages_36Invpb.py.
00271 : 00272 if OPTION== "StatisticalAverage": 00273 V11 = eratio1**2 00274 V22 = eratio2**2 00275 V12 = 0 00276 else: 00277 V11 = eratio1**2+(sysUnc1**2+sysCor1**2) 00278 V22 = eratio2**2+(sysUnc2**2+sysCor2**2) 00279 V12 = sysCor1*sysCor2 00280 00281 a1 = (V22-V12)/(V11+V22-2*V12) 00282 a2 = (V11-V12)/(V11+V22-2*V12) 00283 average = a1*ratio1 + a2*ratio2 00284 errstat = sqrt(a1**2*eratio1**2+a2**2*eratio2**2) 00285 errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2) 00286 errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2) 00287 errsyst = sqrt(errunco**2+errtheo**2) 00288 00289 print "VBTF average: %s = %.4f +- %.4f (stat.)" % (title, average, errstat) 00290 00291 print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the)" % (errunco, errtheo) 00292 print "\tVBTF systematics (2): +- %.4f (exp+the)" % (errsyst)
def Averages_36Invpb::vbtfRatioCheck | ( | title, | |
ratio, | |||
absStat, | |||
sysUnc, | |||
sysCor | |||
) |
Definition at line 266 of file Averages_36Invpb.py.
def Averages_36Invpb::vbtfXSectionAverage | ( | title, | |
xsection1, | |||
xsection2, | |||
exsection1, | |||
exsection2, | |||
sysUnc1, | |||
sysUnc2, | |||
sysCor1, | |||
sysCor2, | |||
relSysLumi | |||
) |
Definition at line 241 of file Averages_36Invpb.py.
00242 : 00243 if OPTION== "StatisticalAverage": 00244 V11 = exsection1**2 00245 V22 = exsection2**2 00246 V12 = 0 00247 else: 00248 V11 = exsection1**2+sysUnc1**2+sysCor1**2 00249 V22 = exsection2**2+sysUnc2**2+sysCor2**2 00250 V12 = sysCor1*sysCor2 00251 00252 a1 = (V22-V12)/(V11+V22-2*V12) 00253 a2 = (V11-V12)/(V11+V22-2*V12) 00254 average = a1*xsection1 + a2*xsection2 00255 errstat = sqrt(a1**2*exsection1**2+a2**2*exsection2**2) 00256 errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2) 00257 errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2) 00258 errsyst = sqrt(errunco**2+errtheo**2) 00259 00260 print "VBTF average: %s = %.4f +- %.4f (stat.) [nb]" % (title, average, errstat) 00261 00262 absSysLumi = average*relSysLumi 00263 print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the) +- %.4f (lumi) [nb]" % (errunco, errtheo, absSysLumi) 00264 print "\tVBTF systematics (2): +- %.4f (exp+the) +- %.4f (lumi) [nb]" % (errsyst, absSysLumi)
def Averages_36Invpb::vbtfXSectionCheck | ( | title, | |
xsection, | |||
exsection, | |||
sysUnc, | |||
sysCor, | |||
relSysLumi | |||
) |
Definition at line 236 of file Averages_36Invpb.py.
float Averages_36Invpb::absCorrRatioenu = 0.0306 |
Definition at line 94 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absCorrRatiomunu = Ratiomunu*sqrt(0.021**2+0.0129**2) |
Definition at line 200 of file Averages_36Invpb.py.
float Averages_36Invpb::absCorrWenu = 0.144 |
Definition at line 54 of file Averages_36Invpb.py.
float Averages_36Invpb::absCorrWminusenu = 0.073 |
Definition at line 74 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absCorrWminusmunu = Wminusmunu*sqrt(0.019**2+0.013**2) |
Definition at line 160 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absCorrWmunu = Wmunu*sqrt(0.018**2+0.015**2) |
Definition at line 115 of file Averages_36Invpb.py.
float Averages_36Invpb::absCorrWplusenu = 0.097 |
Definition at line 64 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absCorrWplusmunu = Wplusmunu*sqrt(0.013**2+0.014**2) |
Definition at line 138 of file Averages_36Invpb.py.
float Averages_36Invpb::absCorrWZe = 0.1413 |
Definition at line 104 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absCorrWZmu = WZmu*sqrt(0.011**2+0.0135**2) |
Definition at line 217 of file Averages_36Invpb.py.
float Averages_36Invpb::absCorrZee = 0.01715 |
Definition at line 84 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absCorrZmumu = Zmumu*sqrt(0.012**2+0.016**2) |
Definition at line 182 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatRatioenu = 0.0097 |
Definition at line 93 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatRatiomunu = 0.0078 |
Definition at line 199 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatWenu = 0.034 |
Definition at line 53 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatWminusenu = 0.022 |
Definition at line 73 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatWminusmunu = 0.01662 |
Definition at line 159 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatWmunu = 0.02690 |
Definition at line 114 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatWplusenu = 0.026 |
Definition at line 63 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatWplusmunu = 0.02033 |
Definition at line 137 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatWZe = 0.1190 |
Definition at line 103 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absStatWZmu = WZmu*sqrt((absStatWmunu/Wmunu)**2+(absStatZmumu/Zmumu)**2) |
Definition at line 216 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatZee = 0.0109 |
Definition at line 83 of file Averages_36Invpb.py.
float Averages_36Invpb::absStatZmumu = 0.008 |
Definition at line 181 of file Averages_36Invpb.py.
float Averages_36Invpb::absUncRatioenu = 0.0453 |
Definition at line 95 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absUncRatiomunu = Ratiomunu*sqrt(relUncEff**2+relUncMomRes**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 205 of file Averages_36Invpb.py.
float Averages_36Invpb::absUncWenu = 0.309 |
Definition at line 55 of file Averages_36Invpb.py.
float Averages_36Invpb::absUncWminusenu = 0.130 |
Definition at line 75 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absUncWminusmunu = Wminusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 169 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absUncWmunu = Wmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 124 of file Averages_36Invpb.py.
float Averages_36Invpb::absUncWplusenu = 0.187 |
Definition at line 65 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absUncWplusmunu = Wplusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 147 of file Averages_36Invpb.py.
float Averages_36Invpb::absUncWZe = 0.2329 |
Definition at line 105 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absUncWZmu = WZmu*sqrt((absUncWmunu/Wmunu)**2 + (absUncZmumu/Zmumu)**2 - relSysSubtract**2 + relSysAdd**2) |
Definition at line 223 of file Averages_36Invpb.py.
float Averages_36Invpb::absUncZee = 0.0446 |
Definition at line 85 of file Averages_36Invpb.py.
tuple Averages_36Invpb::absUncZmumu = Zmumu*sqrt(relUncEff**2+relUncMomRes**2+relUncBkg**2+relUncTrigChanges**2) |
Definition at line 188 of file Averages_36Invpb.py.
string Averages_36Invpb::OPTION = "StatisticalPlusSystematicAverage" |
Definition at line 37 of file Averages_36Invpb.py.
Definition at line 92 of file Averages_36Invpb.py.
Definition at line 198 of file Averages_36Invpb.py.
tuple Averages_36Invpb::relSysAdd = abs(relUncMomResW-relUncMomResZ) |
Definition at line 222 of file Averages_36Invpb.py.
int Averages_36Invpb::relSysLumi = 11 |
INPUTS FOLLOW (they are not the final version)
Definition at line 49 of file Averages_36Invpb.py.
tuple Averages_36Invpb::relSysSubtract = sqrt(relUncEffW**2+relUncMomResW**2+relUncMomResZ**2) |
Definition at line 221 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncBkg = 1.5e-2 |
Definition at line 123 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncEff = sqrt(relUncFit**2+relUncPreTrig**2+relUncSysEff**2) |
Definition at line 119 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncEffW = 1.3e-2 |
Definition at line 218 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncFit = 0.4e-2 |
Definition at line 116 of file Averages_36Invpb.py.
tuple Averages_36Invpb::relUncMCStat = 1.4e-3 |
Definition at line 122 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncMomRes = 0.1e-2 |
Definition at line 120 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncMomResW = 0.3e-2 |
Definition at line 219 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncMomResZ = 0.2e-2 |
Definition at line 220 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncPreTrig = 0.5e-2 |
Definition at line 117 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncRecoil = 0.4e-2 |
Definition at line 121 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncSysEff = 0.4e-2 |
Definition at line 118 of file Averages_36Invpb.py.
float Averages_36Invpb::relUncTrigChanges = 0.1e-2 |
Definition at line 186 of file Averages_36Invpb.py.
float Averages_36Invpb::Wenu = 10.221 |
Definition at line 52 of file Averages_36Invpb.py.
float Averages_36Invpb::Wminusenu = 4.196 |
Definition at line 72 of file Averages_36Invpb.py.
float Averages_36Invpb::Wminusmunu = 4.09297 |
Definition at line 158 of file Averages_36Invpb.py.
float Averages_36Invpb::Wmunu = 10.03115 |
Definition at line 113 of file Averages_36Invpb.py.
float Averages_36Invpb::Wplusenu = 6.045 |
Definition at line 62 of file Averages_36Invpb.py.
float Averages_36Invpb::Wplusmunu = 5.93821 |
Definition at line 136 of file Averages_36Invpb.py.
Definition at line 102 of file Averages_36Invpb.py.
Definition at line 215 of file Averages_36Invpb.py.
float Averages_36Invpb::Zee = 0.9892 |
Definition at line 82 of file Averages_36Invpb.py.
float Averages_36Invpb::Zmumu = 0.961 |
Definition at line 180 of file Averages_36Invpb.py.