Skip to content

[ALICE3] TRK/FT3 digitizer: introduced discretization of the timestamp into digits with the ALMIRA ToA timestamp format - #16137

Open
atriolo wants to merge 5 commits into
AliceO2Group:devfrom
atriolo:timestamp
Open

atriolo wants to merge 5 commits into
AliceO2Group:devfrom
atriolo:timestamp

Conversation

@atriolo

@atriolo atriolo commented Nov 16, 2026

Copy link
Copy Markdown
Contributor
  • The ToA stored in TRK/FT3 digits is no longer a float in ns: it is encoded as it will be in the ALMIRA chip

    • Digit: float mToA -> uint16_t mTimestampToA
    • 12 bits are used: [frame = ROF counter (8 bits) | clock cycle in the ROF (4 bits)]
    • The ROF counter rolls over every 256 ROFs (2^8). In the simulation, the counter restarts at every TF. This may change once the designers give us more details on when the counter is reset. The absolute time is given by the ROFRecord as before.
    • A clock cycle corresponds to 1 BC (24.95 ns) for VD, and 4 BC (99.8 ns) for MLOT/FT3 disks
    • If a signal started in the previous ROF and is still above threshold at the start of the current one, its timestamp refers to the ROF where it started (frame − 1). This will be revisited when edge detection is implemented.
  • The default ROF length is now 16 BC for all layers (it was 18 BC). This value was chosen after discussing with the designers and the tracking experts.

    • It still has to be assessed whether it is feasible for the DAQ: since 16 BC does not divide the orbit (3564 BC), some ROFs span two orbits (HBFs). No ROF spans two TFs as long as the number of orbits per TF is a multiple of 4 (e.g. 32, 128).
    • If the TF length is not a multiple of the ROF length (e.g. 16 BC with a number of orbits per TF not multiple of 4), the last ROF of the TF is truncated and a warning is printed. This is a temporary solution before discussion with DAQ experts.
    • The ROF length can be changed per layer. The designers require powers of 2 in BC; to fit in the 4 bits of the clock cycle this means 16 BC for VD and 16, 32 or 64 BC for ML/OT/FT3.
    • The ROF length can be changed per layer with the syntax:--configKeyValues "TRKAlmiraParam.roFrameLengthInBCPerLayer[0]=16;..."
  • The number of ROFs per TF is now computed from the TF length and rounded up. The previous formula, (3564 / ROFLength) * nOrbitsPerTF, lost the last ROFs of each TF when the ROF length does not divide the orbit (16 BC, 32 orbits: 7104 instead of 7128 ROFs). Results are unchanged for ROF lengths that divide the orbit (e.g. the previous default of 18 BC).

    • Since the exact handling of ROFs across TF boundaries has to be defined, this definition may change again.

…of the ALMIRA timestamp: 12 bits filled as following [frame (8 bits) | clock cycle in the ROF (4 bits)]
…from the TF length and rounded up. This was introduced to cope with the new default ROF length of 16 BC (required by designers) which does not divide exactly the orbit.

This branch has not been deployed

No deployments
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.

2 participants