test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
Averages_3Invpb Namespace Reference

Functions

def vbtfRatioAverage
 
def vbtfRatioCheck
 
def vbtfXSectionAverage
 
def vbtfXSectionCheck
 Utility functions. More...
 

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) More...
 
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
 

Function Documentation

def Averages_3Invpb.vbtfRatioAverage (   title,
  ratio1,
  ratio2,
  eratio1,
  eratio2,
  sysUnc1,
  sysUnc2,
  sysCor1,
  sysCor2 
)

Definition at line 269 of file Averages_3Invpb.py.

References mathSSE.sqrt(), vbtfRatioCheck(), vbtfXSectionAverage(), and vbtfXSectionCheck().

270 def vbtfRatioAverage(title, ratio1, ratio2, eratio1, eratio2, sysUnc1, sysUnc2, sysCor1, sysCor2):
271  if OPTION== "StatisticalAverage":
272  V11 = eratio1**2
273  V22 = eratio2**2
274  V12 = 0
275  else:
276  V11 = eratio1**2+(sysUnc1**2+sysCor1**2)
277  V22 = eratio2**2+(sysUnc2**2+sysCor2**2)
278  V12 = sysCor1*sysCor2
279 
280  a1 = (V22-V12)/(V11+V22-2*V12)
281  a2 = (V11-V12)/(V11+V22-2*V12)
282  average = a1*ratio1 + a2*ratio2
283  errstat = sqrt(a1**2*eratio1**2+a2**2*eratio2**2)
284  errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2)
285  errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2)
286  errsyst = sqrt(errunco**2+errtheo**2)
287 
288  print "VBTF average: %s = %.4f +- %.4f (stat.)" % (title, average, errstat)
289 
290  print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the)" % (errunco, errtheo)
291  print "\tVBTF systematics (2): +- %.4f (exp+the)" % (errsyst)
T sqrt(T t)
Definition: SSEVec.h:48
def Averages_3Invpb.vbtfRatioCheck (   title,
  ratio,
  absStat,
  sysUnc,
  sysCor 
)

Definition at line 265 of file Averages_3Invpb.py.

Referenced by vbtfRatioAverage().

266 def vbtfRatioCheck(title, ratio, absStat, sysUnc, sysCor):
267  print "VBTF inputs: %s = %.4f +- %.4f (stat.) +- %.4f (exp.) +- %.4f (the.)" % (title, ratio, absStat, sysUnc, sysCor)
def Averages_3Invpb.vbtfXSectionAverage (   title,
  xsection1,
  xsection2,
  exsection1,
  exsection2,
  sysUnc1,
  sysUnc2,
  sysCor1,
  sysCor2,
  relSysLumi 
)

Definition at line 240 of file Averages_3Invpb.py.

References mathSSE.sqrt().

Referenced by vbtfRatioAverage().

241 def vbtfXSectionAverage(title, xsection1, xsection2, exsection1, exsection2, sysUnc1, sysUnc2, sysCor1, sysCor2, relSysLumi):
242  if OPTION== "StatisticalAverage":
243  V11 = exsection1**2
244  V22 = exsection2**2
245  V12 = 0
246  else:
247  V11 = exsection1**2+sysUnc1**2+sysCor1**2
248  V22 = exsection2**2+sysUnc2**2+sysCor2**2
249  V12 = sysCor1*sysCor2
250 
251  a1 = (V22-V12)/(V11+V22-2*V12)
252  a2 = (V11-V12)/(V11+V22-2*V12)
253  average = a1*xsection1 + a2*xsection2
254  errstat = sqrt(a1**2*exsection1**2+a2**2*exsection2**2)
255  errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2)
256  errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2)
257  errsyst = sqrt(errunco**2+errtheo**2)
258 
259  print "VBTF average: %s = %.4f +- %.4f (stat.) [nb]" % (title, average, errstat)
260 
261  absSysLumi = average*relSysLumi
262  print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the) +- %.4f (lumi) [nb]" % (errunco, errtheo, absSysLumi)
263  print "\tVBTF systematics (2): +- %.4f (exp+the) +- %.4f (lumi) [nb]" % (errsyst, absSysLumi)
T sqrt(T t)
Definition: SSEVec.h:48
def Averages_3Invpb.vbtfXSectionCheck (   title,
  xsection,
  exsection,
  sysUnc,
  sysCor,
  relSysLumi 
)

Utility functions.

Definition at line 235 of file Averages_3Invpb.py.

Referenced by vbtfRatioAverage().

236 def vbtfXSectionCheck(title, xsection, exsection, sysUnc, sysCor, relSysLumi):
237  absSysLumi = xsection*relSysLumi
238  print "VBTF inputs: %s = %.4f +- %.4f (stat.) +- %.4f (exp.) +- %.4f (the.) +- %.4f (lumi) [nb]" % (title, xsection, exsection, sysUnc, sysCor, absSysLumi)
def vbtfXSectionCheck
Utility functions.

Variable Documentation

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.

Averages_3Invpb.Ratioenu = Wplusenu/Wminusenu

Definition at line 92 of file Averages_3Invpb.py.

Averages_3Invpb.Ratiomunu = Wplusmunu/Wminusmunu

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.

Averages_3Invpb.WZe = Wenu/Zee

Definition at line 102 of file Averages_3Invpb.py.

Averages_3Invpb.WZmu = Wmunu/Zmumu

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.