6 void gl3Hit::print ( ){
7 printf (
"%d %d %d %7.2f %7.2f %7.2f %7.2f\n", rowSector, mezzanninneCard, readoutBoard, x, y, z,sqrt(x*x + y*y) );
18 double pad = double(cluster->pad)/64.;
19 double time = double(cluster->time)/64.;
23 readoutBoard = cluster->RB_MZ / 16 ;
24 if ( readoutBoard > 5 && sector%2==1) sector++ ;
26 mezzanninneCard = cluster->RB_MZ%16 ;
28 rowSector = sector * 100 + cluster->padrow ;
36 PTRS.Setptrs((
double)pad, (
double)time,(
double)(cluster->padrow+1), (
double) sector) ;
37 transformer->raw_to_global(PTRS,XYZ) ;
43 trackId = cluster->trackId ;
44 flags = cluster->flags ;
48 charge = cluster->charge ;
56 void gl3Hit::setITPCHit(
l3CoordinateTransformer *trans,
int sec,
int row,
double pad,
double tb,
unsigned short charge,
unsigned short flags) {
58 int pads = 2 * (row + 25 - (int)((
double)row/7.0));
59 int padpos = pad - pads/2;
66 local.Setx(padpos * .5);
67 local.Sety(55.80 + 1.6 * (row - 1));
68 local.Setz(trans->drift_length_inner - tb * trans->lengthPerTb);
70 trans->local_to_global(raw, local, global);
82 rowSector = sec * 100 + row ;
86 this->charge = charge;