| 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 ); */ |
| 180 |
float dedx_y[NTRKMAX][6]; |
float dedx_y[NTRKMAX][6]; |
| 181 |
int cltrx[NTRKMAX][6]; |
int cltrx[NTRKMAX][6]; |
| 182 |
int cltry[NTRKMAX][6]; |
int cltry[NTRKMAX][6]; |
| 183 |
|
int multmaxx[NTRKMAX][6]; |
| 184 |
|
int multmaxy[NTRKMAX][6]; |
| 185 |
|
float seedx[NTRKMAX][6]; |
| 186 |
|
float seedy[NTRKMAX][6]; |
| 187 |
|
float xpu[NTRKMAX][6]; |
| 188 |
|
float ypu[NTRKMAX][6]; |
| 189 |
// float bdl[NTRKMAX]; |
// float bdl[NTRKMAX]; |
| 190 |
|
|
| 191 |
void InitcTrkLevel2(){ |
void InitcTrkLevel2(){ |
| 237 |
ayv_nt[i][ii] = 0; |
ayv_nt[i][ii] = 0; |
| 238 |
dedx_x[i][ii] = 0; |
dedx_x[i][ii] = 0; |
| 239 |
dedx_y[i][ii] = 0; |
dedx_y[i][ii] = 0; |
| 240 |
|
multmaxx[i][ii] = 0; |
| 241 |
|
multmaxy[i][ii] = 0; |
| 242 |
|
seedx[i][ii] = 0; |
| 243 |
|
seedy[i][ii] = 0; |
| 244 |
|
xpu[i][ii] = 0; |
| 245 |
|
ypu[i][ii] = 0; |
| 246 |
} |
} |
| 247 |
} |
} |
| 248 |
} |
} |
| 320 |
double xm_a[NPLANE],ym_a[NPLANE]; |
double xm_a[NPLANE],ym_a[NPLANE]; |
| 321 |
double xm_b[NPLANE],ym_b[NPLANE]; |
double xm_b[NPLANE],ym_b[NPLANE]; |
| 322 |
double resx[NPLANE],resy[NPLANE]; |
double resx[NPLANE],resy[NPLANE]; |
| 323 |
|
double tailx[NPLANE],taily[NPLANE]; |
| 324 |
double xgood[NPLANE],ygood[NPLANE]; |
double xgood[NPLANE],ygood[NPLANE]; |
| 325 |
double dedxtrk_x[NPLANE]; |
double dedxtrk_x[NPLANE]; |
| 326 |
double dedxtrk_y[NPLANE]; |
double dedxtrk_y[NPLANE]; |
| 335 |
int idcand; |
int idcand; |
| 336 |
int trackmode; |
int trackmode; |
| 337 |
int istepmin; |
int istepmin; |
| 338 |
|
|
| 339 |
|
/* cMini2track(){ */ |
| 340 |
|
/* // -------------------------- */ |
| 341 |
|
/* // fitting routine parameters */ |
| 342 |
|
/* // -------------------------- */ |
| 343 |
|
/* zini = 23.5; */ |
| 344 |
|
/* trackmode = 0; */ |
| 345 |
|
/* istepmin = 3; */ |
| 346 |
|
/* // -------------------------- */ |
| 347 |
|
/* pfixed = 0.; */ |
| 348 |
|
/* chi2 = 0; */ |
| 349 |
|
/* nstep = 0; */ |
| 350 |
|
/* for(int it1=0;it1<5;it1++){ */ |
| 351 |
|
/* al[it1] = 0; */ |
| 352 |
|
/* for(int it2=0;it2<5;it2++)cov[it1][it2] = 0; */ |
| 353 |
|
/* }; */ |
| 354 |
|
/* for(int ip=0;ip<6;ip++){ */ |
| 355 |
|
/* xgood[ip] = 0; */ |
| 356 |
|
/* ygood[ip] = 0; */ |
| 357 |
|
/* xm[ip] = 0; */ |
| 358 |
|
/* ym[ip] = 0; */ |
| 359 |
|
/* xm_a[ip] = 0; */ |
| 360 |
|
/* ym_a[ip] = 0; */ |
| 361 |
|
/* xm_b[ip] = 0; */ |
| 362 |
|
/* ym_b[ip] = 0; */ |
| 363 |
|
/* zm[ip] = 0; */ |
| 364 |
|
/* resx[ip] = 0; */ |
| 365 |
|
/* resy[ip] = 0; */ |
| 366 |
|
/* xv[ip] = 0; */ |
| 367 |
|
/* yv[ip] = 0; */ |
| 368 |
|
/* zv[ip] = 0; */ |
| 369 |
|
/* axv[ip] = 0; */ |
| 370 |
|
/* ayv[ip] = 0; */ |
| 371 |
|
/* dedxtrk_x[ip] = 0; */ |
| 372 |
|
/* dedxtrk_y[ip] = 0; */ |
| 373 |
|
/* }; */ |
| 374 |
|
|
| 375 |
|
/* } */ |
| 376 |
|
|
| 377 |
|
|
| 378 |
}; |
}; |
| 379 |
// |
// |
| 380 |
/** |
/** |
| 453 |
|
|
| 454 |
// void Set(TFile* , Int_t , Int_t ); |
// void Set(TFile* , Int_t , Int_t ); |
| 455 |
|
|
| 456 |
|
void Reset(){ |
| 457 |
|
for(int ivk=0; ivk<NVK; ivk++){ |
| 458 |
|
for(int iv=0; iv<NVIEW; iv++){ |
| 459 |
|
// mask_vk[ivk][iv]=0; |
| 460 |
|
mask_vk_run[ivk][iv]=0; |
| 461 |
|
} |
| 462 |
|
} |
| 463 |
|
} |
| 464 |
|
|
| 465 |
|
void Dump(){ |
| 466 |
|
} |
| 467 |
|
|
| 468 |
}; |
}; |
| 469 |
|
|
| 470 |
/** |
/** |
| 481 |
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
| 482 |
float eta4[NANGMAX][NETAVALMAX]; |
float eta4[NANGMAX][NETAVALMAX]; |
| 483 |
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
| 484 |
|
float fcorr[NANGMAX][NLADDER][NVIEW]; |
| 485 |
|
float e234ax[6];//F77: e2fax,e2tax,e3fax,e3tax,e4fax,e4tax |
| 486 |
|
float e234ay[6];//F77: e2fay,e2tay,e3fay,e3tay,e4fay,e4tay |
| 487 |
|
|
| 488 |
}; |
}; |
| 489 |
|
/** |
| 490 |
|
* \brief Struct to configure data reduction |
| 491 |
|
*/ |
| 492 |
|
struct cTrkSW{ |
| 493 |
|
int pfaid; |
| 494 |
|
}; |
| 495 |
|
|
| 496 |
extern "C" { |
extern "C" { |
| 497 |
|
|
| 505 |
extern struct cTrkHough houghevent_; |
extern struct cTrkHough houghevent_; |
| 506 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
| 507 |
extern struct cTrkETA pfa_; |
extern struct cTrkETA pfa_; |
| 508 |
|
extern struct cTrkSW sw_; |
| 509 |
|
|
| 510 |
void fillpedsigfromdefault_(); |
void fillpedsigfromdefault_(); |
| 511 |
int readmipparam_(); |
int readmipparam_(); |
| 514 |
int readalignparam_(); |
int readalignparam_(); |
| 515 |
int readetaparam_(); |
int readetaparam_(); |
| 516 |
void reductionflight_(int*); |
void reductionflight_(int*); |
| 517 |
int analysisflight_(int*); |
int analysisflight_(); |
| 518 |
int readb_(); |
int readb_(); |
| 519 |
|
void gufld_(float*, float*); |
| 520 |
|
void xyzpam_(int*,int*,int*,int*,int*,float*,float*,float*,float*); |
| 521 |
|
float riseta_(int*,float*); |
| 522 |
|
|
| 523 |
} |
} |
| 524 |
|
|