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 |
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
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(), fit::RootMinuit< Function >::minimize(), and Vx3DHLTAnalyzer::MyFit().
float fitWZ::corrZEff = 0.236 |
tuple fitWZ::errpar0 = Double(0.0) |
float fitWZ::ewxsection = 0.090 |
float fitWZ::ezxsection = 0.031 |
float fitWZ::finalChi2 = 0.0 |
tuple fitWZ::gMinuit = TMinuit() |
Definition at line 35 of file fitWZ.py.
Referenced by SiPixelSCurveCalibrationAnalysis::doFits(), HOCalibAnalyzer::endJob(), Fit_MaximumPoint(), TrackTransformerForGlobalCosmicMuons::fitter(), and EcalUncalibRecHitRecAnalFitAlgo< EBDataFrame >::makeRecHit().
tuple fitWZ::ier = Long(0) |
tuple fitWZ::par0 = Double(0.0) |
Definition at line 51 of file fitWZ.py.
Referenced by DTNoiseComputation::endJob(), and SiPixelDigitizerAlgorithm::SiPixelDigitizerAlgorithm().
float fitWZ::sysEff = 0.013 |
float fitWZ::wxsection = 9.922 |
float fitWZ::zxsection = 0.924 |