Skip to content

Commit 8fd3bcf

Browse files
Copilotoksuzian
andauthored
Move prihits.empty() guard before nover computation in SelectSameTrack
Agent-Logs-Url: https://github.com/Mu2e/Offline/sessions/f9f302df-5ed3-439e-8046-3c5c0c6a940e Co-authored-by: oksuzian <48927306+oksuzian@users.noreply.github.com>
1 parent df773a9 commit 8fd3bcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TrkReco/src/SelectSameTrack_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ namespace mu2e {
140140
for(auto const& hit: priks.hits()){
141141
if(hit._ambig > WireHitState::inactive)prihits.insert(hit._index);
142142
}
143+
if(prihits.empty()) continue;
143144
unsigned nover(0);
144145
for(auto const& hit: secks.hits()){
145146
if(hit._ambig > WireHitState::inactive && prihits.find(hit._index) != prihits.end())++nover;
146147
}
147-
if(prihits.empty()) continue;
148148
double hfrac = float(nover)/float(prihits.size());
149149
if(debug_ > 2) std::cout << "Hit overlap " << hfrac << std::endl;
150150
if(hfrac > minhf_){

0 commit comments

Comments
 (0)