Skip to content

[MUON] Fix assignment of GlobalFwdTrack from base class - #15785

Merged
mcoquet642 merged 1 commit into
AliceO2Group:devfrom
aferrero2707:muon-fix-GlobalFwdTrack-assignment
Sep 11, 2026
Merged

[MUON] Fix assignment of GlobalFwdTrack from base class#15785
mcoquet642 merged 1 commit into
AliceO2Group:devfrom
aferrero2707:muon-fix-GlobalFwdTrack-assignment

Conversation

@aferrero2707

Copy link
Copy Markdown
Collaborator

The fix introduces an explicit assignment operator between the GlobalFwdTrack class and its TrackParCovFwd base class.

This prevents a SEGFAULT in this kind of assignment:

    o2::track::TrackParCovFwd trackParCovFwd;
    o2::dataformats::GlobalFwdTrack globalFwdTrack;
    globalFwdTrack = trackParCovFwd;

The fix introduces an explicit assignment operator between the
GlobalFwdTrack class and its TrackParCovFwd base class.

This prevents a SEGFAULT in this kind of assignment:

    o2::track::TrackParCovFwd trackParCovFwd;
    o2::dataformats::GlobalFwdTrack globalFwdTrack;
    globalFwdTrack = trackParCovFwd;
@mcoquet642
mcoquet642 merged commit 2aa6d61 into AliceO2Group:dev Sep 11, 2026
12 checks passed
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.

3 participants