2727#include < algorithm>
2828#include < vector>
2929
30- #ifdef HAVE_O2HEADERS
30+ #ifdef GPUCA_HAVE_O2HEADERS
3131#include " clusterFinderDefs.h"
3232#include " DataFormatsTPC/ZeroSuppression.h"
3333#include " DataFormatsTPC/Constants.h"
@@ -43,7 +43,7 @@ using namespace o2::tpc::constants;
4343
4444void GPUReconstructionConvert::ConvertNativeToClusterData (o2::tpc::ClusterNativeAccess* native, std::unique_ptr<GPUTPCClusterData[]>* clusters, unsigned int * nClusters, const TPCFastTransform* transform, int continuousMaxTimeBin)
4545{
46- #ifdef HAVE_O2HEADERS
46+ #ifdef GPUCA_HAVE_O2HEADERS
4747 memset (nClusters, 0 , NSLICES * sizeof (nClusters[0 ]));
4848 unsigned int offset = 0 ;
4949 for (unsigned int i = 0 ; i < NSLICES; i++) {
@@ -82,7 +82,7 @@ void GPUReconstructionConvert::ConvertNativeToClusterData(o2::tpc::ClusterNative
8282
8383void GPUReconstructionConvert::ConvertRun2RawToNative (o2::tpc::ClusterNativeAccess& native, std::unique_ptr<ClusterNative[]>& nativeBuffer, const AliHLTTPCRawCluster** rawClusters, unsigned int * nRawClusters)
8484{
85- #ifdef HAVE_O2HEADERS
85+ #ifdef GPUCA_HAVE_O2HEADERS
8686 memset ((void *)&native, 0 , sizeof (native));
8787 for (unsigned int i = 0 ; i < NSLICES; i++) {
8888 for (unsigned int j = 0 ; j < nRawClusters[i]; j++) {
@@ -114,7 +114,7 @@ void GPUReconstructionConvert::ConvertRun2RawToNative(o2::tpc::ClusterNativeAcce
114114
115115int GPUReconstructionConvert::GetMaxTimeBin (const ClusterNativeAccess& native)
116116{
117- #ifdef HAVE_O2HEADERS
117+ #ifdef GPUCA_HAVE_O2HEADERS
118118 float retVal = 0 ;
119119 for (unsigned int i = 0 ; i < NSLICES; i++) {
120120 for (unsigned int j = 0 ; j < GPUCA_ROW_COUNT; j++) {
@@ -133,7 +133,7 @@ int GPUReconstructionConvert::GetMaxTimeBin(const ClusterNativeAccess& native)
133133
134134int GPUReconstructionConvert::GetMaxTimeBin (const GPUTrackingInOutDigits& digits)
135135{
136- #ifdef HAVE_O2HEADERS
136+ #ifdef GPUCA_HAVE_O2HEADERS
137137 float retVal = 0 ;
138138 for (unsigned int i = 0 ; i < NSLICES; i++) {
139139 for (unsigned int k = 0 ; k < digits.nTPCDigits [i]; k++) {
@@ -150,7 +150,7 @@ int GPUReconstructionConvert::GetMaxTimeBin(const GPUTrackingInOutDigits& digits
150150
151151int GPUReconstructionConvert::GetMaxTimeBin (const GPUTrackingInOutZS& zspages)
152152{
153- #ifdef HAVE_O2HEADERS
153+ #ifdef GPUCA_HAVE_O2HEADERS
154154 float retVal = 0 ;
155155 for (unsigned int i = 0 ; i < NSLICES; i++) {
156156 int firstHBF = zspages.slice [i].count [0 ] ? o2::raw::RDHUtils::getHeartBeatOrbit (*(const o2::header::RAWDataHeader*)zspages.slice [i].zsPtr [0 ][0 ]) : 0 ;
@@ -193,7 +193,7 @@ void GPUReconstructionConvert::ZSstreamOut(unsigned short* bufIn, unsigned int&
193193 lenIn = 0 ;
194194}
195195
196- #ifdef HAVE_O2HEADERS
196+ #ifdef GPUCA_HAVE_O2HEADERS
197197void GPUReconstructionConvert::ZSfillEmpty (void * ptr, int shift, unsigned int feeId, int orbit)
198198{
199199 o2::header::RAWDataHeader* rdh = (o2::header::RAWDataHeader*)ptr;
@@ -573,7 +573,7 @@ void GPUReconstructionConvert::RunZSEncoderCreateMeta(const unsigned long long i
573573
574574void GPUReconstructionConvert::RunZSFilter (std::unique_ptr<o2::tpc::Digit[]>* buffers, const o2::tpc::Digit* const * ptrs, size_t * nsb, const size_t * ns, const GPUParam& param, bool zs12bit, float threshold)
575575{
576- #ifdef HAVE_O2HEADERS
576+ #ifdef GPUCA_HAVE_O2HEADERS
577577 for (unsigned int i = 0 ; i < NSLICES; i++) {
578578 if (buffers[i].get () != ptrs[i] || nsb != ns) {
579579 throw std::runtime_error (" Not owning digits" );
0 commit comments