Skip to content

Commit 99d4fee

Browse files
davidrohrktf
authored andcommitted
GPUCF: Add protection for input with >= 4000 time bins, not yet supported
1 parent 5b7c01a commit 99d4fee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Detectors/TPC/reconstruction/src/GPUCATracking.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ int GPUCATracking::runTracking(GPUO2InterfaceIOPtrs* data)
9797
gpuDigits[i].reserve(d.size());
9898
gpuDigitsMap.tpcDigits[i] = gpuDigits[i].data();
9999
for (int j = 0; j < d.size(); j++) {
100+
if (d[j].getTimeStamp() >= 4000) {
101+
throw std::runtime_error("Digits with time bin >= 4000 not yet supported in GPUCF");
102+
}
100103
if (d[j].getChargeFloat() >= zsThreshold) {
101104
gpuDigits[i].emplace_back(deprecated::PackedDigit{d[j].getChargeFloat(), (Timestamp)d[j].getTimeStamp(), (Pad)d[j].getPad(), (Row)d[j].getRow()});
102105
}

0 commit comments

Comments
 (0)