Skip to content

Commit 347ccac

Browse files
committed
fix3
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 26f187a commit 347ccac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class TrackingTopology
7979
GPUhdi() Range getCellsStartingWithTransition(Id transitionId) const { return cellsByFirstTransitionIndex[transitionId]; }
8080
};
8181

82+
// hide any functionality for GPU
83+
#ifndef GPUCA_GPUCODE
8284
void init(int maxLayers, int maxHoles, Mask holeLayerMask)
8385
{
8486
clear();
@@ -143,7 +145,6 @@ class TrackingTopology
143145
Id getNCells() const noexcept { return mNCells; }
144146
Id getNCellsByFirstTransition() const noexcept { return mNCellsByFirstTransition; }
145147

146-
#ifndef GPUCA_GPUCODE
147148
std::string asString() const
148149
{
149150
std::string out = fmt::format("TrackingTopology: layers={} maxHoles={} holeMask={} transitions={} cells={}", mMaxLayers, mMaxHoles, mHoleLayerMask.asString(), static_cast<int>(mNTransitions), static_cast<int>(mNCells));
@@ -166,7 +167,6 @@ class TrackingTopology
166167
{
167168
LOGP(info, "{}", asString());
168169
}
169-
#endif
170170

171171
private:
172172
void clear()
@@ -212,6 +212,7 @@ class TrackingTopology
212212
std::array<CellTopology, MaxCells> mCells{};
213213
std::array<Range, MaxTransitions> mCellsByFirstTransitionIndex{};
214214
std::array<Id, MaxCells> mCellsByFirstTransition{};
215+
#endif
215216
};
216217

217218
} // namespace o2::its

0 commit comments

Comments
 (0)