When, I’m trying to run gears to get output on my Mac its showing issue like ### G4PhysListFactory WARNING: environment variable PHYSLIST is not defined
Default Physics Lists FTFP_BERT is instantiated
G4PhysListFactory::GetReferencePhysList <FTFP_BERT> EMoption= 0
<<< Geant4 Physics List simulation engine: FTFP_BERT
moreover when I’m trying to run exampleB1, it shows, Available UI session types: [ Qt, tcsh, csh ]
Geant4 version Name: geant4-11-02-patch-02 [MT] (21-June-2024)
<< in Multi-threaded mode >>
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/
<<< Reference Physics List QBBC
zsh: segmentation fault ./exampleB1
Geant4 Version: 11.2.2 Operating System: MacOS sequoia 15.0.1 Compiler/Version: Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin24.0.0
Thread model: posix CMake Version: cmake version 3.30.5
@Kavya_Wadhwa, the message “… PHYSLIST is not defined” is not an error message. It is just for your information. @bmorgan, It seems to me that Kavya could run gears, but couldn’t run exampleB1.
Thanks @Jing_Liu, indeed I’d missed the second run of exampleB1. @Kavya_Wadhwa, with what CMake options did you build Geant4, and has exampleB1 been modified in any way?
Could you post the complete output from the terminal please, as this should list the available drivers. How did you install Geant4, and with what CMake options?
Available UI session types: [ tcsh, csh ]
...
You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RayTracer)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN)
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE, TSG)
...
These lines indicates that the install of Geant4 wasn’t built with any GUI drivers. On macOS, Qt or VTK are the best options here. If you are using the homebrew package manager, these can be installed through it, and you can configure/install Geant4 to use these following the instructions in the Install Guide.
You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RayTracer)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN)
TOOLSSG_OFFSCREEN (TSG_OFFSCREEN, TSG_FILE, TSG)
Default graphics system is: TSG_OFFSCREEN (based on build flags).
Default window size hint is: 600x600-0+0 (based on G4VisManager initialisation).
Note: Parameters specified on the command line will override these defaults.
Use "vis/open" without parameters to get these defaults.
tells you that you have not built any graphics - only a few file-writering or off-screen drivers. At the end it says
# For file-based drivers, use this to create an empty detector view:
#/vis/viewer/flush
Idle>
so try /vis/viewer/flus, and you should see a file, maybe a png file, in your working directory.
To get graphics, you have to build Geant4 with graphics options, such as GEANT4_USE_QT=ON. See Installation Guide.