I have used the B1 example as a basis to create a simulation for electron induced xray emissions. The code can be found here:
Unfortunately the visualisation does not work. I recieve the following error:
“Candidates are: ATree DAWNFILE HepRepFile HepRepXML RayTracer VRML1FILE
the line in the macro is “/vis/open OGL 600x600-0+0”
I compiled Geant4 myself, OpenGL and X11 is activated and the libraries are installed.
running “geant4-config -h” outputs “opengl-x11[yes]”