Problem 2418

Summary: Bug due to changes in cylinder scoring mesh in 11.0 beta
Product: Geant4 Reporter: Dominik Werthmueller <werthmuellerd>
Component: digits_hitsAssignee: asai
Status: RESOLVED FIXED    
Severity: major    
Priority: P4    
Version: other   
Hardware: All   
OS: All   

Description Dominik Werthmueller 2021-08-25 15:12:20 CEST
Hi

There seems to be a bug related to the extension of the cylindrical mesh being introduced with Version 11.0 Beta. It has not been fixed yet on the public gitlab.

The ordering of the cylinder mesh size components in G4ScoringCylinder::fSize has been changed in 11.0 in order to store Rmin. Rmax, dZ. Those changes were not accounted for in G4ScoreQuantityMessenger, where the cylinder size is set:

317: pps->SetCylinderSize(msize[0], msize[1]);  // given in dr dz
352: pps->SetCylinderSize(msize[0], msize[1]);  // given in dr dz
405: pps->SetCylinderSize(msize[0], msize[1]);  // given in dr dz

These should be changed to

pps->SetCylinderSize(msize[1], msize[2]);

Probably also the G4PS*Cylinder3D classes need some refactoring because of Rmin?

Cheers
Dominik
Comment 1 asai 2021-09-24 18:35:58 CEST
Thanks for reporting this.
It will be fixed in the coming 11.0 release.