Skip to content

[ALICE3] Add improved LUT format#15711

Draft
aalkin wants to merge 12 commits intoAliceO2Group:masterfrom
aalkin:add-improved-lut-format-pr
Draft

[ALICE3] Add improved LUT format#15711
aalkin wants to merge 12 commits intoAliceO2Group:masterfrom
aalkin:add-improved-lut-format-pr

Conversation

@aalkin
Copy link
Copy Markdown
Member

@aalkin aalkin commented Apr 10, 2026

Hello @njacazio,

This is the replacement for TrackSmearer and LUTWriter, using a flattened data structure FlatLutData. It should be functionally identical (needs validation), but in addition it allows to construct the TrackSmearer as a view over shared memory instead of copying memory or loading the LUT from file. From the API standpoint, you should be able to use the new TrackSmearer in exactly the same way as the old one, and after some additional developments in O2 you can switch to the view approach.

@github-actions github-actions bot changed the title ALICE3: Add improved LUT format [ALICE3] Add improved LUT format Apr 10, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

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

@aalkin aalkin force-pushed the add-improved-lut-format-pr branch from af0bd6a to d05c30f Compare April 14, 2026 07:39
Comment on lines +24 to +44
switch (std::abs(pdg)) {
case 11:
return 0; // Electron
case 13:
return 1; // Muon
case 211:
return 2; // Pion
case 321:
return 3; // Kaon
case 2212:
return 4; // Proton
case 1000010020:
return 5; // Deuteron
case 1000010030:
return 6; // Triton
case 1000020030:
return 7; // Helium3
case 1000020040:
return 8; // Alphas
default:
return 2; // Default: pion
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.

Use named PDG codes.

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.

2 participants