13 #define TRG_VERSION 0x32
16 #include "daqFormats.h"
33 inline virtual void nextHit ()
34 { currentHit = ((
gl3Hit *)currentHit)->nextHit ; } ;
37 void dropHits (
int rest,
int rowMin,
int rowMax ) ;
39 void Print (
int level ) ;
47 float theta = atan2(1.,(
double)tanl);
48 float rEta = -1. * log (tan(theta/2.)) ;
55 float gl3ToDeg = 180./acos(-1.);
56 printf (
"pt %f tanl %f psi %f r0 %f z0 %f phi0 %f nHits %d\n",
57 pt, tanl, psi, r0, z0, phi0*gl3ToDeg, nHits ) ;
66 chi2[0] = float(trk->xy_chisq)/10. ;
67 chi2[1] = float(trk->sz_chisq)/10. ;
74 length = trk->trackLength ;
75 innerMostRow= trk->innerMostRow ;
76 outerMostRow= trk->outerMostRow ;
78 q = (short )(trk->pt/fabs(trk->pt)) ;
80 dpt = float(trk->dpt)/32768. * pt ;
81 dpsi = DecompressOver1(trk->dpsi,psi);
82 dtanl = DecompressOver1(trk->dtanl,tanl)/64.;
83 dz0 = float(trk->dz0)/1024. ;
92 if ( dpt == 0 ) dpt = 1.e-5 * pt ;
93 if ( dpsi == 0 ) dpsi = 1.e-5 ;
94 if ( dtanl == 0 ) dtanl = 1.e-5 ;
95 if ( dz0 == 0 ) dz0 = 1.e-3 ;
103 printf (
"set %d\n",
id ) ;
105 chi2[0] = trk->chi2[0] ;
106 chi2[1] = trk->chi2[1] ;
112 length = trk->length ;
116 dtanl = dpsi = dpt = 0. ;
void print()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
void set(short sectorIn, local_track *trk)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
float getRealEta()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
void set(FtfTrack *trk)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!