Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GPU/GPUTracking/TPCClusterFinder/ClusterAccumulator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ GPUd() void ClusterAccumulator::finalize(const ChargePos& pos, Charge q, TPCTime
if (CfUtils::isAtEdge(pos, geo.NPads(pos.row()))) {
bool leftEdge = (pad < 2);
bool correct = (leftEdge) ? (pad < mPadMean) : (pad > mPadMean);
if (leftEdge && pad == 1) { // only check charge at boundary if maximum is at least one pad away from boundary
if (leftEdge && pad == 1) { // only check charge at boundary if maximum is at least one pad away from boundary
correct = correct && (padBoundaryCharges[0] > 0); // Only correct if cluster is asymmetric with charge > 0 towards sector boundary, otherwise all charge is found
} else if (!leftEdge && pad == (geo.NPads(pos.row()) - 1)) {
correct = correct && (padBoundaryCharges[1] > 0);
Expand Down
2 changes: 1 addition & 1 deletion GPU/GPUTracking/TPCClusterFinder/GPUTPCCFClusterizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ GPUdii() void GPUTPCCFClusterizer::computeClustersImpl(int32_t nBlocks, int32_t
ChargePos pos = filteredPeakPositions[CAMath::Min(idx, clusternum - 1)];
Charge charge = chargeMap[pos].unpack();

Charge padBoundaryCharges[2] = {chargeMap[pos.delta({-1,0})].unpack(), chargeMap[pos.delta({1,0})].unpack()};
Charge padBoundaryCharges[2] = {chargeMap[pos.delta({-1, 0})].unpack(), chargeMap[pos.delta({1, 0})].unpack()};

ClusterAccumulator pc;
CPU_ONLY(labelAcc->collect(pos, charge));
Expand Down