Skip to content

Commit

Permalink
TPC Cluster error: Fix formula, some factors should be squared
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Mar 12, 2024
1 parent 324e29b commit 9ebe6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Base/GPUParam.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ MEM_CLASS_PRE()
GPUdi() float MEM_LG(GPUParam)::GetClusterError2(int yz, int type, float z, float angle2, float scaledMult, float scaledAvgCharge, float scaledCharge) const
{
MakeType(const float*) c = ParamErrors[yz][type];
float v = c[0] + c[1] * angle2 * scaledAvgCharge + c[2] * z * scaledCharge + c[3] * scaledMult * scaledAvgCharge;
float v = c[0] + c[1] * angle2 * scaledAvgCharge + c[2] * z * scaledCharge + c[3] * (scaledMult * scaledMult) * (scaledAvgCharge * scaledAvgCharge);
v = CAMath::Abs(v);
v *= yz ? rec.tpc.clusterError2CorrectionZ : rec.tpc.clusterError2CorrectionY;
v += yz ? rec.tpc.clusterError2AdditionalZ : rec.tpc.clusterError2AdditionalY;
Expand Down

0 comments on commit 9ebe6ba

Please sign in to comment.