Skip to content

Commit 8d355d0

Browse files
committed
Use correct half-length calculation.
1 parent 46db6fb commit 8d355d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sbncode/Cluster3D/SnippetHit3DBuilderSBN_tool.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,7 @@ geo::WireID SnippetHit3DBuilderSBN::NearestWireID(const Eigen::Vector3f& positio
17141714
mf::LogWarning("Cluster3D") << "Exception caught finding nearest wire, position - " << exc.what() << std::endl;
17151715

17161716
// Assume extremum for wire number depending on z coordinate
1717-
if (position[2] < m_geometry->TPC().HalfLength()) wire = 0;
1717+
if (position[2] < m_geometry->TPC().ActiveLength()*0.5) wire = 0;
17181718
else wire = m_wireReadout->Nwires(wireIDIn.asPlaneID()) - 1;
17191719
}
17201720

0 commit comments

Comments
 (0)