Functions | |
def | vbtfRatioAverage |
def | vbtfRatioCheck |
def | vbtfXSectionAverage |
def | vbtfXSectionCheck |
Variables | |
tuple | absCorrRatioenu = Ratioenu*sqrt(0.017**2+0.0127**2) |
tuple | absCorrRatiomunu = Ratiomunu*sqrt(0.021**2+0.0119**2) |
tuple | absCorrWenu = Wenu*sqrt(0.008**2+0.0116**2) |
tuple | absCorrWminusenu = Wminusenu*sqrt(0.015**2+0.0090**2) |
tuple | absCorrWminusmunu = Wminusmunu*sqrt(0.019**2+0.0126**2) |
tuple | absCorrWmunu = Wmunu*sqrt(0.011**2+0.0136**2) |
tuple | absCorrWplusenu = Wplusenu*sqrt(0.009**2+0.0133**2) |
tuple | absCorrWplusmunu = Wplusmunu*sqrt(0.013**2+0.0142**2) |
tuple | absCorrWZe = WZe*sqrt(0.009**2+0.0103**2) |
tuple | absCorrWZmu = WZmu*sqrt(0.011**2+0.0135**2) |
tuple | absCorrZee = Zee*sqrt(0.011**2+0.0134**2) |
tuple | absCorrZmumu = Zmumu*sqrt(0.012**2+0.0158**2) |
float | absStatRatioenu = 0.02883 |
float | absStatRatiomunu = 0.026 |
float | absStatWenu = 0.1123 |
float | absStatWminusenu = 0.0690 |
float | absStatWminusmunu = 0.057 |
float | absStatWmunu = 0.090 |
float | absStatWplusenu = 0.0793 |
float | absStatWplusmunu = 0.069 |
float | absStatWZe = 0.425 |
float | absStatWZmu = 0.3675 |
float | absStatZee = 0.0370 |
float | absStatZmumu = 0.031 |
float | absUncRatioenu = 0.076 |
tuple | absUncRatiomunu = Ratiomunu*sqrt(relUncEff**2+relUncMomRes**2+relUncMCStat**2+relUncBkg**2) |
float | absUncWenu = 0.5031 |
float | absUncWminusenu = 0.2432 |
tuple | absUncWminusmunu = Wminusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
tuple | absUncWmunu = Wmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
float | absUncWplusenu = 0.3446 |
tuple | absUncWplusmunu = Wplusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
float | absUncWZe = 0.524 |
tuple | absUncWZmu = WZmu*sqrt((absUncWmunu/Wmunu)**2 + (absUncZmumu/Zmumu)**2 - relSysSubtract**2 + relSysAdd**2) |
float | absUncZee = 0.0565 |
tuple | absUncZmumu = Zmumu*sqrt(relUncEff**2+relUncMomRes**2+relUncBkg**2+relUncMCStat**2) |
string | OPTION = "StatisticalPlusSystematicAverage" |
Ratioenu = Wplusenu/Wminusenu | |
Ratiomunu = Wplusmunu/Wminusmunu | |
tuple | relSysAdd = abs(relUncMomResW-relUncMomResZ) |
int | relSysLumi = 11 |
INPUTS FOLLOW (they are not the final version) | |
tuple | relSysSubtract = sqrt(relUncEffW**2+relUncMomResW**2+relUncMomResZ**2) |
tuple | relUncBkg = sqrt(2.0e-2**2+0.2e-2**2) |
tuple | relUncEff = sqrt(relUncFit**2+relUncPreTrig**2+relUncSysEff**2) |
float | relUncEffW = 1.3e-2 |
float | relUncFit = 1.3e-2 |
float | relUncMCStat = 1.4e-3 |
float | relUncMomRes = 0.3e-2 |
float | relUncMomResW = 0.3e-2 |
float | relUncMomResZ = 0.2e-2 |
float | relUncPreTrig = 0.5e-2 |
float | relUncRecoil = 0.4e-2 |
float | relUncSysEff = 0.5e-2 |
float | Wenu = 10.1447 |
float | Wminusenu = 4.1401 |
float | Wminusmunu = 4.078 |
float | Wmunu = 9.922 |
float | Wplusenu = 5.9349 |
float | Wplusmunu = 5.844 |
WZe = Wenu/Zee | |
WZmu = Wmunu/Zmumu | |
float | Zee = 0.9595 |
float | Zmumu = 0.924 |
def Averages_3Invpb::vbtfRatioAverage | ( | title, | |
ratio1, | |||
ratio2, | |||
eratio1, | |||
eratio2, | |||
sysUnc1, | |||
sysUnc2, | |||
sysCor1, | |||
sysCor2 | |||
) |
Definition at line 269 of file Averages_3Invpb.py.
00270 : 00271 if OPTION== "StatisticalAverage": 00272 V11 = eratio1**2 00273 V22 = eratio2**2 00274 V12 = 0 00275 else: 00276 V11 = eratio1**2+(sysUnc1**2+sysCor1**2) 00277 V22 = eratio2**2+(sysUnc2**2+sysCor2**2) 00278 V12 = sysCor1*sysCor2 00279 00280 a1 = (V22-V12)/(V11+V22-2*V12) 00281 a2 = (V11-V12)/(V11+V22-2*V12) 00282 average = a1*ratio1 + a2*ratio2 00283 errstat = sqrt(a1**2*eratio1**2+a2**2*eratio2**2) 00284 errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2) 00285 errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2) 00286 errsyst = sqrt(errunco**2+errtheo**2) 00287 00288 print "VBTF average: %s = %.4f +- %.4f (stat.)" % (title, average, errstat) 00289 00290 print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the)" % (errunco, errtheo) 00291 print "\tVBTF systematics (2): +- %.4f (exp+the)" % (errsyst)
def Averages_3Invpb::vbtfRatioCheck | ( | title, | |
ratio, | |||
absStat, | |||
sysUnc, | |||
sysCor | |||
) |
Definition at line 265 of file Averages_3Invpb.py.
def Averages_3Invpb::vbtfXSectionAverage | ( | title, | |
xsection1, | |||
xsection2, | |||
exsection1, | |||
exsection2, | |||
sysUnc1, | |||
sysUnc2, | |||
sysCor1, | |||
sysCor2, | |||
relSysLumi | |||
) |
Definition at line 240 of file Averages_3Invpb.py.
00241 : 00242 if OPTION== "StatisticalAverage": 00243 V11 = exsection1**2 00244 V22 = exsection2**2 00245 V12 = 0 00246 else: 00247 V11 = exsection1**2+sysUnc1**2+sysCor1**2 00248 V22 = exsection2**2+sysUnc2**2+sysCor2**2 00249 V12 = sysCor1*sysCor2 00250 00251 a1 = (V22-V12)/(V11+V22-2*V12) 00252 a2 = (V11-V12)/(V11+V22-2*V12) 00253 average = a1*xsection1 + a2*xsection2 00254 errstat = sqrt(a1**2*exsection1**2+a2**2*exsection2**2) 00255 errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2) 00256 errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2) 00257 errsyst = sqrt(errunco**2+errtheo**2) 00258 00259 print "VBTF average: %s = %.4f +- %.4f (stat.) [nb]" % (title, average, errstat) 00260 00261 absSysLumi = average*relSysLumi 00262 print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the) +- %.4f (lumi) [nb]" % (errunco, errtheo, absSysLumi) 00263 print "\tVBTF systematics (2): +- %.4f (exp+the) +- %.4f (lumi) [nb]" % (errsyst, absSysLumi)
def Averages_3Invpb::vbtfXSectionCheck | ( | title, | |
xsection, | |||
exsection, | |||
sysUnc, | |||
sysCor, | |||
relSysLumi | |||
) |
Definition at line 235 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrRatioenu = Ratioenu*sqrt(0.017**2+0.0127**2) |
Definition at line 94 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrRatiomunu = Ratiomunu*sqrt(0.021**2+0.0119**2) |
Definition at line 199 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWenu = Wenu*sqrt(0.008**2+0.0116**2) |
Definition at line 54 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWminusenu = Wminusenu*sqrt(0.015**2+0.0090**2) |
Definition at line 74 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWminusmunu = Wminusmunu*sqrt(0.019**2+0.0126**2) |
Definition at line 159 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWmunu = Wmunu*sqrt(0.011**2+0.0136**2) |
Definition at line 115 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWplusenu = Wplusenu*sqrt(0.009**2+0.0133**2) |
Definition at line 64 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWplusmunu = Wplusmunu*sqrt(0.013**2+0.0142**2) |
Definition at line 137 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWZe = WZe*sqrt(0.009**2+0.0103**2) |
Definition at line 104 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrWZmu = WZmu*sqrt(0.011**2+0.0135**2) |
Definition at line 216 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrZee = Zee*sqrt(0.011**2+0.0134**2) |
Definition at line 84 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absCorrZmumu = Zmumu*sqrt(0.012**2+0.0158**2) |
Definition at line 181 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatRatioenu = 0.02883 |
Definition at line 93 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatRatiomunu = 0.026 |
Definition at line 198 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWenu = 0.1123 |
Definition at line 53 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWminusenu = 0.0690 |
Definition at line 73 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWminusmunu = 0.057 |
Definition at line 158 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWmunu = 0.090 |
Definition at line 114 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWplusenu = 0.0793 |
Definition at line 63 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWplusmunu = 0.069 |
Definition at line 136 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWZe = 0.425 |
Definition at line 103 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatWZmu = 0.3675 |
Definition at line 215 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatZee = 0.0370 |
Definition at line 83 of file Averages_3Invpb.py.
float Averages_3Invpb::absStatZmumu = 0.031 |
Definition at line 180 of file Averages_3Invpb.py.
float Averages_3Invpb::absUncRatioenu = 0.076 |
Definition at line 95 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absUncRatiomunu = Ratiomunu*sqrt(relUncEff**2+relUncMomRes**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 204 of file Averages_3Invpb.py.
float Averages_3Invpb::absUncWenu = 0.5031 |
Definition at line 55 of file Averages_3Invpb.py.
float Averages_3Invpb::absUncWminusenu = 0.2432 |
Definition at line 75 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absUncWminusmunu = Wminusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 168 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absUncWmunu = Wmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 124 of file Averages_3Invpb.py.
float Averages_3Invpb::absUncWplusenu = 0.3446 |
Definition at line 65 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absUncWplusmunu = Wplusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2) |
Definition at line 146 of file Averages_3Invpb.py.
float Averages_3Invpb::absUncWZe = 0.524 |
Definition at line 105 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absUncWZmu = WZmu*sqrt((absUncWmunu/Wmunu)**2 + (absUncZmumu/Zmumu)**2 - relSysSubtract**2 + relSysAdd**2) |
Definition at line 222 of file Averages_3Invpb.py.
float Averages_3Invpb::absUncZee = 0.0565 |
Definition at line 85 of file Averages_3Invpb.py.
tuple Averages_3Invpb::absUncZmumu = Zmumu*sqrt(relUncEff**2+relUncMomRes**2+relUncBkg**2+relUncMCStat**2) |
Definition at line 187 of file Averages_3Invpb.py.
string Averages_3Invpb::OPTION = "StatisticalPlusSystematicAverage" |
Definition at line 37 of file Averages_3Invpb.py.
Definition at line 92 of file Averages_3Invpb.py.
Definition at line 197 of file Averages_3Invpb.py.
tuple Averages_3Invpb::relSysAdd = abs(relUncMomResW-relUncMomResZ) |
Definition at line 221 of file Averages_3Invpb.py.
int Averages_3Invpb::relSysLumi = 11 |
INPUTS FOLLOW (they are not the final version)
Definition at line 49 of file Averages_3Invpb.py.
tuple Averages_3Invpb::relSysSubtract = sqrt(relUncEffW**2+relUncMomResW**2+relUncMomResZ**2) |
Definition at line 220 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncBkg = sqrt(2.0e-2**2+0.2e-2**2) |
Definition at line 123 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncEff = sqrt(relUncFit**2+relUncPreTrig**2+relUncSysEff**2) |
Definition at line 119 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncEffW = 1.3e-2 |
Definition at line 217 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncFit = 1.3e-2 |
Definition at line 116 of file Averages_3Invpb.py.
tuple Averages_3Invpb::relUncMCStat = 1.4e-3 |
Definition at line 122 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncMomRes = 0.3e-2 |
Definition at line 120 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncMomResW = 0.3e-2 |
Definition at line 218 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncMomResZ = 0.2e-2 |
Definition at line 219 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncPreTrig = 0.5e-2 |
Definition at line 117 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncRecoil = 0.4e-2 |
Definition at line 121 of file Averages_3Invpb.py.
float Averages_3Invpb::relUncSysEff = 0.5e-2 |
Definition at line 118 of file Averages_3Invpb.py.
float Averages_3Invpb::Wenu = 10.1447 |
Definition at line 52 of file Averages_3Invpb.py.
float Averages_3Invpb::Wminusenu = 4.1401 |
Definition at line 72 of file Averages_3Invpb.py.
float Averages_3Invpb::Wminusmunu = 4.078 |
Definition at line 157 of file Averages_3Invpb.py.
float Averages_3Invpb::Wmunu = 9.922 |
Definition at line 113 of file Averages_3Invpb.py.
float Averages_3Invpb::Wplusenu = 5.9349 |
Definition at line 62 of file Averages_3Invpb.py.
float Averages_3Invpb::Wplusmunu = 5.844 |
Definition at line 135 of file Averages_3Invpb.py.
Definition at line 102 of file Averages_3Invpb.py.
Definition at line 214 of file Averages_3Invpb.py.
float Averages_3Invpb::Zee = 0.9595 |
Definition at line 82 of file Averages_3Invpb.py.
float Averages_3Invpb::Zmumu = 0.924 |
Definition at line 179 of file Averages_3Invpb.py.