Skip to content

Commit be08a9a

Browse files
committed
GPU TPC: Fix TPC clusterizer qMax cut
1 parent f76f1a7 commit be08a9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GPU/GPUTracking/TPCClusterFinder/ClusterAccumulator.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ GPUd() bool ClusterAccumulator::toNative(const ChargePos& pos, Charge q, tpc::Cl
2727
if (cn.qTot <= param.rec.tpc.cfQTotCutoff) {
2828
return false;
2929
}
30+
cn.qMax = q;
31+
if (cn.qMax <= param.rec.tpc.cfQMaxCutoff) {
32+
return false;
33+
}
3034
if (mTimeMean < param.rec.tpc.clustersShiftTimebinsClusterizer) {
3135
return false;
3236
}
@@ -48,7 +52,6 @@ GPUd() bool ClusterAccumulator::toNative(const ChargePos& pos, Charge q, tpc::Cl
4852
flags |= (wasSplitInPad) ? tpc::ClusterNative::flagSplitPad : 0;
4953
flags |= (isSingleCluster) ? tpc::ClusterNative::flagSingle : 0;
5054

51-
cn.qMax = q;
5255
cn.setTimeFlags(mTimeMean - param.rec.tpc.clustersShiftTimebinsClusterizer, flags);
5356
cn.setPad(mPadMean);
5457
cn.setSigmaTime(mTimeSigma);

0 commit comments

Comments
 (0)