CMS 3D CMS Logo

Functions | Variables
fitWZ Namespace Reference

Functions

def MyChi2 (npar, g, chi2, x, iflag)
 

Variables

 arglist
 
 corrZEff
 
 errpar0
 
 ewxsection
 
 ezxsection
 
 finalChi2
 
 gMinuit
 
 ier
 
 par0
 
 sysEff
 
 wxsection
 
 zxsection
 

Function Documentation

◆ MyChi2()

def fitWZ.MyChi2 (   npar,
  g,
  chi2,
  x,
  iflag 
)

Definition at line 20 of file fitWZ.py.

20 def MyChi2 (npar, g, chi2, x, iflag):
21  # Inverse of (Zyield,sysEff) covariance matrix
22  s11 = 1./ezxsection**2/(1.-corrZEff**2)
23  s22 = 1./sysEff**2/(1.-corrZEff**2)
24  s12 = -corrZEff/(1.-corrZEff**2)/ezxsection/sysEff
25 
26  # Build chi2
27  wxsFit = x[0]*x[1]
28  zxsFit = x[1]
29  effFit = x[2]
30  chi2[0] = (wxsFit*(1.+effFit)-wxsection)*(wxsFit*(1.+effFit)-wxsection)/ewxsection/ewxsection
31  chi2[0] += (zxsFit-zxsection)*(zxsFit-zxsection) *s11
32  chi2[0] += effFit*effFit * s22
33  chi2[0] += 2*(zxsFit-zxsection)*effFit * s12
34 
35 # Minimation, main program

Variable Documentation

◆ arglist

fitWZ.arglist

◆ corrZEff

fitWZ.corrZEff

Definition at line 17 of file fitWZ.py.

◆ errpar0

fitWZ.errpar0

Definition at line 53 of file fitWZ.py.

◆ ewxsection

fitWZ.ewxsection

Definition at line 13 of file fitWZ.py.

◆ ezxsection

fitWZ.ezxsection

Definition at line 15 of file fitWZ.py.

◆ finalChi2

fitWZ.finalChi2

Definition at line 49 of file fitWZ.py.

◆ gMinuit

fitWZ.gMinuit

◆ ier

fitWZ.ier

Definition at line 40 of file fitWZ.py.

◆ par0

fitWZ.par0

◆ sysEff

fitWZ.sysEff

Definition at line 16 of file fitWZ.py.

◆ wxsection

fitWZ.wxsection

Definition at line 12 of file fitWZ.py.

◆ zxsection

fitWZ.zxsection

Definition at line 14 of file fitWZ.py.

fitWZ.MyChi2
def MyChi2(npar, g, chi2, x, iflag)
Definition: fitWZ.py:20