Visualizing the simulations

Hi,

I’m trying to write a radioactive decay simulation and as you can see my visualizer manager is not working properly. I tried to run exampleB1 either and eventough it’s giving the output properly, I couldn’t manage toget a visualize output.

I installed qt5 libraries using Synaptic Package Manager but I guess I couldn’t link them to my geant4 installation. I’m using geant4-10.7.p04 on Ubuntu 22.04 btw.

Available UI session types: [ GAG, tcsh, csh ]
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)
  G4HepRep (HepRepXML)
  G4HepRepFile (HepRepFile)
  RayTracer (RayTracer)
  VRML1FILE (VRML1FILE)
  VRML2FILE (VRML2FILE)
  gMocrenFile (gMocrenFile)

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.
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
Checking overlaps for volume physAir (G4Box) ... OK! 
hInelastic QGSP_BERT  Thresholds: 
    1) between BERT  and FTF/P over the interval 3 to 6 GeV. 
    2) between FTF/P and QGS/P over the interval 12 to 25 GeV. 
  -- quasiElastic: 1 for QGS  and 0 for FTF
### Adding tracking cuts for neutron  TimeCut(ns)= 10000  KinEnergyCut(MeV)= 0
parameter value (OGL) is not listed in the candidate List.
Candidates are: ATree DAWNFILE HepRepFile HepRepXML RayTracer VRML1FILE VRML2FILE gMocrenFile

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
      issued by : G4UImanager::ApplyCommand
Candidates are: ATree DAWNFILE HepRepFile HepRepXML RayTracer VRML1FILE VRML2FILE gMocrenFile
Error code : 1
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

***** Illegal parameter (1) </vis/open OGL> *****

***** Batch is interrupted!! *****

-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : UIMAN0123
      issued by : G4UImanager::ApplyCommand
Command aborted (1)
Error code : 1
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------

All related outputs to vismanager is here. I hope all of you have a nice day.

Hi Taka

It looks like you didn’t build with any graphics libraries. You have to specify options for CMake - see Building and Installing from Source — Geant4 Installation Guide 11.1 documentation. In your case GEANT4_USE_QT.

Hope that helps
John

Hi John,

Thanks for your reply. Unfortunately I’m sure that when I’m building the Geant4 I used GEANT4_USE_QT, GEANT4_USE_RAYTRACER_X11 options while I was configuring my build directory. Any other ideas?

No other ideas. Please simply clean up and try again.

can you copy and paste the exact cmake command you used?