Why do I get an error with analogueMC?

I have Geant-10.07.p02. Using /process/had/rdm/analogueMC 0 as in /rdecay02 example gives me the following error:

/process/had/rdm/analogueMC 0
***** COMMAND NOT FOUND </process/had/rdm/analogueMC 0> *****
***** Batch is interrupted!! *****
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
Command aborted (100)
Error code : 100
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

I also tried /grdm/analogueMC false> and /process/had/rdm/analogueMC false giving me similar error. Can anyone suggest what could be wrong here?

Do you have that command before or after /run/initialize in your macro file? commands associated with individual processes generally don’t exist (aren’t defined) until the process is instantiated, and that happens as part of /run/initialize.

The code can’t tell you this in the error message, because it doesn’t (can’t!) know that the undefined command “should” exist in the future :slight_smile:

@mkelsey : I have it after the /run/initialize command. What could be any other possibility?

Are you sure that radioactive decay is in your physics list? An easy way to tell is to put /process/list after /run/initialize and see if it’s there.

@mkelsey : Yes, I do see Decay,RadioactiveDecayBase, in the /process/list/