@@ -242,9 +242,9 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
242242
243243 std::array<bool , NSECTORS> transferRunning;
244244 transferRunning.fill (true );
245- if (( GetRecoStepsOutputs () & GPUDataTypes::InOutType::TPCSectorTracks) || ( doGPU && !(GetRecoStepsGPU () & RecoStep::TPCMerging))) {
245+ if (doGPU && !(GetRecoStepsGPU () & RecoStep::TPCMerging)) { // TODO: This seems pretty obsolete code path, can probably be removed.
246246 if (param ().rec .tpc .extrapolationTracking ) {
247- mWriteOutputDone .fill (0 );
247+ mExtrapolationTrackingDone .fill (0 );
248248 }
249249
250250 uint32_t tmpSector = 0 ;
@@ -288,18 +288,15 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
288288 uint32_t sectorLeft, sectorRight;
289289 GPUTPCExtrapolationTracking::ExtrapolationTrackingSectorLeftRight (tmpSector2, sectorLeft, sectorRight);
290290
291- if (tmpSector2 <= iSector && sectorLeft <= iSector && sectorRight <= iSector && mWriteOutputDone [tmpSector2] == 0 ) {
291+ if (tmpSector2 <= iSector && sectorLeft <= iSector && sectorRight <= iSector && mExtrapolationTrackingDone [tmpSector2] == 0 ) {
292292 ExtrapolationTracking (tmpSector2, 0 );
293- WriteOutput (tmpSector2, 0 );
294- mWriteOutputDone [tmpSector2] = 1 ;
293+ mExtrapolationTrackingDone [tmpSector2] = 1 ;
295294 }
296295 }
297- } else {
298- WriteOutput (iSector, 0 );
299296 }
300297 }
301298 }
302- if (!( GetRecoStepsOutputs () & GPUDataTypes::InOutType::TPCSectorTracks) && param ().rec .tpc .extrapolationTracking ) {
299+ if (param ().rec .tpc .extrapolationTracking ) {
303300 std::vector<bool > blocking (NSECTORS * mRec ->NStreams ());
304301 for (int32_t i = 0 ; i < NSECTORS; i++) {
305302 for (int32_t j = 0 ; j < mRec ->NStreams (); j++) {
@@ -308,7 +305,7 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
308305 }
309306 for (uint32_t iSector = 0 ; iSector < NSECTORS; iSector++) {
310307 uint32_t tmpSector = GPUTPCExtrapolationTracking::ExtrapolationTrackingSectorOrder (iSector);
311- if (!(( GetRecoStepsOutputs () & GPUDataTypes::InOutType::TPCSectorTracks) || ( doGPU && !(GetRecoStepsGPU () & RecoStep::TPCMerging) ))) {
308+ if (!(doGPU && !(GetRecoStepsGPU () & RecoStep::TPCMerging))) {
312309 uint32_t sectorLeft, sectorRight;
313310 GPUTPCExtrapolationTracking::ExtrapolationTrackingSectorLeftRight (tmpSector, sectorLeft, sectorRight);
314311 if (doGPU && !blocking[tmpSector * mRec ->NStreams () + sectorLeft % mRec->NStreams()]) {
@@ -334,9 +331,6 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
334331 if (param ().rec .tpc .extrapolationTracking ) {
335332 ExtrapolationTracking (iSector, 0 );
336333 }
337- if (GetRecoStepsOutputs () & GPUDataTypes::InOutType::TPCSectorTracks) {
338- WriteOutput (iSector, 0 );
339- }
340334 });
341335 mRec ->SetNActiveThreadsOuterLoop (1 );
342336 }
@@ -348,12 +342,6 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
348342 }
349343 }
350344
351- if (GetProcessingSettings ().debugMask & 1024 && !GetProcessingSettings ().deterministicGPUReconstruction ) {
352- for (uint32_t i = 0 ; i < NSECTORS; i++) {
353- processors ()->tpcTrackers [i].DumpOutput (*mDebugFile );
354- }
355- }
356-
357345 if (DoProfile ()) {
358346 return (1 );
359347 }
@@ -372,15 +360,3 @@ int32_t GPUChainTracking::RunTPCTrackingSectors_internal()
372360 mRec ->PopNonPersistentMemory (RecoStep::TPCSectorTracking, qStr2Tag (" TPCSLTRK" ));
373361 return 0 ;
374362}
375-
376- void GPUChainTracking::WriteOutput (int32_t iSector, int32_t threadId)
377- {
378- if (GetProcessingSettings ().debugLevel >= 5 ) {
379- GPUInfo (" Running WriteOutput for sector %d on thread %d\n " , iSector, threadId);
380- }
381- processors ()->tpcTrackers [iSector].WriteOutputPrepare ();
382- processors ()->tpcTrackers [iSector].WriteOutput ();
383- if (GetProcessingSettings ().debugLevel >= 5 ) {
384- GPUInfo (" Finished WriteOutput for sector %d on thread %d\n " , iSector, threadId);
385- }
386- }
0 commit comments