51 |
float sigma_t[128][24][12]; |
float sigma_t[128][24][12]; |
52 |
int bad[128][24][12]; |
int bad[128][24][12]; |
53 |
|
|
54 |
|
void Reset(){ |
55 |
|
for(int is=0; is<128; is++){ |
56 |
|
for(int ivk=0; ivk<24; ivk++){ |
57 |
|
for(int iv=0; iv<12; iv++){ |
58 |
|
pedestal[is][ivk][iv]=0.; |
59 |
|
pedestal_t[is][ivk][iv]=0.; |
60 |
|
sigma[is][ivk][iv]=0.; |
61 |
|
sigma_t[is][ivk][iv]=0.; |
62 |
|
bad[is][ivk][iv]=1; |
63 |
|
} |
64 |
|
} |
65 |
|
} |
66 |
|
} |
67 |
|
|
68 |
/* void FillACalibFrom(TFile* , Int_t , Int_t ); */ |
/* void FillACalibFrom(TFile* , Int_t , Int_t ); */ |
69 |
/* void FillFCalibFrom(TFile* , Int_t , Int_t ); */ |
/* void FillFCalibFrom(TFile* , Int_t , Int_t ); */ |
70 |
/* void FillTCalibFrom(TFile* , Int_t , Int_t ); */ |
/* void FillTCalibFrom(TFile* , Int_t , Int_t ); */ |
138 |
struct cTrkLevel2 { |
struct cTrkLevel2 { |
139 |
// int good2; |
// int good2; |
140 |
// int crc[12]; |
// int crc[12]; |
141 |
int good[12]; |
int good[12]; |
142 |
|
int vkflag[24][12]; |
143 |
// ---------------------------- |
// ---------------------------- |
144 |
int nclsx; |
int nclsx; |
145 |
int planex[NSINGMAX]; |
int planex[NSINGMAX]; |
160 |
float zm_nt[NTRKMAX][6]; |
float zm_nt[NTRKMAX][6]; |
161 |
float resx_nt[NTRKMAX][6]; |
float resx_nt[NTRKMAX][6]; |
162 |
float resy_nt[NTRKMAX][6]; |
float resy_nt[NTRKMAX][6]; |
163 |
|
float tailx[NTRKMAX][6]; |
164 |
|
float taily[NTRKMAX][6]; |
165 |
float al_nt[NTRKMAX][5]; |
float al_nt[NTRKMAX][5]; |
166 |
float coval[NTRKMAX][5][5]; |
float coval[NTRKMAX][5][5]; |
167 |
float chi2_nt[NTRKMAX]; |
float chi2_nt[NTRKMAX]; |
168 |
int nstep_nt[NTRKMAX]; |
int nstep_nt[NTRKMAX]; |
169 |
int xgood_nt[NTRKMAX][6]; |
int xgood_nt[NTRKMAX][6]; |
170 |
int ygood_nt[NTRKMAX][6]; |
int ygood_nt[NTRKMAX][6]; |
171 |
|
int ls[NTRKMAX][6]; |
172 |
|
int xbad[NTRKMAX][6]; |
173 |
|
int ybad[NTRKMAX][6]; |
174 |
float xv_nt[NTRKMAX][6]; |
float xv_nt[NTRKMAX][6]; |
175 |
float yv_nt[NTRKMAX][6]; |
float yv_nt[NTRKMAX][6]; |
176 |
float zv_nt[NTRKMAX][6]; |
float zv_nt[NTRKMAX][6]; |
182 |
int cltry[NTRKMAX][6]; |
int cltry[NTRKMAX][6]; |
183 |
// float bdl[NTRKMAX]; |
// float bdl[NTRKMAX]; |
184 |
|
|
185 |
void InitcTrkLevel2(){ |
void InitcTrkLevel2(){ |
186 |
|
|
187 |
// good2 = 0; |
// good2 = 0; |
188 |
for(Int_t i=0; i<12 ; i++) |
for(Int_t i=0; i<12 ; i++){ |
189 |
// crc[i] = 0; |
good[i] = 0; |
190 |
good[i] = 0; |
for(Int_t ii=0; ii<24 ; ii++)vkflag[ii][i]=0; |
191 |
// ---------------------------- |
} |
192 |
nclsx = 0; |
// ---------------------------- |
193 |
nclsy = 0; |
nclsx = 0; |
194 |
for(Int_t i=0; i<NSINGMAX ; i++){ |
nclsy = 0; |
195 |
planex[i] = 0; |
for(Int_t i=0; i<NSINGMAX ; i++){ |
196 |
xs[i][0] = 0; |
planex[i] = 0; |
197 |
xs[i][1] = 0; |
xs[i][0] = 0; |
198 |
signlxs[i] = 0; |
xs[i][1] = 0; |
199 |
planey[i] = 0; |
signlxs[i] = 0; |
200 |
ys[i][0] = 0; |
planey[i] = 0; |
201 |
ys[i][1] = 0; |
ys[i][0] = 0; |
202 |
signlys[i] = 0; |
ys[i][1] = 0; |
203 |
} |
signlys[i] = 0; |
204 |
// ---------------------------- |
} |
205 |
ntrk =0 ; |
// ---------------------------- |
206 |
|
ntrk =0 ; |
207 |
for(Int_t i=0; i<NTRKMAX ; i++){ |
|
208 |
image[i] = 0; |
for(Int_t i=0; i<NTRKMAX ; i++){ |
209 |
chi2_nt[i] = 0; |
image[i] = 0; |
210 |
|
chi2_nt[i] = 0; |
211 |
// bdl[i] = 0; |
// bdl[i] = 0; |
212 |
|
|
213 |
for(Int_t ii=0; ii<5 ; ii++){ |
for(Int_t ii=0; ii<5 ; ii++){ |
214 |
al_nt[i][ii] = 0; |
al_nt[i][ii] = 0; |
215 |
for(Int_t iii=0; iii<5 ; iii++) |
for(Int_t iii=0; iii<5 ; iii++) |
216 |
coval[i][ii][iii] = 0; |
coval[i][ii][iii] = 0; |
217 |
} |
} |
218 |
|
|
219 |
for(Int_t ii=0; ii<6 ; ii++){ |
for(Int_t ii=0; ii<6 ; ii++){ |
220 |
xm_nt[i][ii] = 0; |
xm_nt[i][ii] = 0; |
221 |
ym_nt[i][ii] = 0; |
ym_nt[i][ii] = 0; |
222 |
zm_nt[i][ii] = 0; |
zm_nt[i][ii] = 0; |
223 |
resx_nt[i][ii] = 0; |
resx_nt[i][ii] = 0; |
224 |
resy_nt[i][ii] = 0; |
resy_nt[i][ii] = 0; |
225 |
xgood_nt[i][ii] = 0; |
xgood_nt[i][ii] = 0; |
226 |
ygood_nt[i][ii] = 0; |
ygood_nt[i][ii] = 0; |
227 |
xv_nt[i][ii] = 0; |
xv_nt[i][ii] = 0; |
228 |
yv_nt[i][ii] = 0; |
yv_nt[i][ii] = 0; |
229 |
zv_nt[i][ii] = 0; |
zv_nt[i][ii] = 0; |
230 |
axv_nt[i][ii] = 0; |
axv_nt[i][ii] = 0; |
231 |
ayv_nt[i][ii] = 0; |
ayv_nt[i][ii] = 0; |
232 |
dedx_x[i][ii] = 0; |
dedx_x[i][ii] = 0; |
233 |
dedx_y[i][ii] = 0; |
dedx_y[i][ii] = 0; |
234 |
} |
} |
235 |
|
} |
236 |
} |
} |
237 |
} |
|
|
|
|
238 |
}; |
}; |
239 |
// ================================================================== |
// ================================================================== |
240 |
/** |
/** |
308 |
double xm_a[NPLANE],ym_a[NPLANE]; |
double xm_a[NPLANE],ym_a[NPLANE]; |
309 |
double xm_b[NPLANE],ym_b[NPLANE]; |
double xm_b[NPLANE],ym_b[NPLANE]; |
310 |
double resx[NPLANE],resy[NPLANE]; |
double resx[NPLANE],resy[NPLANE]; |
311 |
|
double tailx[NPLANE],taily[NPLANE]; |
312 |
double xgood[NPLANE],ygood[NPLANE]; |
double xgood[NPLANE],ygood[NPLANE]; |
313 |
double dedxtrk_x[NPLANE]; |
double dedxtrk_x[NPLANE]; |
314 |
double dedxtrk_y[NPLANE]; |
double dedxtrk_y[NPLANE]; |
318 |
double xv[NPLANE],yv[NPLANE],zv[NPLANE]; |
double xv[NPLANE],yv[NPLANE],zv[NPLANE]; |
319 |
double axv[NPLANE],ayv[NPLANE]; |
double axv[NPLANE],ayv[NPLANE]; |
320 |
double cov[5][5]; |
double cov[5][5]; |
321 |
|
double fact; |
322 |
int nstep; |
int nstep; |
323 |
int idcand; |
int idcand; |
324 |
|
int trackmode; |
325 |
|
int istepmin; |
326 |
|
|
327 |
|
/* cMini2track(){ */ |
328 |
|
/* // -------------------------- */ |
329 |
|
/* // fitting routine parameters */ |
330 |
|
/* // -------------------------- */ |
331 |
|
/* zini = 23.5; */ |
332 |
|
/* trackmode = 0; */ |
333 |
|
/* istepmin = 3; */ |
334 |
|
/* // -------------------------- */ |
335 |
|
/* pfixed = 0.; */ |
336 |
|
/* chi2 = 0; */ |
337 |
|
/* nstep = 0; */ |
338 |
|
/* for(int it1=0;it1<5;it1++){ */ |
339 |
|
/* al[it1] = 0; */ |
340 |
|
/* for(int it2=0;it2<5;it2++)cov[it1][it2] = 0; */ |
341 |
|
/* }; */ |
342 |
|
/* for(int ip=0;ip<6;ip++){ */ |
343 |
|
/* xgood[ip] = 0; */ |
344 |
|
/* ygood[ip] = 0; */ |
345 |
|
/* xm[ip] = 0; */ |
346 |
|
/* ym[ip] = 0; */ |
347 |
|
/* xm_a[ip] = 0; */ |
348 |
|
/* ym_a[ip] = 0; */ |
349 |
|
/* xm_b[ip] = 0; */ |
350 |
|
/* ym_b[ip] = 0; */ |
351 |
|
/* zm[ip] = 0; */ |
352 |
|
/* resx[ip] = 0; */ |
353 |
|
/* resy[ip] = 0; */ |
354 |
|
/* xv[ip] = 0; */ |
355 |
|
/* yv[ip] = 0; */ |
356 |
|
/* zv[ip] = 0; */ |
357 |
|
/* axv[ip] = 0; */ |
358 |
|
/* ayv[ip] = 0; */ |
359 |
|
/* dedxtrk_x[ip] = 0; */ |
360 |
|
/* dedxtrk_y[ip] = 0; */ |
361 |
|
/* }; */ |
362 |
|
|
363 |
|
/* } */ |
364 |
|
|
365 |
|
|
366 |
}; |
}; |
367 |
// |
// |
441 |
|
|
442 |
// void Set(TFile* , Int_t , Int_t ); |
// void Set(TFile* , Int_t , Int_t ); |
443 |
|
|
444 |
|
void Reset(){ |
445 |
|
for(int ivk=0; ivk<NVK; ivk++){ |
446 |
|
for(int iv=0; iv<NVIEW; iv++){ |
447 |
|
// mask_vk[ivk][iv]=0; |
448 |
|
mask_vk_run[ivk][iv]=0; |
449 |
|
} |
450 |
|
} |
451 |
|
} |
452 |
|
|
453 |
|
void Dump(){ |
454 |
|
} |
455 |
|
|
456 |
}; |
}; |
457 |
|
|
458 |
/** |
/** |
469 |
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
470 |
float eta4[NANGMAX][NETAVALMAX]; |
float eta4[NANGMAX][NETAVALMAX]; |
471 |
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
472 |
|
float fcorr[NANGMAX][NLADDER][NVIEW]; |
473 |
|
float e234ax[6];//F77: e2fax,e2tax,e3fax,e3tax,e4fax,e4tax |
474 |
|
float e234ay[6];//F77: e2fay,e2tay,e3fay,e3tay,e4fay,e4tay |
475 |
|
|
476 |
}; |
}; |
477 |
|
/** |
478 |
|
* \brief Struct to configure data reduction |
479 |
|
*/ |
480 |
|
struct cTrkSW{ |
481 |
|
int pfaid; |
482 |
|
}; |
483 |
|
|
484 |
extern "C" { |
extern "C" { |
485 |
|
|
493 |
extern struct cTrkHough houghevent_; |
extern struct cTrkHough houghevent_; |
494 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
495 |
extern struct cTrkETA pfa_; |
extern struct cTrkETA pfa_; |
496 |
|
extern struct cTrkSW sw_; |
497 |
|
|
498 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
499 |
int readmipparam_(); |
int readmipparam_(); |
502 |
int readalignparam_(); |
int readalignparam_(); |
503 |
int readetaparam_(); |
int readetaparam_(); |
504 |
void reductionflight_(int*); |
void reductionflight_(int*); |
505 |
int analysisflight_(int*); |
int analysisflight_(); |
506 |
int readb_(); |
int readb_(); |
507 |
|
void gufld_(float*, float*); |
508 |
|
void xyzpam_(int*,int*,int*,int*,int*,float*,float*,float*,float*); |
509 |
|
float riseta_(int*,float*); |
510 |
|
|
511 |
} |
} |
512 |
|
|