@@ -49,7 +49,7 @@ CoordinateTransformer::CoordinateTransformer()
4949
5050std::array<float , 3 > CoordinateTransformer::Local2RCT (int det, float x, float y, float z)
5151{
52- // LOGP(info," {} {} det:{} x:{} y:{} z:{}",__func__,__LINE__,det,x,y,z);
52+ // LOGP(info," {} {} det:{} x:{} y:{} z:{}",__func__,__LINE__,det,x,y,z);
5353 std::array<float , 3 > rct;
5454
5555 auto padPlane = mGeo ->getPadPlane ((det) % 6 , (det / 6 ) % 5 );
@@ -58,11 +58,14 @@ std::array<float, 3> CoordinateTransformer::Local2RCT(int det, float x, float y,
5858 int row = padPlane->getPadRow (z);
5959 if (row == 0 || row == padPlane->getNrows () - 1 ) {
6060 rct[0 ] = float (row) + padPlane->getPadRowOffsetROC (row, z) / padPlane->getLengthOPad ();
61+ // LOGP(info," {} {} rct[0] row {} + padrowoffsetroc {} / padlengthO : {} for row {} and z {}",__func__,__LINE__, float(row), padPlane->getPadRowOffsetROC(row, z) , padPlane->getLengthOPad(),row,z);
6162 } else {
6263 rct[0 ] = float (row) + padPlane->getPadRowOffsetROC (row, z) / padPlane->getLengthIPad ();
64+ // LOGP(info," {} {} rct[0] row {} + padrowoffsetroc {} / padlengthI : {} for row {} and z {}",__func__,__LINE__, float(row), padPlane->getPadRowOffsetROC(row, z) , padPlane->getLengthIPad(),row,z);
6365 }
6466
6567 // the y-coordinate is calculated directly by the padPlane object
68+ // LOGP(info," {} {} getpad({},{})",__func__,__LINE__, y,z);
6669 rct[1 ] = padPlane->getPad (y, z);
6770
6871 // we calculate the time coordinate by hand
@@ -71,15 +74,18 @@ std::array<float, 3> CoordinateTransformer::Local2RCT(int det, float x, float y,
7174 // account for offset between anode and cathode wires: add 0.35
7275 // convert drift velocity to from cm/us to cm/timebin
7376 rct[2 ] = mT0 - (x + 0.35 ) / (mVdrift / 10.0 );
77+ // LOGP(info," {} {} rct[2] mT0:{} - ({}+0.35)/({}/10.0) = {}",__func__,__LINE__, mT0,x,mVdrift,rct[2]);
7478 } else {
7579 // anode region: very rough guess
7680 rct[2 ] = mT0 - 1.0 + fabs (x);
81+ // LOGP(info," {} {} rct[2] mT0:{} - 1.0+fabs({})",__func__,__LINE__, mT0,x);
7782 }
7883
7984 // Correct for Lorentz angle, but only in the drift region. ExB in the anode region causes a small offset (ca. 0.1
8085 // pads) that is constant for all clusters in the drift region.
8186 rct[1 ] += (x + 0.35 ) * mExB ;
82- // LOGP(info," {} {} det:{} rct:{:.2f}:{:.2f}:{:.2f}",__func__,__LINE__,det,rct[0],rct[1],rct[2]);
87+ // LOGP(info," {} {} rct[1] mT0:{} - 1.0+fabs({})",__func__,__LINE__, mT0,x);
88+ // LOGP(info," {} {} det:{} rct:{:.2f}:{:.2f}:{:.2f}",__func__,__LINE__,det,rct[0],rct[1],rct[2]);
8389 return rct;
8490}
8591
0 commit comments