CMS 3D CMS Logo

Functions | Variables
Averages_36Invpb 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
 
 relUncTrigChanges
 
 Wenu
 
 Wminusenu
 
 Wminusmunu
 
 Wmunu
 
 Wplusenu
 
 Wplusmunu
 
 WZe
 
 WZmu
 
 Zee
 
 Zmumu
 

Function Documentation

◆ vbtfRatioAverage()

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

Definition at line 271 of file Averages_36Invpb.py.

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

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

◆ vbtfRatioCheck()

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

Definition at line 267 of file Averages_36Invpb.py.

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

References print().

Referenced by vbtfRatioAverage().

◆ vbtfXSectionAverage()

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

Definition at line 242 of file Averages_36Invpb.py.

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

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

Referenced by vbtfRatioAverage().

◆ vbtfXSectionCheck()

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

Utility functions.

Definition at line 237 of file Averages_36Invpb.py.

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

References print().

Referenced by vbtfRatioAverage().

Variable Documentation

◆ absCorrRatioenu

Averages_36Invpb.absCorrRatioenu

Definition at line 95 of file Averages_36Invpb.py.

◆ absCorrRatiomunu

Averages_36Invpb.absCorrRatiomunu

Definition at line 201 of file Averages_36Invpb.py.

◆ absCorrWenu

Averages_36Invpb.absCorrWenu

Definition at line 55 of file Averages_36Invpb.py.

◆ absCorrWminusenu

Averages_36Invpb.absCorrWminusenu

Definition at line 75 of file Averages_36Invpb.py.

◆ absCorrWminusmunu

Averages_36Invpb.absCorrWminusmunu

Definition at line 161 of file Averages_36Invpb.py.

◆ absCorrWmunu

Averages_36Invpb.absCorrWmunu

Definition at line 116 of file Averages_36Invpb.py.

◆ absCorrWplusenu

Averages_36Invpb.absCorrWplusenu

Definition at line 65 of file Averages_36Invpb.py.

◆ absCorrWplusmunu

Averages_36Invpb.absCorrWplusmunu

Definition at line 139 of file Averages_36Invpb.py.

◆ absCorrWZe

Averages_36Invpb.absCorrWZe

Definition at line 105 of file Averages_36Invpb.py.

◆ absCorrWZmu

Averages_36Invpb.absCorrWZmu

Definition at line 218 of file Averages_36Invpb.py.

◆ absCorrZee

Averages_36Invpb.absCorrZee

Definition at line 85 of file Averages_36Invpb.py.

◆ absCorrZmumu

Averages_36Invpb.absCorrZmumu

Definition at line 183 of file Averages_36Invpb.py.

◆ absStatRatioenu

Averages_36Invpb.absStatRatioenu

Definition at line 94 of file Averages_36Invpb.py.

◆ absStatRatiomunu

Averages_36Invpb.absStatRatiomunu

Definition at line 200 of file Averages_36Invpb.py.

◆ absStatWenu

Averages_36Invpb.absStatWenu

Definition at line 54 of file Averages_36Invpb.py.

◆ absStatWminusenu

Averages_36Invpb.absStatWminusenu

Definition at line 74 of file Averages_36Invpb.py.

◆ absStatWminusmunu

Averages_36Invpb.absStatWminusmunu

Definition at line 160 of file Averages_36Invpb.py.

◆ absStatWmunu

Averages_36Invpb.absStatWmunu

Definition at line 115 of file Averages_36Invpb.py.

◆ absStatWplusenu

Averages_36Invpb.absStatWplusenu

Definition at line 64 of file Averages_36Invpb.py.

◆ absStatWplusmunu

Averages_36Invpb.absStatWplusmunu

Definition at line 138 of file Averages_36Invpb.py.

◆ absStatWZe

Averages_36Invpb.absStatWZe

Definition at line 104 of file Averages_36Invpb.py.

◆ absStatWZmu

Averages_36Invpb.absStatWZmu

Definition at line 217 of file Averages_36Invpb.py.

◆ absStatZee

Averages_36Invpb.absStatZee

Definition at line 84 of file Averages_36Invpb.py.

◆ absStatZmumu

Averages_36Invpb.absStatZmumu

Definition at line 182 of file Averages_36Invpb.py.

◆ absUncRatioenu

Averages_36Invpb.absUncRatioenu

Definition at line 96 of file Averages_36Invpb.py.

◆ absUncRatiomunu

Averages_36Invpb.absUncRatiomunu

Definition at line 206 of file Averages_36Invpb.py.

◆ absUncWenu

Averages_36Invpb.absUncWenu

Definition at line 56 of file Averages_36Invpb.py.

◆ absUncWminusenu

Averages_36Invpb.absUncWminusenu

Definition at line 76 of file Averages_36Invpb.py.

◆ absUncWminusmunu

Averages_36Invpb.absUncWminusmunu

Definition at line 170 of file Averages_36Invpb.py.

◆ absUncWmunu

Averages_36Invpb.absUncWmunu

Definition at line 125 of file Averages_36Invpb.py.

◆ absUncWplusenu

Averages_36Invpb.absUncWplusenu

Definition at line 66 of file Averages_36Invpb.py.

◆ absUncWplusmunu

Averages_36Invpb.absUncWplusmunu

Definition at line 148 of file Averages_36Invpb.py.

◆ absUncWZe

Averages_36Invpb.absUncWZe

Definition at line 106 of file Averages_36Invpb.py.

◆ absUncWZmu

Averages_36Invpb.absUncWZmu

Definition at line 224 of file Averages_36Invpb.py.

◆ absUncZee

Averages_36Invpb.absUncZee

Definition at line 86 of file Averages_36Invpb.py.

◆ absUncZmumu

Averages_36Invpb.absUncZmumu

Definition at line 189 of file Averages_36Invpb.py.

◆ OPTION

Averages_36Invpb.OPTION

Definition at line 38 of file Averages_36Invpb.py.

◆ Ratioenu

Averages_36Invpb.Ratioenu

Definition at line 93 of file Averages_36Invpb.py.

◆ Ratiomunu

Averages_36Invpb.Ratiomunu

Definition at line 199 of file Averages_36Invpb.py.

◆ relSysAdd

Averages_36Invpb.relSysAdd

Definition at line 223 of file Averages_36Invpb.py.

◆ relSysLumi

Averages_36Invpb.relSysLumi

INPUTS FOLLOW (they are not the final version)

Definition at line 50 of file Averages_36Invpb.py.

◆ relSysSubtract

Averages_36Invpb.relSysSubtract

Definition at line 222 of file Averages_36Invpb.py.

◆ relUncBkg

Averages_36Invpb.relUncBkg

Definition at line 124 of file Averages_36Invpb.py.

◆ relUncEff

Averages_36Invpb.relUncEff

Definition at line 120 of file Averages_36Invpb.py.

◆ relUncEffW

Averages_36Invpb.relUncEffW

Definition at line 219 of file Averages_36Invpb.py.

◆ relUncFit

Averages_36Invpb.relUncFit

Definition at line 117 of file Averages_36Invpb.py.

◆ relUncMCStat

Averages_36Invpb.relUncMCStat

Definition at line 123 of file Averages_36Invpb.py.

◆ relUncMomRes

Averages_36Invpb.relUncMomRes

Definition at line 121 of file Averages_36Invpb.py.

◆ relUncMomResW

Averages_36Invpb.relUncMomResW

Definition at line 220 of file Averages_36Invpb.py.

◆ relUncMomResZ

Averages_36Invpb.relUncMomResZ

Definition at line 221 of file Averages_36Invpb.py.

◆ relUncPreTrig

Averages_36Invpb.relUncPreTrig

Definition at line 118 of file Averages_36Invpb.py.

◆ relUncRecoil

Averages_36Invpb.relUncRecoil

Definition at line 122 of file Averages_36Invpb.py.

◆ relUncSysEff

Averages_36Invpb.relUncSysEff

Definition at line 119 of file Averages_36Invpb.py.

◆ relUncTrigChanges

Averages_36Invpb.relUncTrigChanges

Definition at line 187 of file Averages_36Invpb.py.

◆ Wenu

Averages_36Invpb.Wenu

Definition at line 53 of file Averages_36Invpb.py.

◆ Wminusenu

Averages_36Invpb.Wminusenu

Definition at line 73 of file Averages_36Invpb.py.

◆ Wminusmunu

Averages_36Invpb.Wminusmunu

Definition at line 159 of file Averages_36Invpb.py.

◆ Wmunu

Averages_36Invpb.Wmunu

Definition at line 114 of file Averages_36Invpb.py.

◆ Wplusenu

Averages_36Invpb.Wplusenu

Definition at line 63 of file Averages_36Invpb.py.

◆ Wplusmunu

Averages_36Invpb.Wplusmunu

Definition at line 137 of file Averages_36Invpb.py.

◆ WZe

Averages_36Invpb.WZe

Definition at line 103 of file Averages_36Invpb.py.

◆ WZmu

Averages_36Invpb.WZmu

Definition at line 216 of file Averages_36Invpb.py.

◆ Zee

Averages_36Invpb.Zee

Definition at line 83 of file Averages_36Invpb.py.

◆ Zmumu

Averages_36Invpb.Zmumu

Definition at line 181 of file Averages_36Invpb.py.

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