Skip to content

[ALICE3] Add secondary particle LUT smearing - #18860

Merged
njacazio merged 12 commits into
AliceO2Group:masterfrom
njacazio:master
Nov 24, 2026
Merged

njacazio merged 12 commits into
AliceO2Group:masterfrom
njacazio:master

Conversation

@njacazio

Copy link
Copy Markdown
Collaborator

Ciao @jesgum could you please have a look? What do you think about it?

@github-actions github-actions Bot changed the title Add secondary particle LUT smearing [ALICE3] Add secondary particle LUT smearing Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 45 warnings, 🔕 0 disabled

@jesgum

jesgum commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Hi @njacazio! I think that this looks really good! I have only one question, it looks like the binning is the same as for the primary luts, did we not also need, z and phi?

@njacazio

Copy link
Copy Markdown
Collaborator Author

Hi @jesgum thanks! Indeed I put the number of hits as metric for the performance

@jesgum

jesgum commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Hi @njacazio, does this not use the same symmetry assumption that we use in the LUTs for primaries where the radius is used instead of NHits?

@njacazio
njacazio marked this pull request as ready for review November 24, 2026 09:53
@njacazio

Copy link
Copy Markdown
Collaborator Author

Hi, yes but the radius was fixed in the old one, and then with the radius one needs Z as we discussed last time.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for e3b5909 at 2026-11-24 11:05:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 9 errors and 38 warnings.'
Found 9 errors and 38 warnings.
++ [[ 9 -gt 0 ]]
++ cat /sw/BUILD/1241460f0aa171f7092cb121801a0c5aeb681717/O2Physics-code-check/errors.txt
ALICE3/Core/SecondaryLut.cxx:181:20: error: default arguments on virtual or override methods are prohibited [google-default-arguments,-warnings-as-errors]
ALICE3/Core/SecondaryLut.h:130:8: error: default arguments on virtual or override methods are prohibited [google-default-arguments,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:42:25: error: no header providing "o2::fastsim::SecondaryLutAxis" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:69:19: error: no header providing "o2::fastsim::SecondaryLut" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:140:47: error: no header providing "o2::fastsim::SecondaryLutEntry" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:186:40: error: no header providing "o2::fastsim::O2Track" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:208:3: error: no header providing "o2::fastsim::lutEntry_t" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:214:23: error: no header providing "o2::fastsim::kNumEigenModes" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.h:55:33: error: no header providing "o2::ccdb::BasicCCDBManager" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 38 -gt 0 ]]
++ cat /sw/BUILD/1241460f0aa171f7092cb121801a0c5aeb681717/O2Physics-code-check/warnings.txt
ALICE3/Core/DetLayer.cxx:120:15: warning: redundant string initialization [readability-redundant-string-init]
ALICE3/Core/DetLayer.h:72:3: warning: function 'getRadius' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:73:3: warning: function 'getZ' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:74:3: warning: function 'getRadiationLength' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:75:3: warning: function 'getDensity' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:76:3: warning: function 'getResolutionRPhi' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:77:3: warning: function 'getResolutionZ' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:78:3: warning: function 'getEfficiency' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:79:3: warning: function 'getType' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:80:3: warning: function 'getName' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:81:3: warning: function 'getDeadPhiRegions' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:82:3: warning: function 'getDiskInnerRadius' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:89:3: warning: function 'getDiskOuterRadius' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:96:3: warning: function 'getDiskZ' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:105:3: warning: function 'isInert' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:106:3: warning: function 'isSilicon' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:107:3: warning: function 'isGas' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:108:3: warning: function 'isTOF' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:109:3: warning: function 'isVertex' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:110:3: warning: function 'isSiliconDisk' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:111:3: warning: function 'isActive' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:114:3: warning: function 'toString' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:123:3: warning: function 'isInDeadPhiRegion' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:125:36: warning: statement should be inside braces [readability-braces-around-statements]
ALICE3/Core/FastTracker.cxx:107:15: warning: use auto when initializing with a cast to avoid duplicating the type name [modernize-use-auto]
[0 more errors; see full log]

Full log here.

@njacazio
njacazio enabled auto-merge (squash) November 24, 2026 11:46

@alibuild alibuild left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @njacazio.

@njacazio
njacazio merged commit 209e05b into AliceO2Group:master Nov 24, 2026
14 of 15 checks passed
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2Physics/code-check for c17fe01 at 2026-11-24 13:25:

## sw/BUILD/O2Physics-code-check-latest/log
--
========== List of issues found ==========
++ echo 'To reproduce the results below locally, run: '\''aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'\''.'
To reproduce the results below locally, run: 'aliBuild build O2Physics-code-check -e ALIBUILD_BASE_HASH=upstream/master'.
++ echo 'To apply all automatic fixes, add the '\''-e O2PHYSICS_CHECKER_FIX=1'\'' option.'
To apply all automatic fixes, add the '-e O2PHYSICS_CHECKER_FIX=1' option.
++ echo 'See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.'
See the documentation for more details at: <https://aliceo2group.github.io/analysis-framework/docs/tools/#running-with-o2physics-code-check>.
++ echo 'Found 9 errors and 39 warnings.'
Found 9 errors and 39 warnings.
++ [[ 9 -gt 0 ]]
++ cat /sw/BUILD/a0a0970b4329a8677a251966b4e0f8c9f1612aee/O2Physics-code-check/errors.txt
ALICE3/Core/SecondaryLut.cxx:182:20: error: default arguments on virtual or override methods are prohibited [google-default-arguments,-warnings-as-errors]
ALICE3/Core/SecondaryLut.h:131:8: error: default arguments on virtual or override methods are prohibited [google-default-arguments,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:42:25: error: no header providing "o2::fastsim::SecondaryLutAxis" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:69:19: error: no header providing "o2::fastsim::SecondaryLut" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:140:47: error: no header providing "o2::fastsim::SecondaryLutEntry" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:188:40: error: no header providing "o2::fastsim::O2Track" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:210:3: error: no header providing "o2::fastsim::lutEntry_t" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.cxx:216:23: error: no header providing "o2::fastsim::kNumEigenModes" is directly included [misc-include-cleaner,-warnings-as-errors]
ALICE3/Core/SecondaryTrackSmearer.h:55:33: error: no header providing "o2::ccdb::BasicCCDBManager" is directly included [misc-include-cleaner,-warnings-as-errors]
++ [[ 39 -gt 0 ]]
++ cat /sw/BUILD/a0a0970b4329a8677a251966b4e0f8c9f1612aee/O2Physics-code-check/warnings.txt
ALICE3/Core/DetLayer.cxx:119:15: warning: redundant string initialization [readability-redundant-string-init]
ALICE3/Core/DetLayer.h:72:3: warning: function 'getRadius' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:73:3: warning: function 'getZ' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:74:3: warning: function 'getRadiationLength' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:75:3: warning: function 'getDensity' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:76:3: warning: function 'getResolutionRPhi' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:77:3: warning: function 'getResolutionZ' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:78:3: warning: function 'getEfficiency' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:79:3: warning: function 'getType' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:80:3: warning: function 'getName' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:81:3: warning: function 'getDeadPhiRegions' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:82:3: warning: function 'getDiskInnerRadius' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:89:3: warning: function 'getDiskOuterRadius' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:96:3: warning: function 'getDiskZ' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:105:3: warning: function 'isInert' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:106:3: warning: function 'isSilicon' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:107:3: warning: function 'isGas' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:108:3: warning: function 'isTOF' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:109:3: warning: function 'isVertex' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:110:3: warning: function 'isSiliconDisk' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:111:3: warning: function 'isActive' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:114:3: warning: function 'toString' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:123:3: warning: function 'isInDeadPhiRegion' should be marked [[nodiscard]] [modernize-use-nodiscard]
ALICE3/Core/DetLayer.h:125:36: warning: statement should be inside braces [readability-braces-around-statements]
ALICE3/Core/FastTracker.cxx:107:15: warning: use auto when initializing with a cast to avoid duplicating the type name [modernize-use-auto]
[0 more errors; see full log]

Full log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants