Skip to content

Commit

Permalink
GPU TPC: Fix TPC clusterizer qMax cut
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Nov 27, 2024
1 parent 5d037e6 commit 96e4188
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GPU/GPUTracking/TPCClusterFinder/ClusterAccumulator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ GPUd() bool ClusterAccumulator::toNative(const ChargePos& pos, Charge q, tpc::Cl
if (cn.qTot <= param.rec.tpc.cfQTotCutoff) {
return false;
}
cn.qMax = q;
if (cn.qMax <= param.rec.tpc.cfQMaxCutoff) {
return false;
}
if (mTimeMean < param.rec.tpc.clustersShiftTimebinsClusterizer) {
return false;
}
Expand All @@ -48,7 +52,6 @@ GPUd() bool ClusterAccumulator::toNative(const ChargePos& pos, Charge q, tpc::Cl
flags |= (wasSplitInPad) ? tpc::ClusterNative::flagSplitPad : 0;
flags |= (isSingleCluster) ? tpc::ClusterNative::flagSingle : 0;

cn.qMax = q;
cn.setTimeFlags(mTimeMean - param.rec.tpc.clustersShiftTimebinsClusterizer, flags);
cn.setPad(mPadMean);
cn.setSigmaTime(mTimeSigma);
Expand Down

0 comments on commit 96e4188

Please sign in to comment.