3030#include < algorithm>
3131#include < vector>
3232
33- #ifdef GPUCA_HAVE_O2HEADERS
3433#include " clusterFinderDefs.h"
3534#include " DataFormatsTPC/ZeroSuppression.h"
3635#include " DataFormatsTPC/ZeroSuppressionLinkBased.h"
4039#include " TPCBase/RDHUtils.h"
4140#include " TPCBase/CRU.h"
4241#include " DetectorsRaw/RDHUtils.h"
43- #endif
4442
4543using namespace o2 ::gpu;
4644using namespace o2 ::tpc;
@@ -49,7 +47,6 @@ using namespace std::string_literals;
4947
5048void GPUReconstructionConvert::ConvertNativeToClusterData (o2::tpc::ClusterNativeAccess* native, std::unique_ptr<GPUTPCClusterData[]>* clusters, uint32_t * nClusters, const TPCFastTransform* transform, int32_t continuousMaxTimeBin)
5149{
52- #ifdef GPUCA_HAVE_O2HEADERS
5350 memset (nClusters, 0 , NSLICES * sizeof (nClusters[0 ]));
5451 uint32_t offset = 0 ;
5552 for (uint32_t i = 0 ; i < NSLICES; i++) {
@@ -83,12 +80,10 @@ void GPUReconstructionConvert::ConvertNativeToClusterData(o2::tpc::ClusterNative
8380 offset += native->nClusters [i][j];
8481 }
8582 }
86- #endif
8783}
8884
8985void GPUReconstructionConvert::ConvertRun2RawToNative (o2::tpc::ClusterNativeAccess& native, std::unique_ptr<ClusterNative[]>& nativeBuffer, const AliHLTTPCRawCluster** rawClusters, uint32_t * nRawClusters)
9086{
91- #ifdef GPUCA_HAVE_O2HEADERS
9287 memset ((void *)&native, 0 , sizeof (native));
9388 for (uint32_t i = 0 ; i < NSLICES; i++) {
9489 for (uint32_t j = 0 ; j < nRawClusters[i]; j++) {
@@ -115,12 +110,10 @@ void GPUReconstructionConvert::ConvertRun2RawToNative(o2::tpc::ClusterNativeAcce
115110 c.qTot = org.GetCharge ();
116111 }
117112 }
118- #endif
119113}
120114
121115int32_t GPUReconstructionConvert::GetMaxTimeBin (const ClusterNativeAccess& native)
122116{
123- #ifdef GPUCA_HAVE_O2HEADERS
124117 float retVal = 0 ;
125118 for (uint32_t i = 0 ; i < NSLICES; i++) {
126119 for (uint32_t j = 0 ; j < GPUCA_ROW_COUNT; j++) {
@@ -132,14 +125,10 @@ int32_t GPUReconstructionConvert::GetMaxTimeBin(const ClusterNativeAccess& nativ
132125 }
133126 }
134127 return ceil (retVal);
135- #else
136- return 0 ;
137- #endif
138128}
139129
140130int32_t GPUReconstructionConvert::GetMaxTimeBin (const GPUTrackingInOutDigits& digits)
141131{
142- #ifdef GPUCA_HAVE_O2HEADERS
143132 float retVal = 0 ;
144133 for (uint32_t i = 0 ; i < NSLICES; i++) {
145134 for (uint32_t k = 0 ; k < digits.nTPCDigits [i]; k++) {
@@ -149,14 +138,10 @@ int32_t GPUReconstructionConvert::GetMaxTimeBin(const GPUTrackingInOutDigits& di
149138 }
150139 }
151140 return ceil (retVal);
152- #else
153- return 0 ;
154- #endif
155141}
156142
157143int32_t GPUReconstructionConvert::GetMaxTimeBin (const GPUTrackingInOutZS& zspages)
158144{
159- #ifdef GPUCA_HAVE_O2HEADERS
160145 float retVal = 0 ;
161146 for (uint32_t i = 0 ; i < NSLICES; i++) {
162147 int32_t firstHBF = zspages.slice [i].count [0 ] ? o2::raw::RDHUtils::getHeartBeatOrbit (*(const o2::header::RAWDataHeader*)zspages.slice [i].zsPtr [0 ][0 ]) : 0 ;
@@ -182,9 +167,6 @@ int32_t GPUReconstructionConvert::GetMaxTimeBin(const GPUTrackingInOutZS& zspage
182167 }
183168 }
184169 return ceil (retVal);
185- #else
186- return 0 ;
187- #endif
188170}
189171
190172// ------------------------------------------------- TPC ZS -------------------------------------------------
@@ -1413,12 +1395,10 @@ void GPUReconstructionConvert::RunZSEncoder(const S& in, std::unique_ptr<uint64_
14131395#endif
14141396}
14151397
1416- #ifdef GPUCA_HAVE_O2HEADERS
14171398template void GPUReconstructionConvert::RunZSEncoder<GPUTrackingInOutDigits>(const GPUTrackingInOutDigits&, std::unique_ptr<uint64_t []>*, uint32_t *, o2::raw::RawFileWriter*, const o2::InteractionRecord*, const GPUParam&, int32_t , bool , float , bool , std::function<void (std::vector<o2::tpc::Digit>&)> digitsFilter);
14181399#ifdef GPUCA_O2_LIB
14191400template void GPUReconstructionConvert::RunZSEncoder<DigitArray>(const DigitArray&, std::unique_ptr<uint64_t []>*, uint32_t *, o2::raw::RawFileWriter*, const o2::InteractionRecord*, const GPUParam&, int32_t , bool , float , bool , std::function<void (std::vector<o2::tpc::Digit>&)> digitsFilter);
14201401#endif
1421- #endif
14221402
14231403void GPUReconstructionConvert::RunZSEncoderCreateMeta (const uint64_t * buffer, const uint32_t * sizes, void ** ptrs, GPUTrackingInOutZS* out)
14241404{
@@ -1436,7 +1416,6 @@ void GPUReconstructionConvert::RunZSEncoderCreateMeta(const uint64_t* buffer, co
14361416
14371417void 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)
14381418{
1439- #ifdef GPUCA_HAVE_O2HEADERS
14401419 for (uint32_t i = 0 ; i < NSLICES; i++) {
14411420 if (buffers[i].get () != ptrs[i] || nsb != ns) {
14421421 throw std::runtime_error (" Not owning digits" );
@@ -1459,7 +1438,6 @@ void GPUReconstructionConvert::RunZSFilter(std::unique_ptr<o2::tpc::Digit[]>* bu
14591438 }
14601439 nsb[i] = j;
14611440 }
1462- #endif
14631441}
14641442
14651443#ifdef GPUCA_O2_LIB
0 commit comments