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 |
/** |
/** |
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 |
} |
} |
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 { |
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]; |
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_; |