Commit fd586c7c authored by Administrator's avatar Administrator
Browse files

Fix cluster analysis

Remove rounding of the time value which introduces differences between the
original tree and the new tree.
parent 89878ca9
......@@ -51,7 +51,8 @@ void CbmStsAlgoAnaCluster::AnaSize1(CbmStsCluster& cluster, const CbmStsClusterA
Double_t charge = asic.AdcToCharge(digi->GetCharge());
Double_t xError = 1. / sqrt(24.);
cluster.SetProperties(charge, x, xError, std::round(time), timeError);
cluster.SetProperties(charge, x, xError, time, timeError);
// cluster.SetProperties(charge, x, xError, std::round(time), timeError);
cluster.SetSize(1);
}
// --------------------------------------------------------------------------
......@@ -126,7 +127,8 @@ void CbmStsAlgoAnaCluster::AnaSize2(CbmStsCluster& cluster, const CbmStsClusterA
// Cluster charge
Double_t charge = q1 + q2;
cluster.SetProperties(charge, x, xError, std::round(time), timeError);
cluster.SetProperties(charge, x, xError, time, timeError);
// cluster.SetProperties(charge, x, xError, std::round(time), timeError);
cluster.SetSize(2);
}
// --------------------------------------------------------------------------
......@@ -220,7 +222,8 @@ void CbmStsAlgoAnaCluster::AnaSizeN(CbmStsCluster& cluster, const CbmStsClusterA
assert(x >= chanF && x <= chanL);
cluster.SetProperties(qSum, x, xError, std::round(tSum), tError);
cluster.SetProperties(qSum, x, xError, tSum, tError);
// cluster.SetProperties(qSum, x, xError, std::round(tSum), tError);
cluster.SetSize(chanL - chanF + 1);
}
// --------------------------------------------------------------------------
......
Supports Markdown
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