diff --git a/RecoMuon/MuonIsolation/plugins/MuonPFIsolationWithConeVeto.cc b/RecoMuon/MuonIsolation/plugins/MuonPFIsolationWithConeVeto.cc index 754d1e604933d..bc3703d9a032e 100644 --- a/RecoMuon/MuonIsolation/plugins/MuonPFIsolationWithConeVeto.cc +++ b/RecoMuon/MuonIsolation/plugins/MuonPFIsolationWithConeVeto.cc @@ -59,11 +59,11 @@ bool MuonPFIsolationWithConeVeto::isInIsolationCone(const reco::CandidatePtr& ph break; } } - result *= ( is_vertex_allowed ); + result = result && ( is_vertex_allowed ); } - result *= aspacked->pt() > _vetoThreshold && deltar2 > _vetoConeSize2 && deltar2 < _coneSize2 ; + result = result &&( aspacked->pt() > _vetoThreshold && deltar2 > _vetoConeSize2 && deltar2 < _coneSize2 ); } else if ( aspf.isNonnull() && aspf.get() ) { - result *= aspf->pt() > _vetoThreshold && deltar2 > _vetoConeSize2 && deltar2 < _coneSize2 ; + result = result && ( aspf->pt() > _vetoThreshold && deltar2 > _vetoConeSize2 && deltar2 < _coneSize2 ); } else { throw cms::Exception("InvalidIsolationInput") << "The supplied candidate to be used as isolation "