Skip to content
Snippets Groups Projects

Testing mat end calibration in hlt1

Merged Izaac Sanderswood requested to merge isanders-testmatend into 2024-patches
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -36,8 +36,7 @@ __device__ void make_cluster(
const float endPointX = geom.mirrorPointX[mat] + geom.ddxX[mat] * uFromChannel;
const float endPointY = geom.mirrorPointY[mat] + geom.ddxY[mat] * uFromChannel;
const float endPointZ = geom.mirrorPointZ[mat] + geom.ddxZ[mat] * uFromChannel;
const std::array<float, 128 * 4> matContractionVector = geom.matEndCalibrationVector[mat];
const float matContraction = matContractionVector[(id.sipm() * 128) + id.channel()];
const float matContraction = geom.matEndCalibrationVector[mat][(id.sipm() * 128) + id.channel()];
const float calibratedDdx = geom.ddxX[mat] * matContraction;
const float x0Calibration = calibratedDdx - dxdy * geom.ddxY[mat]; // check me
const float x0 = endPointX - dxdy * endPointY + x0Calibration;
Loading