14#if !defined(PACKAGE_LPAV_H_INCLUDED)
15#define PACKAGE_LPAV_H_INCLUDED
21#include "CLHEP/Matrix/SymMatrix.h"
22#include "KalFitAlg/lpav/Lpar.h"
24 using CLHEP::HepVector;
25 using CLHEP::Hep3Vector;
26 using CLHEP::HepMatrix;
27 using CLHEP::HepSymMatrix;
52 double fit(
double x,
double y,
double w=1);
58 double nc()
const {
return m_nc; }
59 HepSymMatrix
cov(
int=0)
const;
60 HepSymMatrix
cov_c(
int=0)
const;
64 double chisq()
const {
return m_chisq; }
90 bool operator==(
const Lpav& )
const;
91 bool operator!=(
const Lpav& )
const;
94 void add(
double x,
double y,
double w=1,
double a=0,
double b=0);
95 void sub(
double x,
double y,
double w=1,
double a=0,
double b=0);
96 void calculate_average_n(
double xxav,
double yyav,
double xyav,
97 double xrrav,
double yrrav,
double rrrrav);
99 double nc(
double nc) { m_nc =
nc;
return m_nc; }
100 double solve_lambda(
void);
101 double solve_lambda3(
void);
143 m_xxsum = lp.m_xxsum;
144 m_yysum = lp.m_yysum;
145 m_xysum = lp.m_xysum;
146 m_xrrsum = lp.m_xrrsum;
147 m_yrrsum = lp.m_yrrsum;
148 m_rrrrsum = lp.m_rrrrsum;
150 m_wsum_temp = lp. m_wsum_temp;
153 m_xyavp = lp.m_xyavp;
155 m_rscale = lp. m_rscale;
156 m_xxavp = lp.m_xxavp;
157 m_yyavp = lp.m_yyavp;
158 m_xrravp = lp.m_xrravp;
159 m_yrravp = lp.m_yrravp;
160 m_rrrravp = lp.m_rrrravp;
161 m_sinrot = lp.m_sinrot;
162 m_cosrot = lp.m_cosrot;
165 m_chisq = lp.m_chisq;
173 m_xxsum = lp.m_xxsum;
174 m_yysum = lp.m_yysum;
175 m_xysum = lp.m_xysum;
176 m_xrrsum = lp.m_xrrsum;
177 m_yrrsum = lp.m_yrrsum;
178 m_rrrrsum = lp.m_rrrrsum;
180 m_wsum_temp = lp. m_wsum_temp;
183 m_xyavp = lp.m_xyavp;
185 m_rscale = lp. m_rscale;
186 m_xxavp = lp.m_xxavp;
187 m_yyavp = lp.m_yyavp;
188 m_xrravp = lp.m_xrravp;
189 m_yrravp = lp.m_yrravp;
190 m_rrrravp = lp.m_rrrravp;
191 m_sinrot = lp.m_sinrot;
192 m_cosrot = lp.m_cosrot;
195 m_chisq = lp.m_chisq;
200 m_wsum = m_xsum = m_ysum = m_xxsum = m_yysum = m_xysum
201 = m_xrrsum = m_yrrsum = m_rrrrsum = m_rscale = m_nc = 0;
const Lpar & operator=(const Lpar &)
double calculate_lpar3(void)
void add_point(double x, double y, double w=1)
friend Lpav operator+(const Lpav &, const Lpav &)
double fit(double x, double y, double w=1)
HepSymMatrix cov_c(int=0) const
void calculate_average3(void)
void calculate_average(void)
double calculate_lpar(void)
friend std::ostream & operator<<(std::ostream &o, const Lpav &s)
void add_point_frac(double x, double y, double w, double f)
void calculate_average3(double x, double y, double w=1)
double delta_chisq(double x, double y, double w=1) const
int extrapolate(double, double &, double &) const
const Lpav & operator=(const Lpav &)
const Lpav & operator+=(const Lpav &)
const Lpav & operator=(const Lpar &)
double similarity(double, double) const
HepSymMatrix cov(int=0) const
void calculate_average(double x, double y, double w=1)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")