Skip to content

Commit 4246f5e

Browse files
committed
Fixing edge handling
1 parent 5e63102 commit 4246f5e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

GPU/GPUTracking/TPCClusterFinder/ClusterAccumulator.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ClusterAccumulator
4040
GPUd() tpccf::Charge updateInner(PackedCharge, tpccf::Delta2);
4141
GPUd() tpccf::Charge updateOuter(PackedCharge, tpccf::Delta2);
4242

43-
GPUd() void finalize(const ChargePos&, tpccf::Charge, tpccf::TPCTime, const GPUTPCGeometry&);
43+
GPUd() void finalize(const ChargePos&, tpccf::Charge, tpccf::TPCTime, const GPUTPCGeometry&, tpccf::Charge*);
4444
GPUd() bool toNative(const ChargePos&, tpccf::Charge, tpc::ClusterNative&, const GPUParam&) const;
4545

4646
private:
@@ -51,7 +51,6 @@ class ClusterAccumulator
5151
float mTimeSigma = 0;
5252
uint8_t mSplitInTime = 0;
5353
uint8_t mSplitInPad = 0;
54-
bool edgeIsZero = 0;
5554

5655
GPUd() void update(tpccf::Charge, tpccf::Delta2);
5756
};

GPU/GPUTracking/TPCClusterFinder/GPUTPCCFClusterizer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ GPUdii() void GPUTPCCFClusterizer::computeClustersImpl(int32_t nBlocks, int32_t
5858
ChargePos pos = filteredPeakPositions[CAMath::Min(idx, clusternum - 1)];
5959
Charge charge = chargeMap[pos].unpack();
6060

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

6363
ClusterAccumulator pc;
6464
CPU_ONLY(labelAcc->collect(pos, charge));

0 commit comments

Comments
 (0)