CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

19 
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 
# Minimation, main program
def MyChi2
Definition: fitWZ.py:19

Variable Documentation

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

Definition at line 38 of file fitWZ.py.

Referenced by LASBarrelAlgorithm.CalculateParameters(), MuonResidualsFitter.dofit(), HOCalibAnalyzer.endJob(), fit::RootMinuit< Function >.init(), fit::RootMinuit< Function >.migrad(), and fit::RootMinuit< Function >.minimize().

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

Definition at line 35 of file fitWZ.py.

Referenced by SiPixelSCurveCalibrationAnalysis.doFits(), HOCalibAnalyzer.endJob(), Fit_MaximumPoint(), TkLasBeamFitter.fitter(), and EcalUncalibRecHitRecAnalFitAlgo< EBDataFrame >.makeRecHit().

tuple fitWZ.ier = Long(0)

Definition at line 39 of file fitWZ.py.

tuple fitWZ.par0 = Double(0.0)

Definition at line 51 of file fitWZ.py.

Referenced by EnergyUncertaintyElectronSpecific.computeElectronEnergyUncertainty_badtrack(), EnergyUncertaintyElectronSpecific.computeElectronEnergyUncertainty_bigbrem(), EnergyUncertaintyElectronSpecific.computeElectronEnergyUncertainty_cracks(), EnergyUncertaintyElectronSpecific.computeElectronEnergyUncertainty_golden(), EnergyUncertaintyElectronSpecific.computeElectronEnergyUncertainty_showering(), EnergyUncertaintyPhotonSpecific.computePhotonEnergyUncertainty_highR9(), EnergyUncertaintyPhotonSpecific.computePhotonEnergyUncertainty_lowR9(), DTNoiseComputation.endJob(), ElectronEnergyCorrector.fBremEta(), EcalClusterEnergyCorrectionObjectSpecific.fBremEta(), ElectronEnergyCorrector.fEnergy(), EcalClusterEnergyCorrectionObjectSpecific.fEnergy(), EcalClusterEnergyCorrectionObjectSpecific.fEt(), EcalClusterEnergyUncertaintyObjectSpecific.getValue(), and SiPixelDigitizerAlgorithm.initCal().

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.