Skip to content

Commit

Permalink
small simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
mbluj committed Oct 16, 2020
1 parent 5363318 commit 9277c0b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions RecoTauTag/RecoTau/src/PositionAtECalEntranceComputer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9277c0b

Please sign in to comment.