1 |
#include <TTree.h> |
2 |
#include <TClassEdit.h> |
3 |
#include <TObject.h> |
4 |
#include <TList.h> |
5 |
#include <TSystem.h> |
6 |
#include <TSystemDirectory.h> |
7 |
#include <TString.h> |
8 |
#include <TFile.h> |
9 |
#include <TClass.h> |
10 |
#include <TCanvas.h> |
11 |
#include <TH1.h> |
12 |
#include <TH1F.h> |
13 |
#include <TH2D.h> |
14 |
#include <TLatex.h> |
15 |
#include <TPad.h> |
16 |
#include <TPaveLabel.h> |
17 |
#include <TChain.h> |
18 |
#include <caloclassesfun.h> |
19 |
ClassImp(CalorimeterCalibration); |
20 |
ClassImp(CalorimeterCalibScan); |
21 |
ClassImp(CalorimeterLevel1); |
22 |
ClassImp(CalorimeterLevel2); |
23 |
ClassImp(CalorimeterADCRAW); |
24 |
|
25 |
CalorimeterCalibration::CalorimeterCalibration() { |
26 |
fname = "dw_000000_000.dat"; |
27 |
status = 0; |
28 |
for (Int_t i=0; i<2;i++){ |
29 |
for (Int_t j=0; j<22;j++){ |
30 |
for (Int_t m=0; m<96;m++){ |
31 |
mip[i][j][m] = 0.; |
32 |
ermip[i][j][m] = 0.; |
33 |
chi2[i][j][m] = 0.; |
34 |
ndf[i][j][m] = 0.; |
35 |
mask[i][j][m] = 0.; |
36 |
for (Int_t a = 0; a < 4 ; a++){ |
37 |
fp[a][i][j][m] = 0.; |
38 |
fpe[a][i][j][m] = 0.; |
39 |
}; |
40 |
}; |
41 |
}; |
42 |
}; |
43 |
}; |
44 |
|
45 |
CalorimeterCalibScan::CalorimeterCalibScan() { |
46 |
calno = 0.; |
47 |
evno = 0; |
48 |
for (Int_t a = 0; a < 4 ; a++){ |
49 |
etime[a] = 0; |
50 |
cperror[a] = 0.; |
51 |
cstwerr[a] = 0; |
52 |
}; |
53 |
for (Int_t i=0; i<2;i++){ |
54 |
for (Int_t j=0; j<22;j++){ |
55 |
for (Int_t m=0; m<96;m++){ |
56 |
calped[i][j][m] = 0.; |
57 |
calgood[i][j][m] = 0.; |
58 |
calrms[i][j][m] = 0.; |
59 |
if ( m < 6){ |
60 |
calbase[i][j][m] = 0.; |
61 |
calthr[i][j][m] = 0.; |
62 |
calvar[i][j][m] = 0.; |
63 |
}; |
64 |
}; |
65 |
}; |
66 |
}; |
67 |
}; |
68 |
|
69 |
CalorimeterLevel1::CalorimeterLevel1() { |
70 |
evno = 0; |
71 |
nobase = 0; |
72 |
nstrip = 0.; |
73 |
qtot = 0.; |
74 |
for (Int_t i=0; i<2;i++){ |
75 |
stwerr[i] = 0; |
76 |
perror[i] = 0.; |
77 |
calevnum[i] = 0.; |
78 |
}; |
79 |
for (Int_t i=0; i<2;i++){ |
80 |
for (Int_t j=0; j<22;j++){ |
81 |
for (Int_t m=0; m<96;m++){ |
82 |
if ( m < 6 ) diffbas[i][j][m] = 0.; |
83 |
estrip[i][j][m] = 0.; |
84 |
good[i][j][m] = 0; |
85 |
}; |
86 |
}; |
87 |
}; |
88 |
} |
89 |
|
90 |
CalorimeterLevel2::CalorimeterLevel2() { |
91 |
OBT = 0; |
92 |
pkt_num = 0; |
93 |
pro_num = 0; |
94 |
trigty = 0.; |
95 |
good = 0; |
96 |
nstrip = 0.; |
97 |
qtot = 0.; |
98 |
ncore = 0.; |
99 |
qcore = 0.; |
100 |
impx = 0.; |
101 |
impy = 0.; |
102 |
tanx = 0.; |
103 |
tany = 0.; |
104 |
nint = 0.; |
105 |
ncyl = 0.; |
106 |
qcyl = 0.; |
107 |
qtrack = 0.; |
108 |
qmax = 0.; |
109 |
nx22 = 0.; |
110 |
qx22 = 0.; |
111 |
qtrackx = 0.; |
112 |
qtracky = 0.; |
113 |
dxtrack = 0.; |
114 |
dytrack = 0.; |
115 |
qlast = 0.; |
116 |
nlast = 0.; |
117 |
qpre = 0.; |
118 |
npre = 0.; |
119 |
qpresh = 0.; |
120 |
npresh = 0.; |
121 |
qlow = 0.; |
122 |
nlow = 0.; |
123 |
qtr = 0.; |
124 |
ntr = 0.; |
125 |
for (Int_t i=0; i<4;i++){ |
126 |
qq[i] = 0.; |
127 |
swerr[i] = 0; |
128 |
perr[i] = 0; |
129 |
crc[i] = 0; |
130 |
}; |
131 |
for (Int_t i=0; i<2;i++){ |
132 |
for (Int_t j=0; j<22;j++){ |
133 |
cibar[j][i] = 0; |
134 |
cibar[j][i] = 0; |
135 |
cbar[j][i] = 0.; |
136 |
tbar[j][i] = 0.; |
137 |
}; |
138 |
}; |
139 |
}; |
140 |
|
141 |
CalorimeterADCRAW::CalorimeterADCRAW() { |
142 |
for (Int_t i=0; i<2;i++){ |
143 |
for (Int_t j=0; j<22;j++){ |
144 |
for (Int_t m=0; m<96;m++){ |
145 |
if ( m < 6 ) diffbas[i][j][m] = 0.; |
146 |
estrip[i][j][m] = 0.; |
147 |
}; |
148 |
}; |
149 |
}; |
150 |
}; |