Hi @bmorgan sorry for late reply but I’ve just read your message!
I used first option and it works!
I’ve one more question please.
Usually, in my simulations, I run the simulation without the macro and I can automatically see the interactive simulation by QT.
Using this simulation, running the simulation without the macro i.e.
C:\SimLuna\21nep\Build\Release>SimLuna.exe
I get
*************************************************************
Geant4 version Name: geant4-11-00-patch-03 [MT] (16-September-2022)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
: NIM A 835 (2016), 186-225
WWW : http://geant4.org/
**************************************************************
Visualization Manager instantiating with verbosity "warnings (3)"...
Visualization Manager initialising...
Registering graphics systems...
You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RayTracer)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
OpenGLImmediateQt (OGLIQt, OGLI)
OpenGLStoredQt (OGLSQt, OGL, OGLS)
Qt3D (Qt3D)
Registering model factories...
You have successfully registered the following model factories.
Registered model factories:
generic
drawByAttribute
drawByCharge
drawByOriginVolume
drawByParticleID
drawByEncounteredVolume
Registered models:
None
Registered filter factories:
attributeFilter
chargeFilter
originVolumeFilter
particleFilter
encounteredVolumeFilter
Registered filters:
None
You have successfully registered the following user vis actions.
Run Duration User Vis Actions: none
End of Event User Vis Actions: none
End of Run User Vis Actions: none
Some /vis commands (optionally) take a string to specify colour.
"/vis/list" to see available colours.
PreInit>
i.e. QT doesn’t start automatically.
I searched on the forum and I found this topic Analysis of Particles Resulting From Initial Interactions - #6 by jabowen in which @mkelsey says to run the macro by the PrePrint then I tried
PreInit> /control/execute vis.mac
but I get
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
"OGLSQt" is not compatible with your chosen session, and no fallback system found.
Error code : 1
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
issued by : G4UImanager::ApplyCommand
Invoked command has failed - see above. Available graphics systems are (short names):
ATree DAWNFILE HepRepFile OGL OGLI OGLIQt OGLS OGLSQt Qt3D RayTracer VRML2FILE gMocrenFile
Error code : 1
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
***** Illegal parameter (1) </vis/open OGL 600x600-0+0> *****