CMS 3D CMS Logo

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

Functions

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

Variables

float absCorrRatioenu = 0.0306
 
tuple absCorrRatiomunu = Ratiomunu*sqrt(0.021**2+0.0129**2)
 
float absCorrWenu = 0.144
 
float absCorrWminusenu = 0.073
 
tuple absCorrWminusmunu = Wminusmunu*sqrt(0.019**2+0.013**2)
 
tuple absCorrWmunu = Wmunu*sqrt(0.018**2+0.015**2)
 
float absCorrWplusenu = 0.097
 
tuple absCorrWplusmunu = Wplusmunu*sqrt(0.013**2+0.014**2)
 
float absCorrWZe = 0.1413
 
tuple absCorrWZmu = WZmu*sqrt(0.011**2+0.0135**2)
 
float absCorrZee = 0.01715
 
tuple absCorrZmumu = Zmumu*sqrt(0.012**2+0.016**2)
 
float absStatRatioenu = 0.0097
 
float absStatRatiomunu = 0.0078
 
float absStatWenu = 0.034
 
float absStatWminusenu = 0.022
 
float absStatWminusmunu = 0.01662
 
float absStatWmunu = 0.02690
 
float absStatWplusenu = 0.026
 
float absStatWplusmunu = 0.02033
 
float absStatWZe = 0.1190
 
tuple absStatWZmu = WZmu*sqrt((absStatWmunu/Wmunu)**2+(absStatZmumu/Zmumu)**2)
 
float absStatZee = 0.0109
 
float absStatZmumu = 0.008
 
float absUncRatioenu = 0.0453
 
tuple absUncRatiomunu = Ratiomunu*sqrt(relUncEff**2+relUncMomRes**2+relUncMCStat**2+relUncBkg**2)
 
float absUncWenu = 0.309
 
float absUncWminusenu = 0.130
 
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.187
 
tuple absUncWplusmunu = Wplusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2)
 
float absUncWZe = 0.2329
 
tuple absUncWZmu = WZmu*sqrt((absUncWmunu/Wmunu)**2 + (absUncZmumu/Zmumu)**2 - relSysSubtract**2 + relSysAdd**2)
 
float absUncZee = 0.0446
 
tuple absUncZmumu = Zmumu*sqrt(relUncEff**2+relUncMomRes**2+relUncBkg**2+relUncTrigChanges**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)
 
float relUncBkg = 1.5e-2
 
tuple relUncEff = sqrt(relUncFit**2+relUncPreTrig**2+relUncSysEff**2)
 
float relUncEffW = 1.3e-2
 
float relUncFit = 0.4e-2
 
float relUncMCStat = 1.4e-3
 
float relUncMomRes = 0.1e-2
 
float relUncMomResW = 0.3e-2
 
float relUncMomResZ = 0.2e-2
 
float relUncPreTrig = 0.5e-2
 
float relUncRecoil = 0.4e-2
 
float relUncSysEff = 0.4e-2
 
float relUncTrigChanges = 0.1e-2
 
float Wenu = 10.221
 
float Wminusenu = 4.196
 
float Wminusmunu = 4.09297
 
float Wmunu = 10.03115
 
float Wplusenu = 6.045
 
float Wplusmunu = 5.93821
 
 WZe = Wenu/Zee
 
 WZmu = Wmunu/Zmumu
 
float Zee = 0.9892
 
float Zmumu = 0.961
 

Function Documentation

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

Definition at line 270 of file Averages_36Invpb.py.

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

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

Definition at line 266 of file Averages_36Invpb.py.

Referenced by vbtfRatioAverage().

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

Definition at line 241 of file Averages_36Invpb.py.

References mathSSE.sqrt().

Referenced by vbtfRatioAverage().

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

Utility functions.

Definition at line 236 of file Averages_36Invpb.py.

Referenced by vbtfRatioAverage().

237 def vbtfXSectionCheck(title, xsection, exsection, sysUnc, sysCor, relSysLumi):
238  absSysLumi = xsection*relSysLumi
239  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

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.

Averages_36Invpb.Ratioenu = Wplusenu/Wminusenu

Definition at line 92 of file Averages_36Invpb.py.

Averages_36Invpb.Ratiomunu = Wplusmunu/Wminusmunu

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.

Averages_36Invpb.WZe = Wenu/Zee

Definition at line 102 of file Averages_36Invpb.py.

Averages_36Invpb.WZmu = Wmunu/Zmumu

Definition at line 215 of file Averages_36Invpb.py.

float Averages_36Invpb.Zee = 0.9892

Definition at line 82 of file Averages_36Invpb.py.

Referenced by Rivet::CMS_EWK_11_021.analyze().

float Averages_36Invpb.Zmumu = 0.961

Definition at line 180 of file Averages_36Invpb.py.