Hello all,
I was trying to execute the following commands in my macro file:
/Mokka/init/lcioWriteMode WRITE_NEW
/Mokka/init/lcioFilename last_run.slcio
but I keep getting an error when the macro file is executed:
***** Illegal application state </Mokka/init/lcioWriteMode WRITE_NEW> *****
Delving into the source code reveals that these commands are declared to be run in the phase G4State_PreInit.
Using the command line the lcio filename can be specified with the -l command but I couldn't find an option for changing the lcio write mode.
What is the proper method of executing pre-init commands?
Thanks in advance