Skip to content
Snippets Groups Projects

cleanup unnecessary function in c++

Merged Menglin Xu requested to merge mexu_c++_cleanup into master

This MR is only for cleaning up some unnecessary parts in the C++ code without changing any geometry.

Cleanup:

  • remove buildVolumes from build_groups or build_detector

    The VolumeBuilder::load function already calls VolumeBuilder::buildVolumes, so the explicit later call is redundant.

  • remove placeDaughters

    Besides Infranstruce, for sub-detectors, all position, rotation, and other parameters of the daughter volumes are dynamically calculated (rather than statically defined in XML). In this case, we must manually call placeVolume() to place the daughter volumes, as XML cannot predefine the computed values. Then placeDaughters() is redundant.


Validated by

  • Core Software
  • RTA
  • Simulation
Edited by Gloria Corti

Merge request reports

Merge request pipeline #11007132 passed

Merge request pipeline passed for e6e8d388

Approval is optional

Merged by Menglin XuMenglin Xu 1 month ago (Mar 12, 2025 8:29am UTC)

Pipeline #11007260 passed

Pipeline passed for 0b9605eb on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Thomas Latham
  • Menglin Xu resolved all threads

    resolved all threads

  • Menglin Xu added 10 commits

    added 10 commits

    Compare with previous version

  • Menglin Xu requested review from @jonrob

    requested review from @jonrob

  • Menglin Xu requested review from @gcorti

    requested review from @gcorti

  • Menglin Xu changed the description

    changed the description

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