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
@@ -114,12 +114,12 @@ __global__ void scifi_raw_bank_decoder_kernel(
const int delta_parameter = cluster_reference & 0xFF;
if (condition == 0x03) {
pseudoSize = 0;
pseudoSize = 1;
cluster_fraction = 1;
cluster_chan += delta_parameter;
}
else if (condition == 0x04) {
pseudoSize = 0;
pseudoSize = 2;
cluster_fraction = (widthClus - 1) % 2;
cluster_chan += delta_parameter + (widthClus - delta_parameter - 1) / 2 - 1;
}
@@ -129,7 +129,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 int condition = (cluster_reference >> 13) & 0x07; // FIXME
@@ -147,12 +147,12 @@ __global__ void scifi_raw_bank_decoder_kernel(
const int delta_parameter = cluster_reference & 0xFF;
if (condition == 0x03) {
pseudoSize = 0;
pseudoSize = 1;
cluster_fraction = 1;
cluster_chan += delta_parameter;
}
else if (condition == 0x04) {
pseudoSize = 0;
pseudoSize = 2;
cluster_fraction = (widthClus - 1) % 2;
cluster_chan += delta_parameter + (widthClus - delta_parameter - 1) / 2 - 1;
}
@@ -162,7 +162,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