Skip to content

0x(1)1 issue in pfRICH/dRICH; tracking_and_drich_and_pfrich.yml#1109

Open
veprbl wants to merge 2 commits into
mainfrom
irt-2.1f
Open

0x(1)1 issue in pfRICH/dRICH; tracking_and_drich_and_pfrich.yml#1109
veprbl wants to merge 2 commits into
mainfrom
irt-2.1f

Conversation

@veprbl
Copy link
Copy Markdown
Member

@veprbl veprbl commented May 25, 2026

Submitting on behalf of @alexander-kiselev.

Copilot AI review requested due to automatic review settings May 25, 2026 17:46
@github-actions github-actions Bot added the topic: PID Particle identification label May 25, 2026
@veprbl
Copy link
Copy Markdown
Member Author

veprbl commented May 25, 2026

I understand this workaround and approve the change. Please approve the PR, @alexander-kiselev.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adjusts pfRICH’s IRT2 geometry “dummy” G4LogicalVolume* identifiers to avoid the reported 0x(1)1-style collision/issue when pfRICH and dRICH are used together, and adds a ready-made configuration enabling tracking + dRICH + pfRICH in one YAML.

Changes:

  • Update pfRICH IRT2 helper calls to use a distinct range of placeholder G4LogicalVolume* values (0x100x13) instead of the previous low values (0x00x3).
  • Attach the pfRICH photon detector to the same placeholder volume ID used for the pfRICH gas container volume.
  • Add configurations/tracking_and_drich_and_pfrich.yml to enable tracking + dRICH + pfRICH features together.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/PFRICH_geo.cpp Changes IRT2 “placeholder logical volume” identifiers used for pfRICH radiators/container and photon detector registration.
configurations/tracking_and_drich_and_pfrich.yml New configuration combining tracking with both dRICH and pfRICH PID features.

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

Comment thread src/PFRICH_geo.cpp
Comment on lines 176 to 179

auto radiator =
geometry->SetContainerVolume(cdet, "GasVolume", 0, (G4LogicalVolume*)(0x0), 0, boundary);
geometry->SetContainerVolume(cdet, "GasVolume", 0, (G4LogicalVolume*)(0x10), 0, boundary);
radiator->SetAlternativeMaterialName(vesselGasName.c_str());
Comment thread src/PFRICH_geo.cpp
@@ -445,7 +445,7 @@ static Ref_t createDetector(Detector& description, xml_h e, SensitiveDetector se
auto pd = new IRT2::CherenkovPhotonDetector(0, 0);

// FIXME: '0' stands for the unknown (and irrelevant) G4LogicalVolume;
@github-actions
Copy link
Copy Markdown
Contributor

@wdconinc
Copy link
Copy Markdown
Contributor

This PR needs a better description.

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.

4 participants