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