added benchmark to time generalize calculate_eta - twice as long so will keep specific version for 2x2 and 3x3 clusters

This commit is contained in:
Mazzoleni Alice Francesca
2025-03-31 17:04:57 +02:00
parent ed9ef7c600
commit 7e5f91c6ec
4 changed files with 95 additions and 16 deletions

View File

@ -445,7 +445,7 @@ Eta2 calculate_eta2(
* @brief Calculate the eta2 values for a 3x3 cluster and return them in a Eta2
* struct containing etay, etax and the corner of the cluster.
*/
/*
template <typename T> Eta2 calculate_eta2(const Cluster<T, 3, 3> &cl) {
Eta2 eta{};
@ -489,9 +489,7 @@ template <typename T> Eta2 calculate_eta2(const Cluster<T, 3, 3> &cl) {
}
return eta;
}
*/
/*
template <typename T> Eta2 calculate_eta2(const Cluster<T, 2, 2> &cl) {
Eta2 eta{};
@ -501,7 +499,6 @@ template <typename T> Eta2 calculate_eta2(const Cluster<T, 2, 2> &cl) {
eta.c = cBottomLeft; // TODO! This is not correct, but need to put something
return eta;
}
*/
// calculates Eta3 for 3x3 cluster based on code from analyze_cluster
// TODO only supported for 3x3 Clusters