Skip to content

Commit

Permalink
Merge pull request #14754 from lgray/pfba_check_full_matrix
Browse files Browse the repository at this point in the history
Bugfix: Run forward and backwards when looking for links in PFBA
  • Loading branch information
cmsbuild committed Jun 9, 2016
2 parents 0bdd039 + f2cdf47 commit aa798d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion RecoParticleFlow/PFProducer/src/PFBlockAlgo.cc
Expand Up @@ -164,7 +164,8 @@ void PFBlockAlgo::findBlocks() {
QuickUnion qu(bare_elements_.size());
const auto elem_size = bare_elements_.size();
for( unsigned i = 0; i < elem_size; ++i ) {
for( unsigned j = 0; j < i; ++j ) {
for( unsigned j = 0; j < elem_size; ++j ) {
if( j == i ) continue;
if( !_linkTests[_linkTestSquare[bare_elements_[i]->type()][bare_elements_[j]->type()]] ) {
j = ranges_[bare_elements_[j]->type()].second;
continue;
Expand Down

0 comments on commit aa798d1

Please sign in to comment.