Skip to content

Commit

Permalink
Make TrackingFrameInfo array const
Browse files Browse the repository at this point in the history
  • Loading branch information
mconcas committed Sep 3, 2024
1 parent 76a0e4c commit 362bb85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ class TimeFrameGPU : public TimeFrame
TrackITSExt* getDeviceTrackITSExt() { return mTrackITSExtDevice; }
gpuPair<int, int>* getDeviceNeighbours(const int layer) { return mNeighboursDevice[layer]; }
TrackingFrameInfo* getDeviceTrackingFrameInfo(const int);
TrackingFrameInfo** getDeviceArrayTrackingFrameInfo() { return mTrackingFrameInfoDeviceArray; }
// TrackingFrameInfo** getDeviceArrayTrackingFrameInfo() { return mTrackingFrameInfoDeviceArray; }
const TrackingFrameInfo** getDeviceArrayTrackingFrameInfo() const { return mTrackingFrameInfoDeviceArray; }
Cluster** getDeviceArrayClusters() const { return mClustersDeviceArray; }
Cluster** getDeviceArrayUnsortedClusters() const { return mUnsortedClustersDeviceArray; }
Tracklet** getDeviceArrayTracklets() const { return mTrackletsDeviceArray; }
Expand Down Expand Up @@ -275,7 +276,7 @@ class TimeFrameGPU : public TimeFrame
TrackITSExt* mTrackITSExtDevice;
std::array<gpuPair<int, int>*, nLayers - 2> mNeighboursDevice;
std::array<TrackingFrameInfo*, nLayers> mTrackingFrameInfoDevice;
TrackingFrameInfo** mTrackingFrameInfoDeviceArray;
const TrackingFrameInfo** mTrackingFrameInfoDeviceArray;

// State
std::vector<Stream> mGpuStreams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GPUd() bool fitTrack(TrackITSExt& track,
template <int nLayers = 7>
GPUg() void fitTrackSeedsKernel(
CellSeed* trackSeeds,
TrackingFrameInfo** foundTrackingFrameInfo,
const TrackingFrameInfo** foundTrackingFrameInfo,
o2::its::TrackITSExt* tracks,
const unsigned int nSeeds,
const float Bz,
Expand All @@ -51,7 +51,7 @@ GPUg() void fitTrackSeedsKernel(
} // namespace gpu

void trackSeedHandler(CellSeed* trackSeeds,
TrackingFrameInfo** foundTrackingFrameInfo,
const TrackingFrameInfo** foundTrackingFrameInfo,
o2::its::TrackITSExt* tracks,
const unsigned int nSeeds,
const float Bz,
Expand Down

0 comments on commit 362bb85

Please sign in to comment.