Main Page
Namespaces
Classes
Package Documentation
src
CalibCalorimetry
EcalLaserAnalyzer
interface
TSFit.h
Go to the documentation of this file.
1
#ifndef TSFit_H
2
#define TSFit_H
3
4
#define SDIM 14
/* default number of samples for cristal */
5
#define PLSHDIM 650
/* default size of the pulse shape array */
6
//these 2 last parameters are overwritten in constructor
7
8
9
#define matdim 5
/* parameters fit max matrice size */
10
#define diminpar 10
11
#define dimoutpar 10
12
#define npar_moni 4
13
14
#include "TObject.h"
15
16
class
TSFit
:
public
TObject {
17
private
:
18
/*
19
nbs = nb of samples in sample data array[sdim] nbs<=sdim
20
nmxu number of samples to be used to fit the apd pulse shape
21
nmxu<=nbs
22
*/
23
int
nbs
;
24
int
n_presamples
;
25
int
iinf
,
isup
;
//limits indices for max search using pshape
26
double
avtm
;
// mean time in clock unit of the maximums
27
int
n_samples_bef_max
;
//number of samples before and after sample max
28
int
n_samples_aft_max
;
//to be used in pulse fit
29
//( theoritical and experimental )
30
//the total number of samples used is
31
//n_samples_bef_max+n_samples_aft_max+1
32
double
xki2_max
,
norme
;
33
// int *sample_flag;
34
int
nmxu_sto
;
35
double
alpha_th
,
beta_th
;
36
int
nbr_iter_fit
;
37
double
cov
[
matdim
][
matdim
],
invcov
[
matdim
][
matdim
];
38
double
al
[
matdim
][
matdim
],
be
[
matdim
][
matdim
];
//intern to inverms
39
//double *t, *z, *f, *acc, *adfmx, *maskp3, *adcp, *corel, *nbcor; //[sdim]
40
//double **ff; //[sdim][4]
41
//double **der=new double[SDIM];//[sdim][5]
42
double
parfp3
[
dimoutpar
];
43
44
//double *tb, *fb, *accb;//[plshdim]
45
//int *sample_flag_call;//[plshdim]
46
//double **derb; //[plshdim][5]
47
//double **coeff;//[plshdim][3]
48
49
50
double
errmat
[
SDIM
][
SDIM
];
//inverse of error matrix
51
int
sample_flag
[
SDIM
];
52
double
t
[
SDIM
];
53
double
z
[
SDIM
];
54
double
f
[
SDIM
];
55
double
acc
[
SDIM
];
56
double
adfmx
[
SDIM
];
57
double
adcp
[
SDIM
];
58
double
maskp3
[
SDIM
];
59
double
corel
[
SDIM
];
60
double
nbcor
[
SDIM
];
61
62
double
ff
[
SDIM
][4];
63
double
der
[
SDIM
][5];
64
65
66
public
:
67
int
sdim
;
68
int
plshdim
;
69
70
TSFit
(
int
size
=
SDIM
,
int
size_sh =
PLSHDIM
);
71
72
~TSFit
()
override
{}
73
74
void
set_params
(
int
,
int
,
int
,
int
,
int
,
double
,
double
,
int
,
int
);
75
76
void
init_errmat
(
double
);
77
78
double
fit_third_degree_polynomial
(
double
*,
79
double
* );
80
81
82
double
fpol3dg
(
int
,
83
double
*,
84
double
*,
85
double
*);
86
87
double
inverms
(
int
,
double
xx
[
matdim
][
matdim
],
double
yy
[matdim][matdim] );
88
89
ClassDefOverride(
TSFit
, 0 )
90
};
91
92
#endif
93
94
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
TSFit::avtm
double avtm
Definition:
TSFit.h:26
TSFit::TSFit
TSFit(int size=14, int size_sh=650)
Definition:
TSFit.cc:19
TSFit::z
double z[14]
Definition:
TSFit.h:53
TSFit::n_samples_bef_max
int n_samples_bef_max
Definition:
TSFit.h:27
TSFit::f
double f[14]
Definition:
TSFit.h:54
TSFit::der
double der[14][5]
Definition:
TSFit.h:63
TSFit::sample_flag
int sample_flag[14]
Definition:
TSFit.h:51
TSFit::alpha_th
double alpha_th
Definition:
TSFit.h:35
TSFit::nbs
int nbs
Definition:
TSFit.h:23
TSFit::adfmx
double adfmx[14]
Definition:
TSFit.h:56
matdim
#define matdim
Definition:
TSFit.h:9
TSFit::al
double al[5][5]
Definition:
TSFit.h:38
TSFit::xki2_max
double xki2_max
Definition:
TSFit.h:32
TSFit::fit_third_degree_polynomial
double fit_third_degree_polynomial(double *, double *)
Definition:
TSFit.cc:256
TSFit::fpol3dg
double fpol3dg(int, double *, double *, double *)
Definition:
TSFit.cc:103
geometryCSVtoXML.yy
yy
Definition:
geometryCSVtoXML.py:19
TSFit::plshdim
int plshdim
Definition:
TSFit.h:68
TSFit::n_presamples
int n_presamples
Definition:
TSFit.h:24
TSFit::ff
double ff[14][4]
Definition:
TSFit.h:62
TSFit::acc
double acc[14]
Definition:
TSFit.h:55
TSFit::be
double be[5][5]
Definition:
TSFit.h:38
TSFit::adcp
double adcp[14]
Definition:
TSFit.h:57
TSFit::norme
double norme
Definition:
TSFit.h:32
TSFit::beta_th
double beta_th
Definition:
TSFit.h:35
TSFit::nbcor
double nbcor[14]
Definition:
TSFit.h:60
TSFit::init_errmat
void init_errmat(double)
Definition:
TSFit.cc:85
TSFit::maskp3
double maskp3[14]
Definition:
TSFit.h:58
TSFit::corel
double corel[14]
Definition:
TSFit.h:59
TSFit::nbr_iter_fit
int nbr_iter_fit
Definition:
TSFit.h:36
TSFit::inverms
double inverms(int, double xx[5][5], double yy[5][5])
Definition:
TSFit.cc:188
TSFit::sdim
int sdim
Definition:
TSFit.h:67
TSFit::~TSFit
~TSFit() override
Definition:
TSFit.h:72
geometryCSVtoXML.xx
xx
Definition:
geometryCSVtoXML.py:19
TSFit::invcov
double invcov[5][5]
Definition:
TSFit.h:37
TSFit::t
double t[14]
Definition:
TSFit.h:52
TSFit::errmat
double errmat[14][14]
Definition:
TSFit.h:50
TSFit::n_samples_aft_max
int n_samples_aft_max
Definition:
TSFit.h:28
TSFit::isup
int isup
Definition:
TSFit.h:25
TSFit::iinf
int iinf
Definition:
TSFit.h:25
SDIM
#define SDIM
Definition:
TSFit.h:4
dimoutpar
#define dimoutpar
Definition:
TSFit.h:11
TSFit::set_params
void set_params(int, int, int, int, int, double, double, int, int)
Definition:
TSFit.cc:41
TSFit
Definition:
TSFit.h:16
TSFit::nmxu_sto
int nmxu_sto
Definition:
TSFit.h:34
PLSHDIM
#define PLSHDIM
Definition:
TSFit.h:5
TSFit::parfp3
double parfp3[10]
Definition:
TSFit.h:42
TSFit::cov
double cov[5][5]
Definition:
TSFit.h:37
Generated for CMSSW Reference Manual by
1.8.11