Skip to content
Snippets Groups Projects

LArStraightAbsorbers+Electrodes: remove lazy initialization of members

Merged Frank Winklmeier requested to merge fwinkl/athena:fwinkl_20220826T161421 into master

Similar to (!56268 (merged)) this makes several improvements to LArStraightAbsorbers and LArStraightElectodes:

  • Separate setters and getters for the internal values to avoid "filled" flag and inline the getters.
  • Explicitly pass PhysicalVolumeAccessor to SlantAbs/SlantEle and make it private.
  • Use static const initialization to avoid use of std::once.
  • Merge calculation of x and y values to avoid code duplication (should also be faster).
  • Use sincos.

Relates to ATLASRECTS-7235.

Edited by Frank Winklmeier

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
Please register or sign in to reply
Loading