Skip to content

Commit 91bcbb8

Browse files
committed
Make ITS vertex messageable
1 parent 1023e9b commit 91bcbb8

File tree

1 file changed

+17
-1
lines changed
  • DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS

1 file changed

+17
-1
lines changed

DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/Vertex.h

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#ifndef O2_TRACKINGITS_VERTEX_H_
1313
#define O2_TRACKINGITS_VERTEX_H_
1414

15+
#include "GPUCommonDef.h"
16+
#ifndef GPUCA_GPUCODE_DEVICE
17+
#include <type_traits>
18+
#endif
1519
#include "ReconstructionDataFormats/Vertex.h"
1620
#include "SimulationDataFormat/MCCompLabel.h"
1721
#include "DataFormatsITS/TimeEstBC.h"
@@ -22,4 +26,16 @@ using Vertex = o2::dataformats::Vertex<o2::its::TimeEstBC>;
2226
using VertexLabel = std::pair<o2::MCCompLabel, float>;
2327
} // namespace o2::its
2428

25-
#endif
29+
#ifndef GPUCA_GPUCODE_DEVICE
30+
/// Defining ITS Vertex explicitly as messageable
31+
namespace o2::framework
32+
{
33+
template <typename T>
34+
struct is_messageable;
35+
template <>
36+
struct is_messageable<o2::dataformats::Vertex<o2::its::TimeEstBC>> : std::true_type {
37+
};
38+
} // namespace o2::framework
39+
#endif
40+
41+
#endif

0 commit comments

Comments
 (0)