pyg4ometry.geant4.solid.Trap¶
Classes¶
Constructs a general trapezoid. |
Module Contents¶
- class pyg4ometry.geant4.solid.Trap.Trap(name, pDz, pTheta, pDPhi, pDy1, pDx1, pDx2, pAlp1, pDy2, pDx3, pDx4, pAlp2, registry, lunit='mm', aunit='rad', addRegistry=True)¶
Bases:
pyg4ometry.geant4.solid.SolidBase.SolidBaseConstructs a general trapezoid.
- Parameters:
name (str) – name of the volume
pDz (float, Constant, Quantity, Variable, Expression) – half length along z
pTheta (float, Constant, Quantity, Variable, Expression) – polar angle of the line joining the centres of the faces at -/+pDz
pPhi (float, Constant, Quantity, Variable, Expression) – azimuthal angle of the line joining the centres of the faces at -/+pDz
pDy1 (float, Constant, Quantity, Variable, Expression) – half-length at -pDz
pDx1 (float, Constant, Quantity, Variable, Expression) – half length along x of the side at y=-pDy1
pDx2 (float, Constant, Quantity, Variable, Expression) – half length along x of the side at y=+pDy1
pAlp1 (float, Constant, Quantity, Variable, Expression) – angle wrt the y axis from the centre of the side (lower endcap)
pDy2 (float, Constant, Quantity, Variable, Expression) – half-length at +pDz
pDx3 (float, Constant, Quantity, Variable, Expression) – half-length of the side at y=-pDy2 of the face at +pDz
pDx4 (float, Constant, Quantity, Variable, Expression) – half-length of the side at y=+pDy2 of the face at +pDz
pAlp2 (float, Constant, Quantity, Variable, Expression) – angle wrt the y axis from the centre of the side (upper endcap)
- pDz¶
- pTheta¶
- pDPhi¶
- pDy1¶
- pDx1¶
- pDx2¶
- pAlp1¶
- pDy2¶
- pDx3¶
- pDx4¶
- pAlp2¶
- lunit¶
- aunit¶
- dependents = []¶
- varNames = ['pDz', 'pTheta', 'pDPhi', 'pDy1', 'pDx1', 'pDx2', 'pAlp1', 'pDy2', 'pDx3', 'pDx4', 'pAlp2']¶
- varUnits = ['lunit', 'aunit', 'aunit', 'lunit', 'lunit', 'lunit', 'aunit', 'lunit', 'lunit', 'lunit', 'aunit']¶
- __repr__()¶
- __str__()¶
- mesh()¶