diff --git a/MuonSpectrometer/MuonDigitization/sTGC_Digitization/src/sTgcDigitizationTool.cxx b/MuonSpectrometer/MuonDigitization/sTGC_Digitization/src/sTgcDigitizationTool.cxx index 23e1d5fdc18d689a2e513b05841ed56a555ab5c8..4cd76946c8dbc8fc187e7effd8dcb564da71c5c3 100644 --- a/MuonSpectrometer/MuonDigitization/sTGC_Digitization/src/sTgcDigitizationTool.cxx +++ b/MuonSpectrometer/MuonDigitization/sTGC_Digitization/src/sTgcDigitizationTool.cxx @@ -591,7 +591,10 @@ StatusCode sTgcDigitizationTool::doDigitization() { std::vector<MuonSimData::Deposit> deposits; deposits.push_back(deposit); MuonSimData simData(deposits, hit.particleEncoding()); - simData.setPosition(hit.globalPosition()); + // The sTGC SDO should be placed at the center of the gap, same as the digits. + // We use the position from the hit on the wire surface which is by construction in the center of the gap + // G_HITONSURFACE_WIRE projects the whole hit to the center of the gap + simData.setPosition(G_HITONSURFACE_WIRE); simData.setTime(globalHitTime); // Associate the digit to the appropriate readout channel