Generic ComponentsΒΆ

You can create a Geometry Component for any of the standard solids defined in the geometry section of the Geant4 Application Developers Guide.

The ShapeTestWithAllParameters.txt example demonstrates how to build each of the solids.

../../_images/generic.png

Below we list the parameters for each Geant4 solid. Further details about the parameters, along with helpful diagrams, can be found in the Geant4 Application Developers Guide. For most solids, sizes are specified in Half Lengths, denoted with an HL, such as HLX. For a few solids, sizes are specified in full Lengths, denoted with just L, such as LX.

Note

The TsBox, TsCylinder and TsSphere should be used instead of G4Box, G4Tubs and G4Sphere respectively. See Dividable Components.

Some examples of components that can be built just from Generic Components:

  • Scatterer
  • Collimator
  • Mirror
  • Water Tank
  • Rando Phantom (as constructive solid geometry rather than DICOM import)
  • Pin Diode Chamber
  • Flat Panel Imaging Device
  • Standard Ion Chamber
  • Segmented Ion Chamber
  • Faraday Cup

We have built some complex things just from combinations of the Generic Components (such as the STAR radiosurgery beamline at MGH).

Type Parameters Type Default value
G4CutTubs
RMin
RMax
HL
SPhi
DPhi
LowNorm
HighNorm
d
d
d
d
d
uv (3)
uv (3)
0 cm


0 deg
360 deg


G4Cons
RMin1
RMax1
RMin2
RMax2
HL
SPhi
DPhi
d
d
d
d
d
d
d
0 cm

0 cm


0 deg
360 deg
G4Para
HLX
HLY
HLZ
Alpha
Theta
Phi
d
d
d
d
d
d
 
G4Trd
HLX1
HLX2
HLY1
HLY2
HLZ
d
d
d
d
d
 
G4RTrap
LZ
LY
LX
LTX
d
d
d
d
 
G4GTrap
HLZ
Theta
Phi
HLY1
HLX1
HLX2
Alp1
HLY2
HLX3
HLX4
Alp2
d
d
d
d
d
d
d
d
d
d
d
 
G4Orb
R
d
 
G4Torus
RMin
RMax
RTor
SPhi
DPhi
d
d
d
d
d
0 cm


0 deg
360 deg
G4HPolycone
PhiStart
PhiTotal
Z
RInner
ROuter
d
d
dv (N)
dv (N)
dv (N)
 
G4SPolycone
PhiStart
PhiTotal
R
Z
d
d
dv (N)
dv (N)
0 deg
360 deg


G4HPolyhedra
PhiSTart
PhiTotal
NSides
Z
RInner
ROuter
d
d
i
dv (N)
dv (N)
dv (N)
0 deg
360 deg




G4SPolyhedra
PhiSTart
PhiTotal
NSides
R
Z
d
d
i
dv (N)
dv (N)
0 deg
360 deg



G4EllipticalTube
HLX
HLY
HLZ
d
d
d
 
G4Ellipsoid
HLX
HLY
HLZ
ZBottom
ZTop
d
d
d
d
d



-HLZ cm
+HLZ cm
G4EllipticalCone
HLX
HLY
ZMax
ZTop
d
d
d
d



ZMax cm
G4Paraboloid
HLZ
R1
R2
d
d
d
 
G4Hype
IR
OR
IS
OS
HLZ
d
d
d
d
d
0 cm

0 deg


G4Tet
Anchor
P2
P3
P4
dv (3)
dv (3)
dv (3)
dv (3)
 
G4Extruded
Polygons
HLZ
Off1
Scale1
Off2
Scale2
dv (2N)
d
dv (2)
uv (2)
dv (2)
uv (2)
 
G4TwistedBox
Twist
HLX
HLY
HLZ
d
d
d
d
 
G4RTwistedTrap
Twist
HLX1
HLX2
HLY
HLZ
d
d
d
d
d
 
G4GTwistedTrap
Twist
HLZ
Theta
Phi
HLY1
HLX1
HLX2
HLY2
HLX3
HLX4
Alpha
d
d
d
d
d
d
d
d
d
d
d
 
G4TwistedTrd
HLX1
HLX2
HLY1
HLY2
HLZ
Twist
d
d
d
d
d
d
 
G4GenericTrap
HLZ
Vertices
d
dv (2N)
 
G4TwistedTubs
Twist
EndInnerRad
EndOuterRad
HLZ
Phi
d
d
d
d
d