CreateImportanceStore in macro

Hi @everyone,
maybe this is a trivial question, but I don’t see the answer: is it possible to run the CreateImportanceStore in a macro, say, after issuing other commands that would change detector geometries?
My code is in analogy to example B02: Geant4 examples: extended/biasing/B02/ File Reference

As I understand, parallel biasing worlds need to obtain a clone of the “original” world, but that requires me to run “runManager->Initialize()” before parallelDetector->CreateImportanceStore()" (otherwise the program crashes). But after Initialize, simple changes via messenger in geometry are not possible anymore?
Thanks in advance :slight_smile:

1 Like