BmnRoot
Loading...
Searching...
No Matches
FitWLSQ.h
Go to the documentation of this file.
1#include "TH1.h"
2
3#ifndef FITWLSQ_H
4#define FITWLSQ_H 1
5
6//
7//Advanced refit for tracks by Andrey Moshkin
8//
9class FitWLSQ {
10 Int_t NPoints;
11 Int_t NParams;
12public:
13 FitWLSQ(Double_t *xx, Double_t cSigma1 = 0.01, Double_t cSigma2 = 0.07, Double_t cP1 = 0.9,
14 Int_t nNPoints = 6, Int_t nNParams = 2, Bool_t RBF = kTRUE, Bool_t LHf = kTRUE, Int_t RBfn = 7); // constructor
15 ~FitWLSQ(); // destructor
16 Double_t param[3]; // fit parameters
17 Double_t cov[3][3]; // covariance matrix
18 Int_t numItera;
19 Double_t *wrb; // robust weights
20 Bool_t Status;
21
22 Bool_t Fit(Double_t *y);
23
24 Double_t WLSQRms(Double_t *pdY);
25
26private:
27 Double_t det3(Double_t a[3][3]);
28
29 Double_t alg_add(Double_t a[3][3], Int_t row, Int_t column);
30
31 void cov_matrix(Double_t a[3][3]);
32
33 Double_t f_lh(Double_t *yy, Double_t *zz, Double_t *w, Double_t *par);
34
35 Bool_t Initial(Double_t *trk);
36
37 void CheckMatrix(Double_t *pdA, Double_t *pdB, TString sz);
38
39 Bool_t SymMatrix(Double_t *pdA, Double_t *pdB);
40
41 Bool_t WLSQFit(Double_t *pdY);
42
43 Double_t WLSQGet(Double_t dX);
44
45 Bool_t par_check(Double_t *par, Double_t *par1);
46
47 void RB(Double_t *yy, Int_t);
48
49 void RBN(Double_t *yy, Int_t);
50
51 void RBM(Double_t *yy, Int_t);
52
53 void RB_OPT(Double_t *yy, Int_t);
54
55 void CovarianceMatrixPrint(void);
56
57 Double_t *sigmaF; // weights
58 Double_t *w; // weights
59 Double_t *x; // x coordinats
60 Double_t sigma_k; // robust sigma
61 Double_t Sigma1;
62 Double_t Sigma2;
63 Double_t P1;
64 Double_t resolution; // resolution
65 Bool_t RB_FIT;
66 Bool_t LH_INI;
67 Int_t RB_TYPE;
68};
69
70#endif
Double_t * wrb
Definition FitWLSQ.h:19
Bool_t Status
Definition FitWLSQ.h:20
Double_t WLSQRms(Double_t *pdY)
Definition FitWLSQ.cxx:358
Double_t param[3]
Definition FitWLSQ.h:16
Bool_t Fit(Double_t *y)
Definition FitWLSQ.cxx:622
Double_t cov[3][3]
Definition FitWLSQ.h:17
~FitWLSQ()
Definition FitWLSQ.cxx:46
Int_t numItera
Definition FitWLSQ.h:18