Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Seed filter should make no use of external sp methods #1744

Merged
merged 8 commits into from
Dec 19, 2022
8 changes: 4 additions & 4 deletions Core/include/Acts/Seeding/SeedFilter.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ void SeedFilter<external_spacepoint_t>::filterSeeds_1SpFixed(
float seed1_sum = 0;
float seed2_sum = 0;
for (int i = 0; i < 3; i++) {
seed1_sum += pow(i1.second->sp[i]->sp().y(), 2) +
pow(i1.second->sp[i]->sp().z(), 2);
seed2_sum += pow(i2.second->sp[i]->sp().y(), 2) +
pow(i2.second->sp[i]->sp().z(), 2);
seed1_sum += pow(i1.second->sp[i]->y(), 2) +
CarloVarni marked this conversation as resolved.
Show resolved Hide resolved
pow(i1.second->sp[i]->z(), 2);
seed2_sum += pow(i2.second->sp[i]->y(), 2) +
pow(i2.second->sp[i]->z(), 2);
}
return seed1_sum > seed2_sum;
}
Expand Down