Skip to content
Snippets Groups Projects

tauRec: don't call tool finalize from within algorithm, and use smart pointers...

Merged Bertrand Martin Dit Latour requested to merge martindl/athena:R22_TauRecFinalize into 22.0
All threads resolved!

tauRec: don't call tool finalize from within algorithm, and use smart pointers in PanTau to avoid delete in finalize

Hello,

With this MR, we no longer manually call the finalize method of tau tools from within tau algorithms, we let Athena do it (discussed in !50531 (comment 5338603), possibly relevant for ATLASRECTS-7047 too?). Besides, now, we no longer do anything in tool finalize. This is achieved by replacing raw pointers with smart pointers in PanTau. We no longer use the MVAUtils BDT method that relies on a vector of float pointers, we use a vector of floats (possibly lighter for memory). We no longer use variable caching to evaluate BDTs in PanTau, making one more step towards re-entrancy. PanTau::Tool_ModeDiscriminator::getResponse can't be turned to const yet, but we're getting close...

The MR does not change the reconstruction output.

Cheers, Bertrand

Merge request reports

Pipeline #4024139 passed

Pipeline passed for d099c8bf on martindl:R22_TauRecFinalize

Approval is optional

Merged by Julien MaurerJulien Maurer 2 years ago (May 27, 2022 11:12am UTC)

Merge details

  • Changes merged into 22.0 with dcb3d58d (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Just one nitpicky comment. Otherwise approving. L1

  • added 1 commit

    • d099c8bf - replace c-cast with static_cast

    Compare with previous version

  • resolved all threads

  • This merge request affects 3 packages:

    • Reconstruction/PanTau/PanTauAlgs
    • Reconstruction/tauRec
    • Reconstruction/tauRecTools

    Affected files list will not be printed in this case

    Adding @goetz ,@martindl ,@adbailey ,@xiaozhon as watchers

  • :white_check_mark: CI Result SUCCESS (hash d099c8bf)

    Athena DetCommon
    externals :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark:
    required tests :white_check_mark: :white_check_mark:
    optional tests :white_check_mark: :white_check_mark:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: DetCommon: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-CC7 53156]

  • Thanks a lot for changing! Approving now. L1

  • Julien Maurer mentioned in commit dcb3d58d

    mentioned in commit dcb3d58d

  • merged

  • Please register or sign in to reply
    Loading