diff --git a/RecoTauTag/RecoTau/src/PositionAtECalEntranceComputer.cc b/RecoTauTag/RecoTau/src/PositionAtECalEntranceComputer.cc index 8537b98d0c5f2..7b15c10d57427 100644 --- a/RecoTauTag/RecoTau/src/PositionAtECalEntranceComputer.cc +++ b/RecoTauTag/RecoTau/src/PositionAtECalEntranceComputer.cc @@ -53,11 +53,7 @@ reco::Candidate::Point PositionAtECalEntranceComputer::operator()(const reco::Ca } if (propagator.getSuccess() != 0) { position = propagator.particle().vertex().Vect(); - if (std::abs(position.eta()) > hgcalHfEtaBorder_) { - success = false; - } else { - success = true; - } + success = (std::abs(position.eta()) <= hgcalHfEtaBorder_); } else { success = false; }