1616#define O2_CONSTMCTRUTHCONTAINER_H
1717
1818#include < SimulationDataFormat/MCTruthContainer.h>
19+ #ifndef GPUCA_STANDALONE
1920#include < Framework/Traits.h>
21+ #endif
2022
2123namespace o2
2224{
@@ -77,7 +79,7 @@ class ConstMCTruthContainer : public std::vector<char>
7779 // / Restore internal vectors from a raw buffer
7880 // / The two vectors are resized according to the information in the \a FlatHeader
7981 // / struct at the beginning of the buffer. Data is copied to the vectors.
80- TruthElement const * const getLabelStart () const
82+ TruthElement const * getLabelStart () const
8183 {
8284 auto * source = &(*this )[0 ];
8385 auto flatheader = getHeader ();
@@ -94,7 +96,7 @@ class ConstMCTruthContainer : public std::vector<char>
9496 return flatheader;
9597 }
9698
97- MCTruthHeaderElement const * const getHeaderStart () const
99+ MCTruthHeaderElement const * getHeaderStart () const
98100 {
99101 auto * source = &(*this )[0 ];
100102 source += sizeof (FlatHeader);
@@ -108,12 +110,14 @@ class ConstMCTruthContainer : public std::vector<char>
108110// In particular in enables
109111// a) --> snapshot without ROOT dictionary (as a flat buffer)
110112// b) --> requesting the resource in shared mem using make<T>
113+ #ifndef GPUCA_STANDALONE
111114namespace o2 ::framework
112115{
113116template <typename T>
114117struct is_specialization <o2::dataformats::ConstMCTruthContainer<T>, std::vector> : std::true_type {
115118};
116119} // namespace o2::framework
120+ #endif
117121
118122namespace o2
119123{
@@ -149,10 +153,10 @@ class ConstMCTruthContainerView
149153 }
150154
151155 // return the number of original data indexed here
152- size_t getIndexedSize () const { return mStorage .size () >= sizeof (FlatHeader) ? getHeader ().nofHeaderElements : 0 ; }
156+ size_t getIndexedSize () const { return ( size_t ) mStorage .size () >= sizeof (FlatHeader) ? getHeader ().nofHeaderElements : 0 ; }
153157
154158 // return the number of labels managed in this container
155- size_t getNElements () const { return mStorage .size () >= sizeof (FlatHeader) ? getHeader ().nofTruthElements : 0 ; }
159+ size_t getNElements () const { return ( size_t ) mStorage .size () >= sizeof (FlatHeader) ? getHeader ().nofTruthElements : 0 ; }
156160
157161 // return underlying buffer
158162 const gsl::span<const char >& getBuffer () const { return mStorage ; }
@@ -174,7 +178,7 @@ class ConstMCTruthContainerView
174178 // / Restore internal vectors from a raw buffer
175179 // / The two vectors are resized according to the information in the \a FlatHeader
176180 // / struct at the beginning of the buffer. Data is copied to the vectors.
177- TruthElement const * const getLabelStart () const
181+ TruthElement const * getLabelStart () const
178182 {
179183 auto * source = &(mStorage )[0 ];
180184 auto flatheader = getHeader ();
@@ -191,7 +195,7 @@ class ConstMCTruthContainerView
191195 return flatheader;
192196 }
193197
194- MCTruthHeaderElement const * const getHeaderStart () const
198+ MCTruthHeaderElement const * getHeaderStart () const
195199 {
196200 auto * source = &(mStorage )[0 ];
197201 source += sizeof (FlatHeader);
0 commit comments