Skip to content
Snippets Groups Projects

Testing mat end calibration in hlt1

Merged Izaac Sanderswood requested to merge isanders-testmatend into 2024-patches
Files
2
@@ -37,9 +37,9 @@ __device__ void make_cluster(
const float endPointY = geom.mirrorPointY[mat] + geom.ddxY[mat] * uFromChannel;
const float endPointZ = geom.mirrorPointZ[mat] + geom.ddxZ[mat] * uFromChannel;
const double* matContractionVector = geom.matEndCalibrationVector[mat];
const float matContraction = matContractionVector[( id.sipm() * 128 ) + id.channel() ];
const float calibratedDdx = geom.ddxX[mat] * matContraction;
const float x0Calibration = calibratedDdx - dxdy * geom.ddxY[mat]; // check me
const float matContraction = matContractionVector[(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;
const float z0 = endPointZ - dzdy * endPointY;
Loading