Skip to content
Snippets Groups Projects
Unverified Commit 469daaad authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn Committed by GitHub
Browse files

Merge pull request #96 from myliu-hub/master

Modify naming error
parents 64b918f8 65c12ce1
No related branches found
No related tags found
No related merge requests found
...@@ -66,13 +66,10 @@ public: ...@@ -66,13 +66,10 @@ public:
inline void setWiresInLayer(int layer, int numWires) inline void setWiresInLayer(int layer, int numWires)
{ {
double phi0;
updateParams(layer); updateParams(layer);
for (int i = 0; i<numWires; ++i) { for (int i = 0; i<numWires; ++i) {
double phi0 = m_offset; auto phi_start = _currentLayerphi * (i+0.5) + m_offset;
auto phi_start = _currentLayerphi * i + phi0;
auto phi_end = phi_start + _currentLayerphi; auto phi_end = phi_start + _currentLayerphi;
TVector3 Wstart = returnWirePosition(phi_start, 1); TVector3 Wstart = returnWirePosition(phi_start, 1);
......
...@@ -56,13 +56,13 @@ CellID GridDriftChamber::cellID(const Vector3D& /*localPosition*/, const Vector3 ...@@ -56,13 +56,13 @@ CellID GridDriftChamber::cellID(const Vector3D& /*localPosition*/, const Vector3
_decoder->set(cID, m_phiID, lphi); _decoder->set(cID, m_phiID, lphi);
std::cout << "#######################################: " //std::cout << "#######################################: "
<< " offset : " << m_offset // << " offset : " << m_offset
<< " offsetphi: " << offsetphi // << " offsetphi: " << offsetphi
<< " layerID: " << layerID // << " layerID: " << layerID
<< " r: " << _currentRadius // << " r: " << _currentRadius
<< " layerphi: " << _currentLayerphi // << " layerphi: " << _currentLayerphi
<< std::endl; // << std::endl;
return cID; return cID;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment