Skip to content
Snippets Groups Projects

Draft: update FT cluster pseudosize

Closed Zehua Xu requested to merge FT_cluster_pseudosize into master
1 unresolved thread
@@ -118,12 +118,12 @@ __global__ void scifi_raw_bank_decoder_kernel(
const int delta_parameter = SciFi::ClusterReference::getDelta(cluster_reference);
if (condition == SciFi::ClusterTypes::BigCluster) {
pseudoSize = 0;
pseudoSize = 1;
cluster_fraction = 1;
cluster_chan += delta_parameter;
}
else if (condition == SciFi::ClusterTypes::EdgeCluster) {
pseudoSize = 0;
pseudoSize = 2;
cluster_fraction = (widthClus - 1) % 2;
cluster_chan += delta_parameter + (widthClus - delta_parameter - 1) / 2 - 1;
}
@@ -133,7 +133,7 @@ __global__ void scifi_raw_bank_decoder_kernel(
cluster_chan += (widthClus - 1) / 2 - 1;
}
}
make_cluster(hit_count.event_offset() + i, geom, cluster_chan, cluster_fraction, pseudoSize, hits);
make_cluster(hit_count.event_offset() + i, geom, cluster_chan, cluster_fraction, pseudoSize + 1, hits);
}
else if constexpr (decoding_version == 6 || decoding_version == 8) {
const unsigned int condition = SciFi::ClusterReference::getCond(cluster_reference); // FIXME
@@ -152,12 +152,12 @@ __global__ void scifi_raw_bank_decoder_kernel(
const int delta_parameter = SciFi::ClusterReference::getDelta(cluster_reference);
if (condition == SciFi::ClusterTypes::BigCluster) {
pseudoSize = 0;
pseudoSize = 1;
cluster_fraction = 1;
cluster_chan += delta_parameter;
}
else if (condition == SciFi::ClusterTypes::EdgeCluster) {
pseudoSize = 0;
pseudoSize = 2;
cluster_fraction = (widthClus - 1) % 2;
cluster_chan += delta_parameter + (widthClus - delta_parameter - 1) / 2 - 1;
}
@@ -167,7 +167,7 @@ __global__ void scifi_raw_bank_decoder_kernel(
cluster_chan += (widthClus - 1) / 2 - 1;
}
}
make_cluster(hit_count.event_offset() + i, geom, cluster_chan, cluster_fraction, pseudoSize, hits);
make_cluster(hit_count.event_offset() + i, geom, cluster_chan, cluster_fraction, pseudoSize + 1, hits);
}
}
}
Loading