Skip to content

Commit

Permalink
need this boundary check
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiwangYu committed Apr 4, 2024
1 parent b1fa5b8 commit 0d7d535
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sigproc/src/ROI_refinement.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,13 @@ void ROI_refinement::MP2ROI(const int target_plane, const IAnodePlane::pointer a

for (auto pitch_target = index - wire_resolution + 1; pitch_target < index + wire_resolution;
++pitch_target) {
if (map_wireid_roichid[target_plane].find(pitch_target) ==
map_wireid_roichid[target_plane].end()) {
LogDebug("no roichid found for pitch_target: " << pitch_target << " layer: " << layer
<< " pitch: " << pitch
<< " index: " << index);
continue;
}
std::pair<int, int> key = {map_wireid_roichid[target_plane][pitch_target], 0};
int sta = tick * tick_resolution;
int end = sta + tick_resolution;
Expand Down

0 comments on commit 0d7d535

Please sign in to comment.