00001 #include "gl3Hit.h"
00002
00003
00004
00005
00006 void gl3Hit::print ( ){
00007 printf ( "%d %7.2f %7.2f %7.2f\n", rowSector, x, y, z );
00008 }
00009
00010
00011
00012 int gl3Hit::set ( l3CoordinateTransformer* transformer,
00013 int sector, l3_cluster* cluster ){
00014
00015 l3xyzCoordinate XYZ(0,0,0) ;
00016 l3ptrsCoordinate PTRS(0,0,0,0) ;
00017
00018 double pad = double(cluster->pad)/64.;
00019 double time = double(cluster->time)/64.;
00020
00021 readoutBoard = cluster->RB_MZ / 16 ;
00022 if ( readoutBoard > 5 && sector%2==1) sector++ ;
00023
00024 mezzanninneCard = cluster->RB_MZ%16 ;
00025
00026 rowSector = sector * 100 + cluster->padrow ;
00027
00028
00029
00030 PTRS.Setptrs((double)pad, (double)time,(double)(cluster->padrow), (double) sector) ;
00031 transformer->raw_to_global(PTRS,XYZ) ;
00032
00033 x = XYZ.Getx();
00034 y = XYZ.Gety();
00035 z = XYZ.Getz();
00036
00037 trackId = cluster->trackId ;
00038 flags = cluster->flags ;
00039
00040 nextHit = 0 ;
00041
00042 charge = cluster->charge ;
00043
00044 return 0 ;
00045 }