Skip to content

Commit 0b1223a

Browse files
coppedissawenzel
authored andcommitted
Uniform A-side X coordinate sign with the reconstructed one
1 parent 01670f9 commit 0b1223a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detectors/ZDC/simulation/src/Detector.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ void Detector::getDetIDandSecID(TString const& volname, math_utils::Vector3D<flo
271271

272272
if (x.Z() > 0) {
273273
detector = ZNA;
274-
xDet = x - math_utils::Vector3D<float>(Geometry::ZNAPOSITION[0], Geometry::ZNAPOSITION[1], Geometry::ZNAPOSITION[2]);
274+
xDet = -(x - math_utils::Vector3D<float>(Geometry::ZNAPOSITION[0], Geometry::ZNAPOSITION[1], Geometry::ZNAPOSITION[2]));
275275

276276
} else if (x.Z() < 0) {
277277
detector = ZNC;
@@ -297,7 +297,7 @@ void Detector::getDetIDandSecID(TString const& volname, math_utils::Vector3D<flo
297297
// proton calorimeter
298298
if (x.Z() > 0) {
299299
detector = ZPA; // (NB -> DIFFERENT FROM AliRoot!!!)
300-
xDet = x - math_utils::Vector3D<float>(Geometry::ZPAPOSITION[0], Geometry::ZPAPOSITION[1], Geometry::ZPAPOSITION[2]);
300+
xDet = -(x - math_utils::Vector3D<float>(Geometry::ZPAPOSITION[0], Geometry::ZPAPOSITION[1], Geometry::ZPAPOSITION[2]));
301301
} else if (x.Z() < 0) {
302302
detector = ZPC; // (NB -> DIFFERENT FROM AliRoot!!!)
303303
xDet = x - math_utils::Vector3D<float>(Geometry::ZPCPOSITION[0], Geometry::ZPCPOSITION[1], Geometry::ZPCPOSITION[2]);

0 commit comments

Comments
 (0)