27 |
#define NANGMAX 21 |
#define NANGMAX 21 |
28 |
#define NETAVALMAX 500 |
#define NETAVALMAX 500 |
29 |
|
|
30 |
|
#define NTRACKSMAX (NCLOYZ_MAX*NCLOXZ_MAX) |
31 |
|
|
32 |
#include <CalibTrk1Event.h> |
#include <CalibTrk1Event.h> |
33 |
#include <CalibTrk2Event.h> |
#include <CalibTrk2Event.h> |
39 |
#include <TTree.h> |
#include <TTree.h> |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
#include <fstream> |
#include <fstream> |
44 |
#include <iostream> |
#include <iostream> |
45 |
/** |
/** |
53 |
float sigma_t[128][24][12]; |
float sigma_t[128][24][12]; |
54 |
int bad[128][24][12]; |
int bad[128][24][12]; |
55 |
|
|
56 |
|
void Reset(){ |
57 |
|
for(int is=0; is<128; is++){ |
58 |
|
for(int ivk=0; ivk<24; ivk++){ |
59 |
|
for(int iv=0; iv<12; iv++){ |
60 |
|
pedestal[is][ivk][iv]=0.; |
61 |
|
pedestal_t[is][ivk][iv]=0.; |
62 |
|
sigma[is][ivk][iv]=0.; |
63 |
|
sigma_t[is][ivk][iv]=0.; |
64 |
|
bad[is][ivk][iv]=1; |
65 |
|
} |
66 |
|
} |
67 |
|
} |
68 |
|
} |
69 |
|
|
70 |
/* void FillACalibFrom(TFile* , Int_t , Int_t ); */ |
/* void FillACalibFrom(TFile* , Int_t , Int_t ); */ |
71 |
/* void FillFCalibFrom(TFile* , Int_t , Int_t ); */ |
/* void FillFCalibFrom(TFile* , Int_t , Int_t ); */ |
72 |
/* void FillTCalibFrom(TFile* , Int_t , Int_t ); */ |
/* void FillTCalibFrom(TFile* , Int_t , Int_t ); */ |
182 |
float dedx_y[NTRKMAX][6]; |
float dedx_y[NTRKMAX][6]; |
183 |
int cltrx[NTRKMAX][6]; |
int cltrx[NTRKMAX][6]; |
184 |
int cltry[NTRKMAX][6]; |
int cltry[NTRKMAX][6]; |
185 |
|
int multmaxx[NTRKMAX][6]; |
186 |
|
int multmaxy[NTRKMAX][6]; |
187 |
|
float seedx[NTRKMAX][6]; |
188 |
|
float seedy[NTRKMAX][6]; |
189 |
|
float xpu[NTRKMAX][6]; |
190 |
|
float ypu[NTRKMAX][6]; |
191 |
// float bdl[NTRKMAX]; |
// float bdl[NTRKMAX]; |
192 |
|
|
193 |
void InitcTrkLevel2(){ |
void InitcTrkLevel2(){ |
239 |
ayv_nt[i][ii] = 0; |
ayv_nt[i][ii] = 0; |
240 |
dedx_x[i][ii] = 0; |
dedx_x[i][ii] = 0; |
241 |
dedx_y[i][ii] = 0; |
dedx_y[i][ii] = 0; |
242 |
|
multmaxx[i][ii] = 0; |
243 |
|
multmaxy[i][ii] = 0; |
244 |
|
seedx[i][ii] = 0; |
245 |
|
seedy[i][ii] = 0; |
246 |
|
xpu[i][ii] = 0; |
247 |
|
ypu[i][ii] = 0; |
248 |
} |
} |
249 |
} |
} |
250 |
} |
} |
322 |
double xm_a[NPLANE],ym_a[NPLANE]; |
double xm_a[NPLANE],ym_a[NPLANE]; |
323 |
double xm_b[NPLANE],ym_b[NPLANE]; |
double xm_b[NPLANE],ym_b[NPLANE]; |
324 |
double resx[NPLANE],resy[NPLANE]; |
double resx[NPLANE],resy[NPLANE]; |
325 |
|
double tailx[NPLANE],taily[NPLANE]; |
326 |
double xgood[NPLANE],ygood[NPLANE]; |
double xgood[NPLANE],ygood[NPLANE]; |
327 |
double dedxtrk_x[NPLANE]; |
double dedxtrk_x[NPLANE]; |
328 |
double dedxtrk_y[NPLANE]; |
double dedxtrk_y[NPLANE]; |
446 |
}; |
}; |
447 |
|
|
448 |
/** |
/** |
449 |
|
* \Struct for track candidates after hough transform |
450 |
|
*/ |
451 |
|
struct cTrkCandidates { |
452 |
|
int ntracks; |
453 |
|
float al[NTRACKSMAX][5]; |
454 |
|
float xm[NTRACKSMAX][NPLANE]; |
455 |
|
float ym[NTRACKSMAX][NPLANE]; |
456 |
|
float zm[NTRACKSMAX][NPLANE]; |
457 |
|
float resx[NTRACKSMAX][NPLANE]; |
458 |
|
float resy[NTRACKSMAX][NPLANE]; |
459 |
|
float xv[NTRACKSMAX][NPLANE]; |
460 |
|
float yv[NTRACKSMAX][NPLANE]; |
461 |
|
float zv[NTRACKSMAX][NPLANE]; |
462 |
|
float axv[NTRACKSMAX][NPLANE]; |
463 |
|
float ayv[NTRACKSMAX][NPLANE]; |
464 |
|
float xgood[NTRACKSMAX][NPLANE]; |
465 |
|
float ygood[NTRACKSMAX][NPLANE]; |
466 |
|
int cp[NTRACKSMAX][NPLANE]; |
467 |
|
int cls[NTRACKSMAX][NPLANE]; |
468 |
|
int sensor[NTRACKSMAX][NPLANE]; |
469 |
|
int ladder[NTRACKSMAX][NPLANE]; |
470 |
|
float bx[NTRACKSMAX][NPLANE]; |
471 |
|
float by[NTRACKSMAX][NPLANE]; |
472 |
|
float chi2[NTRACKSMAX]; |
473 |
|
|
474 |
|
void Init(){ |
475 |
|
ntracks=0; |
476 |
|
for(int i=0; i<NTRACKSMAX; i++){ |
477 |
|
for(int ii=0; ii<5; ii++)al[i][ii]=0; |
478 |
|
chi2[i]=0; |
479 |
|
for(int ip=0; ip<NPLANE; ip++){ |
480 |
|
xm[i][ip]=0; |
481 |
|
ym[i][ip]=0; |
482 |
|
zm[i][ip]=0; |
483 |
|
resx[i][ip]=0; |
484 |
|
resy[i][ip]=0; |
485 |
|
xv[i][ip]=0; |
486 |
|
yv[i][ip]=0; |
487 |
|
zv[i][ip]=0; |
488 |
|
axv[i][ip]=0; |
489 |
|
ayv[i][ip]=0; |
490 |
|
xgood[i][ip]=0; |
491 |
|
ygood[i][ip]=0; |
492 |
|
cp[i][ip]=0; |
493 |
|
cls[i][ip]=0; |
494 |
|
sensor[i][ip]=0; |
495 |
|
ladder[i][ip]=0; |
496 |
|
bx[i][ip]=0; |
497 |
|
by[i][ip]=0; |
498 |
|
} |
499 |
|
} |
500 |
|
|
501 |
|
}; |
502 |
|
|
503 |
|
|
504 |
|
}; |
505 |
|
|
506 |
|
/** |
507 |
* \brief Struct to pass VA1-mask to F77 routines |
* \brief Struct to pass VA1-mask to F77 routines |
508 |
*/ |
*/ |
509 |
struct cTrkMask { |
struct cTrkMask { |
513 |
|
|
514 |
// void Set(TFile* , Int_t , Int_t ); |
// void Set(TFile* , Int_t , Int_t ); |
515 |
|
|
516 |
|
void Reset(){ |
517 |
|
for(int ivk=0; ivk<NVK; ivk++){ |
518 |
|
for(int iv=0; iv<NVIEW; iv++){ |
519 |
|
// mask_vk[ivk][iv]=0; |
520 |
|
mask_vk_run[ivk][iv]=0; |
521 |
|
} |
522 |
|
} |
523 |
|
} |
524 |
|
|
525 |
|
void Dump(){ |
526 |
|
} |
527 |
|
|
528 |
}; |
}; |
529 |
|
|
530 |
/** |
/** |
541 |
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
float feta3[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
542 |
float eta4[NANGMAX][NETAVALMAX]; |
float eta4[NANGMAX][NETAVALMAX]; |
543 |
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
float feta4[NANGMAX][NLADDER][NVIEW][NETAVALMAX]; |
544 |
|
float fcorr[NANGMAX][NLADDER][NVIEW]; |
545 |
|
float e234ax[6];//F77: e2fax,e2tax,e3fax,e3tax,e4fax,e4tax |
546 |
|
float e234ay[6];//F77: e2fay,e2tay,e3fay,e3tay,e4fay,e4tay |
547 |
|
|
548 |
}; |
}; |
549 |
/** |
/** |
563 |
extern struct cPath path_; |
extern struct cPath path_; |
564 |
extern struct cDbg dbg_; |
extern struct cDbg dbg_; |
565 |
extern struct cTrkHough houghevent_; |
extern struct cTrkHough houghevent_; |
566 |
|
extern struct cTrkCandidates trackcandidates_; |
567 |
extern struct cMini2track track_; |
extern struct cMini2track track_; |
568 |
extern struct cTrkETA pfa_; |
extern struct cTrkETA pfa_; |
569 |
extern struct cTrkSW sw_; |
extern struct cTrkSW sw_; |
579 |
int readb_(); |
int readb_(); |
580 |
void gufld_(float*, float*); |
void gufld_(float*, float*); |
581 |
void xyzpam_(int*,int*,int*,int*,int*,float*,float*,float*,float*); |
void xyzpam_(int*,int*,int*,int*,int*,float*,float*,float*,float*); |
582 |
|
float riseta_(int*,float*); |
583 |
|
|
584 |
} |
} |
585 |
|
|