6#include "CLHEP/Matrix/Matrix.h"
7#include "CLHEP/Matrix/SymMatrix.h"
16 double chisq()
const {
return _chisq; }
17 void add(
double ,
double,
double);
20 double a()
const {
return _a; }
21 double b()
const {
return _b; }
22 double z(
double s)
const {
return _a *
s + _b; }
23 double d(
double s,
double z)
const {
return z - _a *
s - _b; }
24 int nc()
const {
return _nc; }
26 inline friend std::ostream&
operator<<(std::ostream&,
const zav&);
47 _a = _b = _w = _sav = _ssav = _zav = _szav = _zzav = 0;
49 _c22 = _c21 = _c11 = _sig_inv = 0;
54 _w = _sav = _ssav = _zav = _szav = _zzav = 0;
56 _c22 = _c21 = _c11 = _sig_inv = 0;
68 _sig_inv = c->_sig_inv;
74 _w = _sav = _ssav = _zav = _szav = _zzav =
75 _sig_inv = _c11 = _c21 = _c22 = 0;
82inline void zav::add(
double s,
double z,
double w) {
115 double sig = _ssav * _w - _sav * _sav;
118 _a = ( _szav * _w - _sav * _zav ) * _sig_inv;
119 _b = ( _ssav * _zav - _sav * _szav ) * _sig_inv;
120 _chisq = _zzav - 2 * _a * _szav - 2 * _b * _zav + _a * _a * _ssav
121 + _b * _b * _w + 2 * _a * _b * _sav;
122 _c11 = _w * _sig_inv;
123 _c21 = - _sav * _sig_inv;
124 _c22 = _ssav * _sig_inv;
127 _c11 = _c21 = _c22 = 0;
137 o <<
" zav::w=" << z._w <<
" sav=" << z._sav <<
" zav=" << z._zav
138 <<
" nc=" << z._nc <<
" chisq=" << z._chisq <<
" a=" << z._a
139 <<
" b=" << z._b <<
" c11=" << z._c11 <<
" c21=" << z._c21
140 <<
" c22=" << z._c22 <<
" sig_inv=" << z._sig_inv << std::endl;
std::ostream & operator<<(std::ostream &o, const zav &z)
friend std::ostream & operator<<(std::ostream &, const zav &)
void add(double, double, double)
double d(double s, double z) const