1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#ifndef TShapeAnalysis_H
#define TShapeAnalysis_H
#include "TObject.h"
#include <vector>
class TTree;
class TShapeAnalysis : public TObject {
public:
static constexpr int fNchsel = 1700;
private:
char filename[80];
long int timestart, timestop;
int index[fNchsel], npass[fNchsel];
int nsamplecristal, sampbmax, sampamax, nevt;
int presample;
double noise;
double alpha0, beta0;
double alpha_val[fNchsel], beta_val[fNchsel], width_val[fNchsel], chi2_val[fNchsel];
int flag_val[fNchsel];
double alpha_init[fNchsel], beta_init[fNchsel], width_init[fNchsel], chi2_init[fNchsel];
int flag_init[fNchsel], eta_init[fNchsel], phi_init[fNchsel];
int dcc_init[fNchsel], tower_init[fNchsel], ch_init[fNchsel], side_init[fNchsel];
double rawsglu[fNchsel][200][10];
double npassok[fNchsel];
TTree *tABinit;
TTree *tABout;
double chi2cut;
int nchsel;
void init(double, double, double, double);
void init(TTree *tAB, double, double, double, double);
public:
// Default Constructor, mainly for Root
TShapeAnalysis(double, double, double, double);
// Default Constructor, mainly for Root
TShapeAnalysis(TTree *tAB, double, double, double, double);
// Destructor: Does nothing
~TShapeAnalysis() override;
void set_const(int, int, int, int, int, double, double);
void set_presample(int);
void set_nch(int);
void assignChannel(int, int);
void putDateStart(long int);
void putDateStop(long int);
void getDateStart();
void getDateStop();
void putAllVals(int, double *, int, int);
void putAllVals(int, double *, int, int, int, int, int, int);
void putalphaVal(int, double);
void putbetaVal(int, double);
void putwidthVal(int, double);
void putchi2Val(int, double);
void putflagVal(int, int);
void putalphaInit(int, double);
void putbetaInit(int, double);
void putwidthInit(int, double);
void putchi2Init(int, double);
void putflagInit(int, int);
void putetaInit(int, int);
void putphiInit(int, int);
void computeShape(std::string namefile, TTree *);
void computetmaxVal(int, double *);
void printshapeData(int);
std::vector<double> getVals(int);
std::vector<double> getInitVals(int);
ClassDefOverride(TShapeAnalysis, 0)
};
#endif
|