We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46db6fb commit 8d355d0Copy full SHA for 8d355d0
1 file changed
sbncode/Cluster3D/SnippetHit3DBuilderSBN_tool.cc
@@ -1714,7 +1714,7 @@ geo::WireID SnippetHit3DBuilderSBN::NearestWireID(const Eigen::Vector3f& positio
1714
mf::LogWarning("Cluster3D") << "Exception caught finding nearest wire, position - " << exc.what() << std::endl;
1715
1716
// Assume extremum for wire number depending on z coordinate
1717
- if (position[2] < m_geometry->TPC().HalfLength()) wire = 0;
+ if (position[2] < m_geometry->TPC().ActiveLength()*0.5) wire = 0;
1718
else wire = m_wireReadout->Nwires(wireIDIn.asPlaneID()) - 1;
1719
}
1720
0 commit comments