Skip to content
Snippets Groups Projects

Rich: Ring track match index fix for timebased data

Merged Martin Beyer requested to merge ma.beyer/cbmroot:ring_track_match_fix into master

Quick summary:

  • Fix of out-of-bounds access/writing of std::vector, because of usage of TClonesArray container index instead of running/event index
  • TClonesArray container index of RichRing now assigned to GlobalTrack, instead of running/event index
  • TClonesArray container index of StsTrack now assigned to GlobalTrack, instead of running/event index

Index of the ring in the ring array was used instead of the running index -> resulted in out-of-bounds access/writing of std::vector.
(Can only be noticed for Time-Based simulations)

In case of no immediate crash, this might have even overwritten other memory locations of the programm, resulting in corrupt data.
(Maybe resulting in crashes for MatchRecoToMc?)

Maybe related to #3347, #2731

Of interest for @f.kornas

Edited by Pierre-Alain Loizeau

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Volker Friese
  • Martin Beyer added 13 commits

    added 13 commits

    • adbfb8a7...fa388282 - 10 commits from branch computing:master
    • 99ff981f - ring track match: fix wrong index for tb simulations
    • 10da7305 - also fix ring index assigned to global track
    • 99f5c5db - add author and update data

    Compare with previous version

  • Martin Beyer changed the description

    changed the description

    • Author Developer
      Resolved by Martin Beyer

      Something is still not right. When looking at QA I observe only <10% of GlobalTrack have a ring assigned for time-based, for event-based it is >90%. Currently looking into it, please dont merge yet.

  • Florian Uhlig marked this merge request as draft

    marked this merge request as draft

  • Martin Beyer
  • Martin Beyer added 11 commits

    added 11 commits

    • 99f5c5db...49233621 - 7 commits from branch computing:master
    • 5a89bc37 - ring track match: fix wrong index for tb simulations
    • ddead69d - also fix ring index assigned to global track
    • 9547d065 - add author and update data
    • 03690ed8 - also assign container index of sts track to global track

    Compare with previous version

  • Martin Beyer marked this merge request as ready

    marked this merge request as ready

  • Florian Uhlig resolved all threads

    resolved all threads

  • Florian Uhlig approved this merge request

    approved this merge request

  • Florian Uhlig enabled an automatic merge when the pipeline for 03690ed8 succeeds

    enabled an automatic merge when the pipeline for 03690ed8 succeeds

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading