101101#include < fcntl.h>
102102#include < chrono>
103103#include < unordered_set>
104+ #include < span>
104105
105106using namespace o2 ::framework;
106107using namespace o2 ::header;
@@ -426,7 +427,7 @@ void GPURecoWorkflowSpec::processInputs(ProcessingContext& pc, D& tpcZSmeta, E&
426427 if (recv) {
427428 throw std::runtime_error (" Received multiple TPCZS data" );
428429 }
429- inputZS = pc.inputs ().get <gsl ::span<o2::tpc::ZeroSuppressedContainer8kb>>(ref);
430+ inputZS = pc.inputs ().get <std ::span<o2::tpc::ZeroSuppressedContainer8kb>>(ref);
430431 recv = true ;
431432 }
432433 if (!recv || !recvsizes) {
@@ -540,7 +541,7 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
540541 mTimer ->Start (false );
541542 mNTFs ++;
542543
543- std::vector<gsl ::span<const char >> inputs;
544+ std::vector<std ::span<const char >> inputs;
544545
545546 const o2::tpc::CompressedClustersFlat* pCompClustersFlat = nullptr ;
546547 size_t compClustersFlatDummyMemory[(sizeof (o2::tpc::CompressedClustersFlat) + sizeof (size_t ) - 1 ) / sizeof (size_t )];
@@ -549,7 +550,7 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
549550 o2::gpu::GPUTrackingInOutZS tpcZS;
550551 GPURecoWorkflowSpec_TPCZSBuffers tpcZSmeta;
551552 std::array<uint32_t , NEndpoints * NSectors> tpcZSonTheFlySizes;
552- gsl ::span<const o2::tpc::ZeroSuppressedContainer8kb> inputZS;
553+ std ::span<const o2::tpc::ZeroSuppressedContainer8kb> inputZS;
553554 std::unique_ptr<char []> tmpEmptyCompClusters;
554555
555556 bool getWorkflowTPCInput_clusters = false , getWorkflowTPCInput_mc = false , getWorkflowTPCInput_digits = false ;
@@ -853,7 +854,7 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
853854 FILE * fp = fopen (filename.c_str (), " w+b" );
854855 std::vector<InputSpec> filter = {{" check" , ConcreteDataTypeMatcher{gDataOriginTPC , " RAWDATA" }, Lifetime::Timeframe}};
855856 for (auto const & ref : InputRecordWalker (pc.inputs (), filter)) {
856- auto data = pc.inputs ().get <gsl ::span<char >>(ref);
857+ auto data = pc.inputs ().get <std ::span<char >>(ref);
857858 if (mConfParam ->dumpBadTFMode == 1 ) {
858859 uint64_t size = data.size ();
859860 fwrite (&size, 1 , sizeof (size), fp);
@@ -917,9 +918,9 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
917918 tmpEmptyClNative->clustersMCTruth = &clustersMCBuffer.second ;
918919 }
919920 } else {
920- gsl ::span<const o2::tpc::TrackTPC> spanOutputTracks = {ptrs.outputTracksTPCO2 , ptrs.nOutputTracksTPCO2 };
921- gsl ::span<const uint32_t > spanOutputClusRefs = {ptrs.outputClusRefsTPCO2 , ptrs.nOutputClusRefsTPCO2 };
922- gsl ::span<const o2::MCCompLabel> spanOutputTracksMCTruth = {ptrs.outputTracksTPCO2MC , ptrs.outputTracksTPCO2MC ? ptrs.nOutputTracksTPCO2 : 0 };
921+ std ::span<const o2::tpc::TrackTPC> spanOutputTracks = {ptrs.outputTracksTPCO2 , ptrs.nOutputTracksTPCO2 };
922+ std ::span<const uint32_t > spanOutputClusRefs = {ptrs.outputClusRefsTPCO2 , ptrs.nOutputClusRefsTPCO2 };
923+ std ::span<const o2::MCCompLabel> spanOutputTracksMCTruth = {ptrs.outputTracksTPCO2MC , ptrs.outputTracksTPCO2MC ? ptrs.nOutputTracksTPCO2 : 0 };
923924 if (!mConfParam ->allocateOutputOnTheFly ) {
924925 for (uint32_t i = 0 ; i < outputRegions.count (); i++) {
925926 if (outputRegions.asArray ()[i].ptrBase ) {
0 commit comments