CMS 3D CMS Logo

Functions | Variables
Averages_3Invpb Namespace Reference

Functions

def vbtfRatioAverage (title, ratio1, ratio2, eratio1, eratio2, sysUnc1, sysUnc2, sysCor1, sysCor2)
 
def vbtfRatioCheck (title, ratio, absStat, sysUnc, sysCor)
 
def vbtfXSectionAverage (title, xsection1, xsection2, exsection1, exsection2, sysUnc1, sysUnc2, sysCor1, sysCor2, relSysLumi)
 
def vbtfXSectionCheck (title, xsection, exsection, sysUnc, sysCor, relSysLumi)
 Utility functions. More...
 

Variables

 absCorrRatioenu
 
 absCorrRatiomunu
 
 absCorrWenu
 
 absCorrWminusenu
 
 absCorrWminusmunu
 
 absCorrWmunu
 
 absCorrWplusenu
 
 absCorrWplusmunu
 
 absCorrWZe
 
 absCorrWZmu
 
 absCorrZee
 
 absCorrZmumu
 
 absStatRatioenu
 
 absStatRatiomunu
 
 absStatWenu
 
 absStatWminusenu
 
 absStatWminusmunu
 
 absStatWmunu
 
 absStatWplusenu
 
 absStatWplusmunu
 
 absStatWZe
 
 absStatWZmu
 
 absStatZee
 
 absStatZmumu
 
 absUncRatioenu
 
 absUncRatiomunu
 
 absUncWenu
 
 absUncWminusenu
 
 absUncWminusmunu
 
 absUncWmunu
 
 absUncWplusenu
 
 absUncWplusmunu
 
 absUncWZe
 
 absUncWZmu
 
 absUncZee
 
 absUncZmumu
 
 OPTION
 
 Ratioenu
 
 Ratiomunu
 
 relSysAdd
 
 relSysLumi
 INPUTS FOLLOW (they are not the final version) More...
 
 relSysSubtract
 
 relUncBkg
 
 relUncEff
 
 relUncEffW
 
 relUncFit
 
 relUncMCStat
 
 relUncMomRes
 
 relUncMomResW
 
 relUncMomResZ
 
 relUncPreTrig
 
 relUncRecoil
 
 relUncSysEff
 
 Wenu
 
 Wminusenu
 
 Wminusmunu
 
 Wmunu
 
 Wplusenu
 
 Wplusmunu
 
 WZe
 
 WZmu
 
 Zee
 
 Zmumu
 

Function Documentation

◆ vbtfRatioAverage()

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

Definition at line 270 of file Averages_3Invpb.py.

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))
292 

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

◆ vbtfRatioCheck()

def Averages_3Invpb.vbtfRatioCheck (   title,
  ratio,
  absStat,
  sysUnc,
  sysCor 
)

Definition at line 266 of file Averages_3Invpb.py.

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))
268 

References print().

Referenced by vbtfRatioAverage().

◆ vbtfXSectionAverage()

def Averages_3Invpb.vbtfXSectionAverage (   title,
  xsection1,
  xsection2,
  exsection1,
  exsection2,
  sysUnc1,
  sysUnc2,
  sysCor1,
  sysCor2,
  relSysLumi 
)

Definition at line 241 of file Averages_3Invpb.py.

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))
264 

References print(), and mathSSE.sqrt().

Referenced by vbtfRatioAverage().

◆ vbtfXSectionCheck()

def Averages_3Invpb.vbtfXSectionCheck (   title,
  xsection,
  exsection,
  sysUnc,
  sysCor,
  relSysLumi 
)

Utility functions.

Definition at line 236 of file Averages_3Invpb.py.

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))
239 

References print().

Referenced by vbtfRatioAverage().

Variable Documentation

◆ absCorrRatioenu

Averages_3Invpb.absCorrRatioenu

Definition at line 95 of file Averages_3Invpb.py.

◆ absCorrRatiomunu

Averages_3Invpb.absCorrRatiomunu

Definition at line 200 of file Averages_3Invpb.py.

◆ absCorrWenu

Averages_3Invpb.absCorrWenu

Definition at line 55 of file Averages_3Invpb.py.

◆ absCorrWminusenu

Averages_3Invpb.absCorrWminusenu

Definition at line 75 of file Averages_3Invpb.py.

◆ absCorrWminusmunu

Averages_3Invpb.absCorrWminusmunu

Definition at line 160 of file Averages_3Invpb.py.

◆ absCorrWmunu

Averages_3Invpb.absCorrWmunu

Definition at line 116 of file Averages_3Invpb.py.

◆ absCorrWplusenu

Averages_3Invpb.absCorrWplusenu

Definition at line 65 of file Averages_3Invpb.py.

◆ absCorrWplusmunu

Averages_3Invpb.absCorrWplusmunu

Definition at line 138 of file Averages_3Invpb.py.

◆ absCorrWZe

Averages_3Invpb.absCorrWZe

Definition at line 105 of file Averages_3Invpb.py.

◆ absCorrWZmu

Averages_3Invpb.absCorrWZmu

Definition at line 217 of file Averages_3Invpb.py.

◆ absCorrZee

Averages_3Invpb.absCorrZee

Definition at line 85 of file Averages_3Invpb.py.

◆ absCorrZmumu

Averages_3Invpb.absCorrZmumu

Definition at line 182 of file Averages_3Invpb.py.

◆ absStatRatioenu

Averages_3Invpb.absStatRatioenu

Definition at line 94 of file Averages_3Invpb.py.

◆ absStatRatiomunu

Averages_3Invpb.absStatRatiomunu

Definition at line 199 of file Averages_3Invpb.py.

◆ absStatWenu

Averages_3Invpb.absStatWenu

Definition at line 54 of file Averages_3Invpb.py.

◆ absStatWminusenu

Averages_3Invpb.absStatWminusenu

Definition at line 74 of file Averages_3Invpb.py.

◆ absStatWminusmunu

Averages_3Invpb.absStatWminusmunu

Definition at line 159 of file Averages_3Invpb.py.

◆ absStatWmunu

Averages_3Invpb.absStatWmunu

Definition at line 115 of file Averages_3Invpb.py.

◆ absStatWplusenu

Averages_3Invpb.absStatWplusenu

Definition at line 64 of file Averages_3Invpb.py.

◆ absStatWplusmunu

Averages_3Invpb.absStatWplusmunu

Definition at line 137 of file Averages_3Invpb.py.

◆ absStatWZe

Averages_3Invpb.absStatWZe

Definition at line 104 of file Averages_3Invpb.py.

◆ absStatWZmu

Averages_3Invpb.absStatWZmu

Definition at line 216 of file Averages_3Invpb.py.

◆ absStatZee

Averages_3Invpb.absStatZee

Definition at line 84 of file Averages_3Invpb.py.

◆ absStatZmumu

Averages_3Invpb.absStatZmumu

Definition at line 181 of file Averages_3Invpb.py.

◆ absUncRatioenu

Averages_3Invpb.absUncRatioenu

Definition at line 96 of file Averages_3Invpb.py.

◆ absUncRatiomunu

Averages_3Invpb.absUncRatiomunu

Definition at line 205 of file Averages_3Invpb.py.

◆ absUncWenu

Averages_3Invpb.absUncWenu

Definition at line 56 of file Averages_3Invpb.py.

◆ absUncWminusenu

Averages_3Invpb.absUncWminusenu

Definition at line 76 of file Averages_3Invpb.py.

◆ absUncWminusmunu

Averages_3Invpb.absUncWminusmunu

Definition at line 169 of file Averages_3Invpb.py.

◆ absUncWmunu

Averages_3Invpb.absUncWmunu

Definition at line 125 of file Averages_3Invpb.py.

◆ absUncWplusenu

Averages_3Invpb.absUncWplusenu

Definition at line 66 of file Averages_3Invpb.py.

◆ absUncWplusmunu

Averages_3Invpb.absUncWplusmunu

Definition at line 147 of file Averages_3Invpb.py.

◆ absUncWZe

Averages_3Invpb.absUncWZe

Definition at line 106 of file Averages_3Invpb.py.

◆ absUncWZmu

Averages_3Invpb.absUncWZmu

Definition at line 223 of file Averages_3Invpb.py.

◆ absUncZee

Averages_3Invpb.absUncZee

Definition at line 86 of file Averages_3Invpb.py.

◆ absUncZmumu

Averages_3Invpb.absUncZmumu

Definition at line 188 of file Averages_3Invpb.py.

◆ OPTION

Averages_3Invpb.OPTION

Definition at line 38 of file Averages_3Invpb.py.

◆ Ratioenu

Averages_3Invpb.Ratioenu

Definition at line 93 of file Averages_3Invpb.py.

◆ Ratiomunu

Averages_3Invpb.Ratiomunu

Definition at line 198 of file Averages_3Invpb.py.

◆ relSysAdd

Averages_3Invpb.relSysAdd

Definition at line 222 of file Averages_3Invpb.py.

◆ relSysLumi

Averages_3Invpb.relSysLumi

INPUTS FOLLOW (they are not the final version)

Definition at line 50 of file Averages_3Invpb.py.

◆ relSysSubtract

Averages_3Invpb.relSysSubtract

Definition at line 221 of file Averages_3Invpb.py.

◆ relUncBkg

Averages_3Invpb.relUncBkg

Definition at line 124 of file Averages_3Invpb.py.

◆ relUncEff

Averages_3Invpb.relUncEff

Definition at line 120 of file Averages_3Invpb.py.

◆ relUncEffW

Averages_3Invpb.relUncEffW

Definition at line 218 of file Averages_3Invpb.py.

◆ relUncFit

Averages_3Invpb.relUncFit

Definition at line 117 of file Averages_3Invpb.py.

◆ relUncMCStat

Averages_3Invpb.relUncMCStat

Definition at line 123 of file Averages_3Invpb.py.

◆ relUncMomRes

Averages_3Invpb.relUncMomRes

Definition at line 121 of file Averages_3Invpb.py.

◆ relUncMomResW

Averages_3Invpb.relUncMomResW

Definition at line 219 of file Averages_3Invpb.py.

◆ relUncMomResZ

Averages_3Invpb.relUncMomResZ

Definition at line 220 of file Averages_3Invpb.py.

◆ relUncPreTrig

Averages_3Invpb.relUncPreTrig

Definition at line 118 of file Averages_3Invpb.py.

◆ relUncRecoil

Averages_3Invpb.relUncRecoil

Definition at line 122 of file Averages_3Invpb.py.

◆ relUncSysEff

Averages_3Invpb.relUncSysEff

Definition at line 119 of file Averages_3Invpb.py.

◆ Wenu

Averages_3Invpb.Wenu

Definition at line 53 of file Averages_3Invpb.py.

◆ Wminusenu

Averages_3Invpb.Wminusenu

Definition at line 73 of file Averages_3Invpb.py.

◆ Wminusmunu

Averages_3Invpb.Wminusmunu

Definition at line 158 of file Averages_3Invpb.py.

◆ Wmunu

Averages_3Invpb.Wmunu

Definition at line 114 of file Averages_3Invpb.py.

◆ Wplusenu

Averages_3Invpb.Wplusenu

Definition at line 63 of file Averages_3Invpb.py.

◆ Wplusmunu

Averages_3Invpb.Wplusmunu

Definition at line 136 of file Averages_3Invpb.py.

◆ WZe

Averages_3Invpb.WZe

Definition at line 103 of file Averages_3Invpb.py.

◆ WZmu

Averages_3Invpb.WZmu

Definition at line 215 of file Averages_3Invpb.py.

◆ Zee

Averages_3Invpb.Zee

Definition at line 83 of file Averages_3Invpb.py.

◆ Zmumu

Averages_3Invpb.Zmumu

Definition at line 180 of file Averages_3Invpb.py.

Averages_3Invpb.vbtfXSectionCheck
def vbtfXSectionCheck(title, xsection, exsection, sysUnc, sysCor, relSysLumi)
Utility functions.
Definition: Averages_3Invpb.py:236
Averages_3Invpb.vbtfRatioAverage
def vbtfRatioAverage(title, ratio1, ratio2, eratio1, eratio2, sysUnc1, sysUnc2, sysCor1, sysCor2)
Definition: Averages_3Invpb.py:270
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
Averages_3Invpb.vbtfXSectionAverage
def vbtfXSectionAverage(title, xsection1, xsection2, exsection1, exsection2, sysUnc1, sysUnc2, sysCor1, sysCor2, relSysLumi)
Definition: Averages_3Invpb.py:241
print
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:46
Averages_3Invpb.vbtfRatioCheck
def vbtfRatioCheck(title, ratio, absStat, sysUnc, sysCor)
Definition: Averages_3Invpb.py:266