Skip to content

Commit

Permalink
GPU: Exclude disabled mergedTracks from debug dump + Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Feb 28, 2024
1 parent 5614787 commit 500ed2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Base/GPUReconstruction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int GPUReconstruction::InitPhaseBeforeDevice()
if (mProcessingSettings.debugLevel > 3 || !mProcessingSettings.fullMergerOnGPU || mProcessingSettings.deterministicGPUReconstruction) {
mProcessingSettings.delayedOutput = false;
}
if (!mProcessingSettings.fullMergerOnGPU && GetRecoStepsGPU() & RecoStep::TPCMerging) {
if (!mProcessingSettings.fullMergerOnGPU && (GetRecoStepsGPU() & RecoStep::TPCMerging)) {
param().rec.tpc.looperInterpolationInExtraPass = 0;
if (param().rec.tpc.retryRefit == 1) {
param().rec.tpc.retryRefit = 2;
Expand Down
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Definitions/GPUSettingsList.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ AddOptionRTC(dropLoopers, unsigned char, 0, "", 0, "Drop looping tracks starting
AddOptionRTC(mergerCovSource, unsigned char, 2, "", 0, "Method to obtain covariance in track merger: 0 = simple filterErrors method, 1 = use cov from track following, 2 = refit (default)")
AddOptionRTC(mergerInterpolateErrors, unsigned char, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection")
AddOptionRTC(mergeCE, unsigned char, 1, "", 0, "Merge tracks accross the central electrode")
AddOptionRTC(retryRefit, char, 1, "", 0, "Retry refit with seeding errors and without cluster rejection when fit fails")
AddOptionRTC(retryRefit, char, 1, "", 0, "Retry refit with seeding errors and without cluster rejection when fit fails (=2 means retry in same kernel, =1 for separate kernel")
AddOptionRTC(looperInterpolationInExtraPass, char, -1, "", 0, "Perform looper interpolation in an extra pass")
AddOptionRTC(mergerReadFromTrackerDirectly, char, 1, "", 0, "Forward data directly from tracker to merger on GPU")
AddOptionRTC(dropSecondaryLegsInOutput, char, 1, "", 0, "Do not store secondary legs of looping track in TrackTPC")
Expand Down
6 changes: 6 additions & 0 deletions GPU/GPUTracking/Merger/GPUTPCGMMergerDump.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ void GPUTPCGMMerger::DumpRefit(std::ostream& out) const
out << "\nTPC Merger Refit\n";
for (unsigned int i = 0; i < mMemory->nOutputTracks; i++) {
const auto& trk = mOutputTracks[i];
if (trk.NClusters() == 0) {
continue;
}
const auto& p = trk.GetParam();
const auto& po = trk.OuterParam();
out << " Track " << i << ": OK " << trk.OK() << " Alpha " << trk.GetAlpha() << " X " << p.GetX() << " offset " << p.GetTZOffset() << " Y " << p.GetY() << " Z " << p.GetZ() << " SPhi " << p.GetSinPhi() << " Tgl " << p.GetDzDs() << " QPt " << p.GetQPt() << " NCl " << trk.NClusters() << " / " << trk.NClustersFitted() << " Cov " << p.GetErr2Y() << "/" << p.GetErr2Z()
Expand All @@ -215,6 +218,9 @@ void GPUTPCGMMerger::DumpFinal(std::ostream& out) const
out << "\nTPC Merger Finalized\n";
for (unsigned int j = 0; j < mMemory->nOutputTracks; j++) {
const auto& trk = mOutputTracks[j];
if (trk.NClusters() == 0) {
continue;
}
out << " Track " << j << ": ";
for (unsigned int i = trk.FirstClusterRef(); i < trk.FirstClusterRef() + trk.NClusters(); i++) {
if (mClusters[i].state != 0) {
Expand Down

0 comments on commit 500ed2f

Please sign in to comment.