@@ -48,8 +48,7 @@ void convertCompactClusters(gsl::span<const itsmft::CompClusterExt> clusters,
4848 float sigmaY2, sigmaZ2, sigmaYZ = 0 ;
4949 auto locXYZ = extractClusterData (c, pattIt, dict, sigmaY2, sigmaZ2);
5050 const auto detID = c.getSensorID ();
51- auto & cl3d = output.emplace_back (detID,
52- (its3::constants::detID::isDetITS3 (detID) ? geom->getT2LMatrixITS3 (detID, geom->getSensorRefAlpha (detID)) : geom->getMatrixT2L (detID)) ^ locXYZ); // local --> tracking
51+ auto & cl3d = output.emplace_back (detID, geom->getMatrixT2L (detID) ^ locXYZ); // local --> tracking
5352 if (applyMisalignment) {
5453 auto lrID = geom->getLayer (detID);
5554 sigmaY2 += conf.sysErrY2 [lrID];
@@ -79,7 +78,6 @@ int loadROFrameDataITS3(its::TimeFrame<7>* tf,
7978 for (int clusterId{rof.getFirstEntry ()}; clusterId < rof.getFirstEntry () + rof.getNEntries (); ++clusterId) {
8079 auto & c = clusters[clusterId];
8180 auto sensorID = c.getSensorID ();
82- auto isITS3 = its3::constants::detID::isDetITS3 (sensorID);
8381 auto layer = geom->getLayer (sensorID);
8482
8583 float sigmaY2{0 }, sigmaZ2{0 }, sigmaYZ{0 };
@@ -90,16 +88,11 @@ int loadROFrameDataITS3(its::TimeFrame<7>* tf,
9088 // Transformation to the local --> global
9189 auto gloXYZ = geom->getMatrixL2G (sensorID) * locXYZ;
9290
93- // for cylindrical layers we have a different alpha for each cluster, for regular silicon detectors instead a single alpha for the whole sensor
91+ // Inverse transformation to the local --> tracking
92+ o2::math_utils::Point3D<float > trkXYZ = geom->getMatrixT2L (sensorID) ^ locXYZ;
93+
94+ // Tracking alpha angle
9495 float alpha = geom->getSensorRefAlpha (sensorID);
95- o2::math_utils::Point3D<float > trkXYZ;
96- if (isITS3) {
97- // Inverse transformation to the local --> tracking
98- trkXYZ = geom->getT2LMatrixITS3 (sensorID, alpha) ^ locXYZ;
99- } else {
100- // Inverse transformation to the local --> tracking
101- trkXYZ = geom->getMatrixT2L (sensorID) ^ locXYZ;
102- }
10396
10497 tf->addTrackingFrameInfoToLayer (layer, gloXYZ.x (), gloXYZ.y (), gloXYZ.z (), trkXYZ.x (), alpha,
10598 std::array<float , 2 >{trkXYZ.y (), trkXYZ.z ()},
0 commit comments