Skip to content
Snippets Groups Projects
Commit b0b64dc6 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

remove use of unnecessary relation

parent 1092600b
No related branches found
No related tags found
1 merge request!200remove use of unnecessary relation
...@@ -206,7 +206,7 @@ namespace Jug::Reco { ...@@ -206,7 +206,7 @@ namespace Jug::Reco {
// shower radius estimate (eta-phi plane) // shower radius estimate (eta-phi plane)
double radius = 0.; double radius = 0.;
for (auto hit : cluster.hits()) { for (auto hit : hits) {
radius += std::sqrt(pow2(hit.eta() - cluster.eta()) + pow2(hit.polar().phi - cluster.polar().phi)); radius += std::sqrt(pow2(hit.eta() - cluster.eta()) + pow2(hit.polar().phi - cluster.polar().phi));
} }
cluster.radius(radius / cluster.nhits()); cluster.radius(radius / cluster.nhits());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment