Skip to content

Fix lost TPC hits and simplify the hit grouping - #16251

Open
sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
sawenzel:tpc-hit-grouping-fix
Open

sawenzel wants to merge 1 commit into
AliceO2Group:devfrom
sawenzel:tpc-hit-grouping-fix

Conversation

@sawenzel

@sawenzel sawenzel commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

This is fixing a bug where the TPC simulation lost a hit whenever a track
had only one hit in a sector. Such a hit was buffered until the next one,
then overwritten, and left an empty hit group behind. The last hit of an
event could be lost in the same way. In 100 pp events this concerned 0.1%
of the TPC hits but 2.6% of the TPC charge, since the lost hits carry on
average 30 times the charge of a typical hit.

The grouping now starts a new group whenever the track or the sector
changes and stores every hit directly. The buffer and most of the grouping
state are no longer needed, which makes the code considerably simpler.
Note that hits inside a group are now in step order, so digits are only
statistically identical to before.

This is fixing a bug where the TPC simulation lost a hit whenever a track
had only one hit in a sector. Such a hit was buffered until the next one,
then overwritten, and left an empty hit group behind. The last hit of an
event could be lost in the same way. In 100 pp events this concerned 0.1%
of the TPC hits but 2.6% of the TPC charge, since the lost hits carry on
average 30 times the charge of a typical hit.

The grouping now starts a new group whenever the track or the sector
changes and stores every hit directly. The buffer and most of the grouping
state are no longer needed, which makes the code considerably simpler.
Note that hits inside a group are now in step order, so digits are only
statistically identical to before.

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.

1 participant