diff --git a/Detector/DetSegmentation/DetSegmentation/GridDriftChamber.h b/Detector/DetSegmentation/DetSegmentation/GridDriftChamber.h index 38e236c0d19d8b4419184510036b9db7e873e261..82a4e8f041b4a9934977fb4943b69a782fc4b37e 100644 --- a/Detector/DetSegmentation/DetSegmentation/GridDriftChamber.h +++ b/Detector/DetSegmentation/DetSegmentation/GridDriftChamber.h @@ -66,13 +66,10 @@ public: inline void setWiresInLayer(int layer, int numWires) { - double phi0; updateParams(layer); for (int i = 0; i<numWires; ++i) { - double phi0 = m_offset; - - auto phi_start = _currentLayerphi * i + phi0; + auto phi_start = _currentLayerphi * (i+0.5) + m_offset; auto phi_end = phi_start + _currentLayerphi; TVector3 Wstart = returnWirePosition(phi_start, 1);