1 |
mocchiut |
1.1 |
#include <TObject.h> |
2 |
|
|
|
3 |
|
|
class CalorimeterCalibration : public TObject { |
4 |
|
|
public: |
5 |
|
|
CalorimeterCalibration(); |
6 |
|
|
Int_t status; |
7 |
|
|
TString fname; |
8 |
|
|
Float_t mip[2][22][96]; |
9 |
|
|
Float_t ermip[2][22][96]; |
10 |
|
|
Float_t fp[4][2][22][96]; |
11 |
|
|
Float_t fpe[4][2][22][96]; |
12 |
|
|
Float_t chi2[2][22][96]; |
13 |
|
|
Float_t ndf[2][22][96]; |
14 |
|
|
Float_t mask[2][22][96]; |
15 |
|
|
}; |
16 |
|
|
|
17 |
|
|
class CalorimeterCalibScan : public TObject { |
18 |
|
|
public: |
19 |
|
|
CalorimeterCalibScan(); |
20 |
|
|
Int_t evno; |
21 |
|
|
Int_t etime[4]; |
22 |
|
|
Int_t cstwerr[4]; |
23 |
|
|
Float_t cperror[4]; |
24 |
|
|
Float_t calped[2][22][96]; |
25 |
|
|
Float_t calgood[2][22][96]; |
26 |
|
|
Float_t calthr[2][22][6]; |
27 |
|
|
Float_t calrms[2][22][96]; |
28 |
|
|
Float_t calbase[2][22][6]; |
29 |
|
|
Float_t calvar[2][22][6]; |
30 |
|
|
Double_t calno; |
31 |
|
|
}; |
32 |
|
|
|
33 |
|
|
CalorimeterCalibScan::CalorimeterCalibScan() { |
34 |
|
|
calno = 0.; |
35 |
|
|
evno = 0; |
36 |
|
|
for (Int_t a = 0; a < 4 ; a++){ |
37 |
|
|
etime[a] = 0; |
38 |
|
|
cperror[a] = 0.; |
39 |
|
|
cstwerr[a] = 0; |
40 |
|
|
}; |
41 |
|
|
for (Int_t i=0; i<2;i++){ |
42 |
|
|
for (Int_t j=0; j<22;j++){ |
43 |
|
|
for (Int_t m=0; m<96;m++){ |
44 |
|
|
calped[i][j][m] = 0.; |
45 |
|
|
calgood[i][j][m] = 0.; |
46 |
|
|
calrms[i][j][m] = 0.; |
47 |
|
|
if ( m < 6){ |
48 |
|
|
calbase[i][j][m] = 0.; |
49 |
|
|
calthr[i][j][m] = 0.; |
50 |
|
|
calvar[i][j][m] = 0.; |
51 |
|
|
}; |
52 |
|
|
}; |
53 |
|
|
}; |
54 |
|
|
}; |
55 |
|
|
}; |
56 |
|
|
|
57 |
|
|
class CalorimeterLevel1 : public TObject { |
58 |
|
|
public: |
59 |
|
|
CalorimeterLevel1(); |
60 |
|
|
Int_t evno; |
61 |
|
|
Int_t stwerr[4]; |
62 |
|
|
Int_t nobase; |
63 |
|
|
Int_t good[2][22][96]; |
64 |
|
|
Float_t perror[4]; |
65 |
|
|
Float_t nstrip; |
66 |
|
|
Float_t qtot; |
67 |
|
|
Float_t calevnum[4]; |
68 |
|
|
Float_t estrip[2][22][96]; |
69 |
|
|
Float_t diffbas[2][22][6]; |
70 |
|
|
}; |
71 |
|
|
|
72 |
|
|
CalorimeterLevel1::CalorimeterLevel1() { |
73 |
|
|
evno = 0; |
74 |
|
|
nobase = 0; |
75 |
|
|
nstrip = 0.; |
76 |
|
|
qtot = 0.; |
77 |
|
|
for (Int_t i=0; i<2;i++){ |
78 |
|
|
stwerr[i] = 0; |
79 |
|
|
perror[i] = 0.; |
80 |
|
|
calevnum[i] = 0.; |
81 |
|
|
}; |
82 |
|
|
for (Int_t i=0; i<2;i++){ |
83 |
|
|
for (Int_t j=0; j<22;j++){ |
84 |
|
|
for (Int_t m=0; m<96;m++){ |
85 |
|
|
if ( m < 6 ) diffbas[i][j][m] = 0.; |
86 |
|
|
estrip[i][j][m] = 0.; |
87 |
|
|
good[i][j][m] = 0; |
88 |
|
|
}; |
89 |
|
|
}; |
90 |
|
|
}; |
91 |
|
|
} |
92 |
|
|
|
93 |
|
|
|
94 |
|
|
CalorimeterCalibration::CalorimeterCalibration() { |
95 |
|
|
fname = "dw_000000_000.dat"; |
96 |
|
|
status = 0; |
97 |
|
|
for (Int_t i=0; i<2;i++){ |
98 |
|
|
for (Int_t j=0; j<22;j++){ |
99 |
|
|
for (Int_t m=0; m<96;m++){ |
100 |
|
|
mip[i][j][m] = 0.; |
101 |
|
|
ermip[i][j][m] = 0.; |
102 |
|
|
chi2[i][j][m] = 0.; |
103 |
|
|
ndf[i][j][m] = 0.; |
104 |
|
|
mask[i][j][m] = 0.; |
105 |
|
|
for (Int_t a = 0; a < 4 ; a++){ |
106 |
|
|
fp[a][i][j][m] = 0.; |
107 |
|
|
fpe[a][i][j][m] = 0.; |
108 |
|
|
}; |
109 |
|
|
}; |
110 |
|
|
}; |
111 |
|
|
}; |
112 |
|
|
}; |
113 |
|
|
|
114 |
|
|
class CalorimeterLevel2 : public TObject { |
115 |
|
|
public: |
116 |
|
|
CalorimeterLevel2(); |
117 |
|
|
Int_t OBT; |
118 |
|
|
Int_t pkt_num; |
119 |
|
|
Int_t pro_num; |
120 |
|
|
Float_t trigty; |
121 |
|
|
Bool_t good; |
122 |
|
|
Bool_t perr[4]; |
123 |
|
|
Bool_t swerr[4]; |
124 |
|
|
Bool_t crc[4]; |
125 |
|
|
Float_t nstrip; |
126 |
|
|
Float_t qtot; |
127 |
|
|
Float_t ncore; |
128 |
|
|
Float_t qcore; |
129 |
|
|
Float_t impx; |
130 |
|
|
Float_t impy; |
131 |
|
|
Float_t tanx; |
132 |
|
|
Float_t tany; |
133 |
|
|
Float_t nint; |
134 |
|
|
Float_t ncyl; |
135 |
|
|
Float_t qcyl; |
136 |
|
|
Float_t qtrack; |
137 |
|
|
Float_t qmax; |
138 |
|
|
Float_t nx22; |
139 |
|
|
Float_t qx22; |
140 |
|
|
Float_t qq[4]; |
141 |
|
|
Float_t qtrackx; |
142 |
|
|
Float_t qtracky; |
143 |
|
|
Float_t dxtrack; |
144 |
|
|
Float_t dytrack; |
145 |
|
|
Float_t qlast; |
146 |
|
|
Float_t nlast; |
147 |
|
|
Float_t qpre; |
148 |
|
|
Float_t npre; |
149 |
|
|
Float_t qpresh; |
150 |
|
|
Float_t npresh; |
151 |
|
|
Float_t qlow; |
152 |
|
|
Float_t nlow; |
153 |
|
|
Float_t qtr; |
154 |
|
|
Float_t ntr; |
155 |
|
|
Int_t cibar[22][2]; |
156 |
|
|
Int_t tibar[22][2]; |
157 |
|
|
Float_t cbar[22][2]; |
158 |
|
|
Float_t tbar[22][2]; |
159 |
|
|
}; |
160 |
|
|
CalorimeterLevel2::CalorimeterLevel2() { |
161 |
|
|
OBT = 0; |
162 |
|
|
pkt_num = 0; |
163 |
|
|
pro_num = 0; |
164 |
|
|
trigty = 0.; |
165 |
|
|
good = 0; |
166 |
|
|
nstrip = 0.; |
167 |
|
|
qtot = 0.; |
168 |
|
|
ncore = 0.; |
169 |
|
|
qcore = 0.; |
170 |
|
|
impx = 0.; |
171 |
|
|
impy = 0.; |
172 |
|
|
tanx = 0.; |
173 |
|
|
tany = 0.; |
174 |
|
|
nint = 0.; |
175 |
|
|
ncyl = 0.; |
176 |
|
|
qcyl = 0.; |
177 |
|
|
qtrack = 0.; |
178 |
|
|
qmax = 0.; |
179 |
|
|
nx22 = 0.; |
180 |
|
|
qx22 = 0.; |
181 |
|
|
qtrackx = 0.; |
182 |
|
|
qtracky = 0.; |
183 |
|
|
dxtrack = 0.; |
184 |
|
|
dytrack = 0.; |
185 |
|
|
qlast = 0.; |
186 |
|
|
nlast = 0.; |
187 |
|
|
qpre = 0.; |
188 |
|
|
npre = 0.; |
189 |
|
|
qpresh = 0.; |
190 |
|
|
npresh = 0.; |
191 |
|
|
qlow = 0.; |
192 |
|
|
nlow = 0.; |
193 |
|
|
qtr = 0.; |
194 |
|
|
ntr = 0.; |
195 |
|
|
for (Int_t i=0; i<4;i++){ |
196 |
|
|
qq[i] = 0.; |
197 |
|
|
swerr[i] = 0; |
198 |
|
|
perr[i] = 0; |
199 |
|
|
crc[i] = 0; |
200 |
|
|
}; |
201 |
|
|
for (Int_t i=0; i<2;i++){ |
202 |
|
|
for (Int_t j=0; j<22;j++){ |
203 |
|
|
cibar[j][i] = 0; |
204 |
|
|
cibar[j][i] = 0; |
205 |
|
|
cbar[j][i] = 0.; |
206 |
|
|
tbar[j][i] = 0.; |
207 |
|
|
}; |
208 |
|
|
}; |
209 |
|
|
}; |
210 |
|
|
|
211 |
|
|
class CalorimeterADCRAW : public TObject { |
212 |
|
|
public: |
213 |
|
|
CalorimeterADCRAW(); |
214 |
|
|
Int_t evno; |
215 |
|
|
Int_t etime; |
216 |
|
|
Float_t estrip[2][22][96]; |
217 |
|
|
Float_t diffbas[2][22][6]; |
218 |
|
|
}; |
219 |
|
|
CalorimeterADCRAW::CalorimeterADCRAW() { |
220 |
|
|
for (Int_t i=0; i<2;i++){ |
221 |
|
|
for (Int_t j=0; j<22;j++){ |
222 |
|
|
for (Int_t m=0; m<96;m++){ |
223 |
|
|
if ( m < 6 ) diffbas[i][j][m] = 0.; |
224 |
|
|
estrip[i][j][m] = 0.; |
225 |
|
|
}; |
226 |
|
|
}; |
227 |
|
|
}; |
228 |
|
|
}; |