Commit bb5a4ddc authored by Jens Kroeger's avatar Jens Kroeger
Browse files

Clustering4D: rescued DEBUG output that got lost + improved inline comment

parent 9cd1fb8c
......@@ -193,13 +193,15 @@ void Clustering4D::calculateClusterCentre(Cluster* cluster) {
column_sum_chargeweighted += (pixel->column() * pixel->charge());
row_sum_chargeweighted += (pixel->row() * pixel->charge());
LOG(DEBUG) << "- cluster col, row: " << column << "," << row;
if(pixel->timestamp() < timestamp) {
timestamp = pixel->timestamp();
}
}
if(chargeWeighting && !found_charge_zero) {
// Charge-weighted cluster centre:
// Charge-weighted centre-of-gravity for cluster centre:
// (here it's safe to divide by the charge as it cannot be zero due to !found_charge_zero)
column = column_sum_chargeweighted / charge;
row = row_sum_chargeweighted / charge;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment