Skip to content

perf(PFRICH): share single HRPPD logical volume across all 68 placements#1116

Open
wdconinc wants to merge 2 commits into
mainfrom
fix/pfrich-shared-hrppd-volume
Open

perf(PFRICH): share single HRPPD logical volume across all 68 placements#1116
wdconinc wants to merge 2 commits into
mainfrom
fix/pfrich-shared-hrppd-volume

Conversation

@wdconinc

Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

Share a single HRPPD logical volume (and its 7 sub-component volumes) across all 68 HRPPD placements
in the pfRICH detector, rather than creating 68×8 = ~544 identical TGeoVolume objects. Each placement
retains its unique physVolID(\"hrppd\", imod) so readout segmentation is unaffected.

What is the urgency of this PR?

  • Low

What kind of change does this PR introduce?

  • Optimization (issue #__)

Please check if any of the following apply

  • AI was used in preparing this PR. Please describe usage below.

GitHub Copilot was used to identify the pattern and draft the refactoring.

Copilot AI review requested due to automatic review settings May 29, 2026 21:17
wdconinc and others added 2 commits May 29, 2026 16:17
Create one template HRPPD volume with all sub-components (window,
photocathode, absorber, ceramic, plating, MCP, PCB) before the
placement loop. Place it 68 times with per-module addPhysVolID.

This reduces ~544 unique TGeoVolume objects to ~9, shrinking the
logical-volume tree and reducing memory/navigation overhead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the topic: PID Particle identification label May 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR optimizes pfRICH geometry construction by building one shared HRPPD logical volume and reusing it for all module placements while preserving per-module readout identity through placement physVolIDs.

Changes:

  • Hoists HRPPD sub-volume construction out of the placement loop.
  • Places the shared HRPPD volume 68 times with unique "hrppd" physical volume IDs.
  • Computes sensor IDs directly from the module index and attaches DetElements to the concrete HRPPD placements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: PID Particle identification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants