Skip to content

Commit ddf1fd0

Browse files
committed
ITS: Vertexer add debug dump
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent e76eb64 commit ddf1fd0

File tree

3 files changed

+275
-104
lines changed

3 files changed

+275
-104
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ void clearResizeBoundedArray(std::array<bounded_vector<T>, S>& arr, size_t size,
174174
}
175175
}
176176

177+
template <typename T>
178+
std::vector<T> toSTDVector(const bounded_vector<T>& b)
179+
{
180+
std::vector<T> t(b.size());
181+
std::copy(b.cbegin(), b.cend(), t.begin());
182+
return t;
183+
}
184+
177185
} // namespace o2::its
178186

179187
#endif

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ class VertexerTraits
119119
private:
120120
std::shared_ptr<BoundedMemoryResource> mMemoryPool;
121121
std::shared_ptr<tbb::task_arena> mTaskArena;
122+
123+
// debug output
124+
void debugComputeTracklets(int iteration);
125+
void debugComputeTrackletMatching(int iteration);
126+
void debugComputeVertices(int iteration);
122127
};
123128

124129
inline void VertexerTraits::initialise(const TrackingParameters& trackingParams, const int iteration)

0 commit comments

Comments
 (0)