CMS 3D CMS Logo

Functions | Variables

fitWZ Namespace Reference

Functions

def MyChi2

Variables

tuple arglist = array('d', 10*[0.])
float corrZEff = 0.236
tuple errpar0 = Double(0.0)
float ewxsection = 0.090
float ezxsection = 0.031
float finalChi2 = 0.0
tuple gMinuit = TMinuit()
tuple ier = Long(0)
tuple par0 = Double(0.0)
float sysEff = 0.013
float wxsection = 9.922
float zxsection = 0.924

Function Documentation

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

Definition at line 19 of file fitWZ.py.

00020                                     :
00021       # Inverse of (Zyield,sysEff) covariance matrix
00022       s11 = 1./ezxsection**2/(1.-corrZEff**2)
00023       s22 = 1./sysEff**2/(1.-corrZEff**2)
00024       s12 = -corrZEff/(1.-corrZEff**2)/ezxsection/sysEff
00025 
00026       # Build chi2
00027       wxsFit = x[0]*x[1]
00028       zxsFit = x[1]
00029       effFit = x[2]
00030       chi2[0] = (wxsFit*(1.+effFit)-wxsection)*(wxsFit*(1.+effFit)-wxsection)/ewxsection/ewxsection
00031       chi2[0] += (zxsFit-zxsection)*(zxsFit-zxsection) *s11
00032       chi2[0] += effFit*effFit * s22
00033       chi2[0] += 2*(zxsFit-zxsection)*effFit * s12
00034 
# Minimation, main program

Variable Documentation

tuple fitWZ::arglist = array('d', 10*[0.])
float fitWZ::corrZEff = 0.236

Definition at line 16 of file fitWZ.py.

tuple fitWZ::errpar0 = Double(0.0)

Definition at line 52 of file fitWZ.py.

float fitWZ::ewxsection = 0.090

Definition at line 12 of file fitWZ.py.

float fitWZ::ezxsection = 0.031

Definition at line 14 of file fitWZ.py.

float fitWZ::finalChi2 = 0.0

Definition at line 48 of file fitWZ.py.

tuple fitWZ::gMinuit = TMinuit()
tuple fitWZ::ier = Long(0)

Definition at line 39 of file fitWZ.py.

tuple fitWZ::par0 = Double(0.0)
float fitWZ::sysEff = 0.013

Definition at line 15 of file fitWZ.py.

float fitWZ::wxsection = 9.922

Definition at line 11 of file fitWZ.py.

float fitWZ::zxsection = 0.924

Definition at line 13 of file fitWZ.py.