File indexing completed on 2024-04-06 11:57:47
0001 #ifndef TSFit_H
0002 #define TSFit_H
0003
0004 #include "TObject.h"
0005
0006 class TSFit : public TObject {
0007 public:
0008 static constexpr unsigned int SDIM = 14;
0009 static constexpr unsigned int PLSHDIM = 650;
0010 static constexpr int matdim = 5;
0011 static constexpr unsigned int diminpar = 10;
0012 static constexpr unsigned int dimoutpar = 10;
0013 static constexpr unsigned int npar_moni = 4;
0014
0015 private:
0016
0017
0018
0019
0020
0021 int nbs;
0022 int n_presamples;
0023 int iinf, isup;
0024 double avtm;
0025 int n_samples_bef_max;
0026 int n_samples_aft_max;
0027
0028
0029
0030 double xki2_max, norme;
0031
0032 int nmxu_sto;
0033 double alpha_th, beta_th;
0034 int nbr_iter_fit;
0035 double cov[matdim][matdim], invcov[matdim][matdim];
0036 double al[matdim][matdim], be[matdim][matdim];
0037
0038
0039
0040 double parfp3[dimoutpar];
0041
0042
0043
0044
0045
0046
0047 double errmat[SDIM][SDIM];
0048 int sample_flag[SDIM];
0049 double t[SDIM];
0050 double z[SDIM];
0051 double f[SDIM];
0052 double acc[SDIM];
0053 double adfmx[SDIM];
0054 double adcp[SDIM];
0055 double maskp3[SDIM];
0056 double corel[SDIM];
0057 double nbcor[SDIM];
0058
0059 double ff[SDIM][4];
0060 double der[SDIM][5];
0061
0062 public:
0063 int sdim;
0064 int plshdim;
0065
0066 TSFit(int size = SDIM, int size_sh = PLSHDIM);
0067
0068 ~TSFit() override {}
0069
0070 void set_params(int, int, int, int, int, double, double, int, int);
0071
0072 void init_errmat(double);
0073
0074 double fit_third_degree_polynomial(double *, double *);
0075
0076 double fpol3dg(int, double *, double *, double *);
0077
0078 double inverms(int, double xx[matdim][matdim], double yy[matdim][matdim]);
0079
0080 ClassDefOverride(TSFit, 0)
0081 };
0082
0083 #endif