Skip to content

Commit 5559b93

Browse files
committed
ITS: Tracklet add print compatible on GPU
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 5cae1bc commit 5559b93

File tree

1 file changed

+2
-5
lines changed
  • Detectors/ITSMFT/ITS/tracking/include/ITStracking

1 file changed

+2
-5
lines changed

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Tracklet.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,10 @@ struct Tracklet final {
4747
GPUhdi() auto getDeltaRof() const { return rof[1] - rof[0]; }
4848
GPUhdi() auto getSpanRof(const Tracklet& o) const noexcept { return o2::gpu::CAMath::Max(getMaxRof(), o.getMaxRof()) - o2::gpu::CAMath::Min(getMinRof(), o.getMinRof()); }
4949
GPUhdi() unsigned char operator<(const Tracklet&) const;
50-
#if !defined(GPUCA_NO_FMT) && !defined(GPUCA_GPUCODE_DEVICE)
51-
std::string asString() const
50+
GPUhd() void print() const
5251
{
53-
return fmt::format("fClIdx:{} fROF:{} sClIdx:{} sROF:{} (DROF:{})", firstClusterIndex, rof[0], secondClusterIndex, rof[1], getDeltaRof());
52+
printf("TRKLT: fClIdx:%d fROF:%d sClIdx:%d sROF:%d (DROF:%d) tgl=%f phi=%f\n", firstClusterIndex, rof[0], secondClusterIndex, rof[1], getDeltaRof(), tanLambda, phi);
5453
}
55-
void print() const { LOG(info) << asString(); }
56-
#endif
5754

5855
int firstClusterIndex{constants::UnusedIndex};
5956
int secondClusterIndex{constants::UnusedIndex};

0 commit comments

Comments
 (0)