Skip to content

Commit 8e4899f

Browse files
sgorbunocbmsw
authored andcommitted
TPC Splines: fix reading track residuals
1 parent e8c20ab commit 8e4899f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Detectors/TPC/calibration/src/TPCFastSpaceChargeCorrectionHelper.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,9 @@ std::unique_ptr<o2::gpu::TPCFastSpaceChargeCorrection> TPCFastSpaceChargeCorrect
457457
y = iy * dy;
458458
y = y / (y1 - y0) * 2 - 1.;
459459
if (iuv == 0) {
460-
LOG(info) << "convert y bin: " << yold << " -> " << y << " -> " << iy;
460+
LOG(info) << "TPC SC splines: convert y bin: " << yold << " -> " << y << " -> " << iy;
461461
} else {
462-
LOG(info) << "convert z bin: " << yold << " -> " << y << " -> " << iy;
462+
LOG(info) << "TPC SC splines: convert z bin: " << yold << " -> " << y << " -> " << iy;
463463
}
464464
}
465465

@@ -514,11 +514,12 @@ std::unique_ptr<o2::gpu::TPCFastSpaceChargeCorrection> TPCFastSpaceChargeCorrect
514514
double uMax = yMax;
515515
double vMin = geo.getTPCzLength(iRoc) - zMax;
516516
double vMax = geo.getTPCzLength(iRoc) - zMin;
517-
// std::cout << " uMin: " << uMin << " uMax: " << yuMax << " zMin: " << vMin << " zMax: " << vMax << std::endl;
518517
info.gridU0 = uMin;
519518
info.scaleUtoGrid = spline.getGridX1().getUmax() / (uMax - uMin);
520519
info.gridV0 = vMin;
521520
info.scaleVtoGrid = spline.getGridX2().getUmax() / (vMax - vMin);
521+
// std::cout << " iRoc " << iRoc << " iRow " << iRow << " uMin: " << uMin << " uMax: " << uMax << " vMin: " << vMin << " vMax: " << vMax
522+
//<< " grid scale u "<< info.scaleUtoGrid << " grid scale v "<< info.scaleVtoGrid<< std::endl;
522523
}
523524
}
524525

@@ -629,7 +630,7 @@ std::unique_ptr<o2::gpu::TPCFastSpaceChargeCorrection> TPCFastSpaceChargeCorrect
629630
<< std::endl;
630631
}
631632
*/
632-
if (1) { // always use voxel center instead of the mean position
633+
if (0) { // debug: always use voxel center instead of the mean position
633634
data.mY = vox.mY;
634635
data.mZ = vox.mZ;
635636
}

0 commit comments

Comments
 (0)