Skip to content

Refactor/shared lookuptable - #15667

Open
spulawsk wants to merge 3 commits into
AliceO2Group:devfrom
spulawsk:refactor/shared-lookuptable
Open

Refactor/shared lookuptable#15667
spulawsk wants to merge 3 commits into
AliceO2Group:devfrom
spulawsk:refactor/shared-lookuptable

Conversation

@spulawsk

@spulawsk spulawsk commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR extracts the FT0 PM lookup table construction from the Digitizer into a dedicated PMLookupTable class.

The new class encapsulates:

the mapping between FT0 channel IDs and PM hashes,
the PM A/C side information,
one-time initialization of the lookup from SingleLUT.

The Digitizer has been refactored to use this shared lookup instead of maintaining its own internal static lookup table.

Motivation

The PM lookup logic was previously implemented directly inside Digitizer::storeBC(), making it difficult to reuse from other FT0 components.

Moving this functionality into a dedicated class:

centralizes the lookup construction,
avoids duplicated code,
provides a common interface that can be reused by future reconstruction, trigger and QA code,
improves maintainability by separating lookup initialization from the digitization algorithm.
Functional impact

This PR is intended to be a pure refactoring.

No changes to the digitization or trigger logic are intended. The PM lookup construction has simply been moved into a reusable component while preserving the existing mapping.

Szymon Pulawski added 3 commits August 6, 2026 22:36
Extract the PM lookup table construction from the FT0 Digitizer into
a reusable PMLookupTable class.

The lookup is initialized only once and reused by the Digitizer,
avoiding repeated LUT parsing and making the mapping available for
other FT0 components.

No functional changes are intended.
@spulawsk
spulawsk marked this pull request as ready for review August 7, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant