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); diff --git a/Detector/DetSegmentation/src/GridDriftChamber.cpp b/Detector/DetSegmentation/src/GridDriftChamber.cpp index c9cb9d50ed66d48130594f0afe718bae06e11f5a..991f42a816953224c8138a488885983e3739d901 100644 --- a/Detector/DetSegmentation/src/GridDriftChamber.cpp +++ b/Detector/DetSegmentation/src/GridDriftChamber.cpp @@ -56,13 +56,13 @@ CellID GridDriftChamber::cellID(const Vector3D& /*localPosition*/, const Vector3 _decoder->set(cID, m_phiID, lphi); -std::cout << "#######################################: " - << " offset : " << m_offset - << " offsetphi: " << offsetphi - << " layerID: " << layerID - << " r: " << _currentRadius - << " layerphi: " << _currentLayerphi - << std::endl; +//std::cout << "#######################################: " +// << " offset : " << m_offset +// << " offsetphi: " << offsetphi +// << " layerID: " << layerID +// << " r: " << _currentRadius +// << " layerphi: " << _currentLayerphi +// << std::endl; return cID; }