TPC SCD: add clampTgSlp to keep residuals beyond MaxTgSlp - #15839
Open
matthias-kleiner wants to merge 1 commit into
Open
matthias-kleiner wants to merge 1 commit into
matthias-kleiner wants to merge 1 commit into
Conversation
The |tan(phi)| < param::MaxTgSlp condition on a TPC cluster residual is evaluated on the REFERENCE track's direction. For ITS-TPC tracks that direction carries the ITS curvature error, so dropping the cluster selects on that error (over-curved references reach the limit first), a one-sided selection that grows with radius for pt below ~0.3 GeV. With clampTgSlp=true the cluster is kept and tgSlp is stored saturated at +-MaxTgSlp (tgSlp == +-0x7fff, UnbinnedResid::isTgSlpClamped()); dy, dz, y, z are unchanged. Default false = unchanged behaviour and file content; the format is not changed. With clampTgSlp the saturated tgSlp is not the track's angle, and the voxel fit extracts dX from dY vs tan(phi) (also used by the map-correction check in staticMapCreator.C). ResidualsContainer::fill and staticMapCreator.C therefore skip UnbinnedResid::isTgSlpClamped() residuals when binning; they stay in the unbinned output. The vDrift estimate (dz vs z only) still uses them. No effect unless clampTgSlp is on. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matthias-kleiner
requested review from
davidrohr,
shahor02 and
wiechula
as code owners
September 24, 2026 16:19
Collaborator
shahor02
approved these changes
Sep 24, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The |tan(phi)| < param::MaxTgSlp condition on a TPC cluster residual is evaluated on the REFERENCE track's direction. For ITS-TPC tracks that direction carries the ITS curvature error, so dropping the cluster selects on that error (over-curved references reach the limit first), a one-sided selection that grows with radius for pt below ~0.3 GeV. With clampTgSlp=true the cluster is kept and tgSlp is stored saturated at +-MaxTgSlp (tgSlp == +-0x7fff, UnbinnedResid::isTgSlpClamped()); dy, dz, y, z are unchanged. Default false = unchanged behaviour and file content; the format is not changed.
With clampTgSlp the saturated tgSlp is not the track's angle, and the voxel fit extracts dX from dY vs tan(phi) (also used by the map-correction check in staticMapCreator.C). ResidualsContainer::fill and staticMapCreator.C therefore skip UnbinnedResid::isTgSlpClamped() residuals when binning; they stay in the unbinned output. The vDrift estimate (dz vs z only) still uses them. No effect unless clampTgSlp is on.
Example of rejected fraction of clusters from no dist MC:
MC_noDist.pdf