Problem 2391 - Cannot add more than 16 Scoring Meshes
Summary: Cannot add more than 16 Scoring Meshes
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/scoring (show other problems)
Version: 10.6
Hardware: Apple Linux
: P4 normal
Assignee: asai
URL: https://geant4-forum.web.cern.ch/t/ca...
Depends on:
Blocks:
 
Reported: 2021-06-23 03:31 CEST by Petr Stepanov
Modified: 2021-06-26 03:30 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Petr Stepanov 2021-06-23 03:31:08 CEST
Hi,

I am running into an issue with defining more than 16 scoring meshes. The issue is outlined in this forum post: 
https://geant4-forum.web.cern.ch/t/cannot-add-more-than-16-scoring-meshes/5465

Since I was not able to receive a definite answer on the forum, I'm posting the issue here.

I'd like to know if having a maximum of 16 scoring meshes is intended behavior or it is an actual bug?

If the behavior is intended it is reasonable to mention about it in User Documentation: https://geant4-userdoc.web.cern.ch/UsersGuides/ForApplicationDeveloper/html/Detector/commandScore.html
Comment 1 asai 2021-06-26 02:43:38 CEST
16 is not necessarily the exact limit, but we do not expect to have unlimited number of parallel worlds. If your meshes are not overlapping to each other, I suggest you to implement such meshes in one parallel world. It would be much better in computing performance.
Comment 2 Petr Stepanov 2021-06-26 03:30:19 CEST
Hi, thanks for your reply.

In order to implement the meshes we used the approach described in the following Geant4 example:

https://github.com/Geant4/geant4/blob/master/examples/extended/runAndEvent/RE03/run1.mac

Our meshes are not overlapping with each other. Can you please clarify how to define all the meshes in one parallel world? And why by default meshes are defined in parallel worlds?

Below is a piece of the code used to create the meshes:

########################################
#
/score/create/boxMesh boxMesh_1
#
/score/mesh/boxSize 30. 30. 1. cm
/score/mesh/translate/xyz 0. 0. -80. cm
/score/mesh/nBin 20 20 20
#
/score/quantity/nOfStep nOfStepGamma
/score/filter/particle gammaFilter gamma
#
/score/close
#
########################################
#
/score/create/boxMesh boxMesh_2
#
/score/mesh/boxSize 30. 30. 1. cm
/score/mesh/translate/xyz 0. 0. -75. cm
/score/mesh/nBin 20 20 20
#
/score/quantity/nOfStep nOfStepGamma
/score/filter/particle gammaFilter gamma
#
/score/close
#
########################################

...<more meshes defined the same way>