Change number of sensitive detectors||Geant4 Tutorial 10: User-Defined Messengers

Hi geant4 experts,
I am practicing geant4 following in Mustafa’s tutorial in youtube and his github.
In the Tutorial 10: User-Defined Messengers, I changed the number of sensitive detectors as his codes, then I indeed saw the number changed in terminal output while the size and number of sensitive detectors didn’t change in the Session. I changed the number of sensitive detectors throung: /detector/nCols 10 /detector/nRows 10 /run/reinitializeGeometry in the session command. As the picture below shown, the terminate only ouput 100 detectors but the left side geometry have 100*100 detectors, which is the original number. How can I fix this problem?
Besides, I noticed the terminal has outputed errors:
"WARNING: Scene handler not found.
ERROR: Current scene handler not defined. Please select or create one.
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
ERROR: G4VisCommandsViewerSet::SetNewValue: no current viewer.
"

1 Like

Use “/vis/open OGL” setting up at first.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.