@@ -711,7 +711,7 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
711711 if (fragment.index == 0 ) {
712712 runKernel<GPUMemClean16>({GetGridAutoStep (lane, RecoStep::TPCClusterFinding)}, clustererShadow.mPpadIsNoisy , TPC_PADS_IN_SECTOR * sizeof (*clustererShadow.mPpadIsNoisy ));
713713 }
714- DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpChargeMap, *mDebugFile , " Zeroed Charges" , doGPU );
714+ DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpChargeMap, *mDebugFile , " Zeroed Charges" );
715715
716716 if (doGPU) {
717717 if (mIOPtrs .tpcZS && mCFContext ->nPagesSector [iSlice] && mCFContext ->zsVersion != -1 ) {
@@ -799,8 +799,8 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
799799 if (!mIOPtrs .tpcZS ) {
800800 runKernel<GPUTPCCFChargeMapFiller, GPUTPCCFChargeMapFiller::fillFromDigits>({GetGrid (clusterer.mPmemory ->counters .nPositions , lane), {iSlice}});
801801 }
802- if (DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpDigits, *mDebugFile )) {
803- clusterer.DumpChargeMap (*mDebugFile , " Charges" , doGPU );
802+ if (DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 << 1 , clusterer, &GPUTPCClusterFinder::DumpDigits, *mDebugFile )) {
803+ clusterer.DumpChargeMap (*mDebugFile , " Charges" );
804804 }
805805
806806 if (propagateMCLabels) {
@@ -818,11 +818,13 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
818818 }
819819
820820 runKernel<GPUTPCCFPeakFinder>({GetGrid (clusterer.mPmemory ->counters .nPositions , lane), {iSlice}});
821- DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpPeaks, *mDebugFile );
821+ if (DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 << 2 , clusterer, &GPUTPCClusterFinder::DumpPeaks, *mDebugFile )) {
822+ clusterer.DumpPeakMap (*mDebugFile , " Peaks" );
823+ }
822824
823825 RunTPCClusterizer_compactPeaks (clusterer, clustererShadow, 0 , doGPU, lane);
824826 TransferMemoryResourceLinkToHost (RecoStep::TPCClusterFinding, clusterer.mMemoryId , lane);
825- DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpPeaksCompacted, *mDebugFile );
827+ DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 << 2 , clusterer, &GPUTPCClusterFinder::DumpPeaksCompacted, *mDebugFile );
826828 }
827829 GPUCA_OPENMP (parallel for if (!doGPU && GetProcessingSettings ().ompKernels != 1 ) num_threads (mRec ->SetAndGetNestedLoopOmpFactor (!doGPU, GetProcessingSettings ().nTPCClustererLanes )))
828830 for (int lane = 0 ; lane < maxLane; lane++) {
@@ -837,11 +839,13 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
837839 }
838840 runKernel<GPUTPCCFNoiseSuppression, GPUTPCCFNoiseSuppression::noiseSuppression>({GetGrid (clusterer.mPmemory ->counters .nPeaks , lane), {iSlice}});
839841 runKernel<GPUTPCCFNoiseSuppression, GPUTPCCFNoiseSuppression::updatePeaks>({GetGrid (clusterer.mPmemory ->counters .nPeaks , lane), {iSlice}});
840- DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpSuppressedPeaks, *mDebugFile );
842+ if (DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 << 3 , clusterer, &GPUTPCClusterFinder::DumpSuppressedPeaks, *mDebugFile )) {
843+ clusterer.DumpPeakMap (*mDebugFile , " Suppressed Peaks" );
844+ }
841845
842846 RunTPCClusterizer_compactPeaks (clusterer, clustererShadow, 1 , doGPU, lane);
843847 TransferMemoryResourceLinkToHost (RecoStep::TPCClusterFinding, clusterer.mMemoryId , lane);
844- DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpSuppressedPeaksCompacted, *mDebugFile );
848+ DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 << 3 , clusterer, &GPUTPCClusterFinder::DumpSuppressedPeaksCompacted, *mDebugFile );
845849 }
846850 GPUCA_OPENMP (parallel for if (!doGPU && GetProcessingSettings ().ompKernels != 1 ) num_threads (mRec ->SetAndGetNestedLoopOmpFactor (!doGPU, GetProcessingSettings ().nTPCClustererLanes )))
847851 for (int lane = 0 ; lane < maxLane; lane++) {
@@ -862,7 +866,7 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
862866 }
863867
864868 runKernel<GPUTPCCFDeconvolution>({GetGrid (clusterer.mPmemory ->counters .nPositions , lane), {iSlice}});
865- DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpChargeMap, *mDebugFile , " Split Charges" , doGPU );
869+ DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 << 4 , clusterer, &GPUTPCClusterFinder::DumpChargeMap, *mDebugFile , " Split Charges" );
866870
867871 runKernel<GPUTPCCFClusterizer>({GetGrid (clusterer.mPmemory ->counters .nClusters , lane), {iSlice}}, 0 );
868872 if (doGPU && propagateMCLabels) {
@@ -878,9 +882,8 @@ int GPUChainTracking::RunTPCClusterizer(bool synchronizeOutput)
878882
879883 TransferMemoryResourcesToHost (RecoStep::TPCClusterFinding, &clusterer, lane);
880884 laneHasData[lane] = true ;
881- if (DoDebugAndDump (RecoStep::TPCClusterFinding, 262144 , clusterer, &GPUTPCClusterFinder::DumpCountedPeaks, *mDebugFile )) {
882- clusterer.DumpClusters (*mDebugFile );
883- }
885+ // Include clusters in default debug mask, exclude other debug output by default
886+ DoDebugAndDump (RecoStep::TPCClusterFinding, 131072 , clusterer, &GPUTPCClusterFinder::DumpClusters, *mDebugFile );
884887 }
885888 mRec ->SetNestedLoopOmpFactor (1 );
886889 }
0 commit comments