View on GitHub

Geant4 Zero to Hero

The Definitive Guide for End Users

Tube with Hyperbolic Profile

YouTube CSG

A tube with hyperboic profile can be constructed using C++ or some simple text:

:volu hype HYPE
 10 // inner r in mm
 12 // outer r in mm
 25 // inner stereo angle in degree
 35 // outer stereo angle in degree
 9  // half z in mm
 G4_Cu // material

The full source code is in detector.tg, which can be visualized using the macro file mingle.mac or gears.mac, assuming an universal Geant4 application, such as MinGLE or GEARS, is available:

git clone https://github.com/jintonic/geant4
cd geant4/detector/CSG/hype
# generate animated picture, hype.gif
G4VIS_DEFAULT_DRIVER=TSG_FILE gears gears.mac

Figure of Tube with Hyperbolic Profile