Skip to content

Commit

Permalink
GPU: Add a switch to enable/disable the TPC PID response during recon… (
Browse files Browse the repository at this point in the history
#11893)

* GPU: Add a switch to enable/disable the TPC PID response during reconstruction

* GPU: Reorder enablePID entry in settings list for memory efficiency
  • Loading branch information
tubagundem authored Sep 16, 2023
1 parent d546441 commit 9c944fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions GPU/GPUTracking/Definitions/GPUSettingsList.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ AddOptionRTC(retryRefit, char, 1, "", 0, "Retry refit when fit fails")
AddOptionRTC(loopInterpolationInExtraPass, char, -1, "", 0, "Perform loop 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")
AddOptionRTC(enablePID, char, 1, "", 0, "Enable PID response")
AddHelp("help", 'h')
EndConfig()

Expand Down
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Merger/GPUTPCGMO2Output.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ GPUdii() void GPUTPCGMO2Output::Thread<GPUTPCGMO2Output::output>(int nBlocks, in
outerPar.C[6], outerPar.C[7], outerPar.C[8], outerPar.C[9], outerPar.C[10], outerPar.C[11],
outerPar.C[12], outerPar.C[13], outerPar.C[14]}));

if (merger.Param().par.dodEdx) {
if (merger.Param().par.dodEdx && merger.Param().rec.tpc.enablePID) {
PIDResponse pidResponse{};
const auto pid = pidResponse.getMostProbablePID(oTrack, merger.Param().rec.tpc.PID_EKrangeMin, merger.Param().rec.tpc.PID_EKrangeMax, merger.Param().rec.tpc.PID_EPrangeMin, merger.Param().rec.tpc.PID_EPrangeMax);
oTrack.setPID(pid);
Expand Down

0 comments on commit 9c944fa

Please sign in to comment.