|
Written by Willy Gerber
|
|
Sunday, 22 February 2009 11:43 |
Constructed Solid Geometry (CSG) Solids (Fromat and Images from following CERN page) | Format | Image | | Box | | G4Box( | | | | | const G4String& | pName, | | | G4double | pX, | | | G4double | pY, | | | G4double | pZ) |
| pName | Box names | | pX | half length in X | | pY | half length in Y | | pZ | half length in Z |
|  | | Cylindrical Section or Tube | | G4Tubs( | | | | | const G4String& | pName, | | | G4double | pRMin, | | | G4double | pRMax, | | | G4double | pDz, | | | G4double | pSPhi, | | | G4double | pDPhi) |
| pRMin | Inner radius | | pDz | half length in z | | pDPhi | the angle of the segment in radians | | pRMax | Outer radius | | pSPhi | the starting phi angle in radians |
|  | | Cone or Conical section | | G4Cons( | | | | | const G4String& | pName, | | | G4double | pRmin1, | | | G4double | pRmax1, | | | G4double | pRmin2, | | | G4double | pRmax2, | | | G4double | pDz, | | | G4double | pSPhi, | | | G4double | pDPhi) |
| pRmin1 | inside radius at -pDz | | pRmin2 | inside radius at +pDz | | pDz | half length in z | | pDPhi | the angle of the segment in radians | | pRmax1 | outside radius at -pDz | | pRmax2 | outside radius at +pDz | | pSPhi | starting angle of the segment in radians |
|  | | Parallelepiped | | G4Para( | | | | | const G4String& | pName, | | | G4double | dx, | | | G4double | dy, | | | G4double | dz, | | | G4double | alpha, | | | G4double | theta, | | | G4double | phi) |
| dx,dy,dz | Half-length in x,y,z | | alpha | Angle formed by the y axis and by the plane joining the centre of the faces parallel to the z-x plane at -dy and +dy | | theta | Polar angle of the line joining the centres of the faces at -dz and +dz in z | | phi | Azimuthal angle of the line joining the centres of the faces at -dz and +dz in z |
|  | | Trapezoid | | G4Trd( | | | | | const G4String& | pName, | | | G4double | dx1, | | | G4double | dx2, | | | G4double | dy1, | | | G4double | dy2, | | | G4double | dz) |
| dx1 | Half-length along x at the surface positioned at -dz | | dx2 | Half-length along x at the surface positioned at +dz | | dy1 | Half-length along y at the surface positioned at -dz | | dy2 | Half-length along y at the surface positioned at +dz | | dz | Half-length along z axis |
|  | | Generic trapezoid | | G4Trap( | | | | | const G4String& | pName, | | | G4double | pZ, | | | G4double | pY, | | | G4double | pX, | | | G4double | pLTX) |
| pZ | Length along z | | pY | Length along y | | pX | Length along x at the wider side | | pLTX | Length along x at the narrower side (plTX<=pX) |
| G4Trap( | | | | | const G4String& | pName, | | | G4double | pDz, | | | G4double | pTheta, | | | G4double | pPhi, | | | G4double | pDy1, | | | G4double | pDx1, | | | G4double | pDx2, | | | G4double | pAlp1, | | | G4double | pDy2, | | | G4double | pDx3, | | | G4double | pDx4, | | | G4double | pAlp2) |
| pDx1 | Half x length of the side at y=-pDy1 of the face at -pDz | | pDx2 | Half x length of the side at y=+pDy1 of the face at -pDz | | pDz | Half z length | | pTheta | Polar angle of the line joining the centres of the faces at -/+pDz | | pPhi | Azimuthal angle of the line joining the centre of the face at -pDz to the centre of the face at +pDz | | pDy1 | Half y length at -pDz | | pDy2 | Half y length at +pDz | | pDx3 | Half x length of the side at y=-pDy2 of the face at +pDz | | pDx4 | Half x length of the side at y=+pDy2 of the face at +pDz | | pAlp1 | Angle with respect to the y axis from the centre of the side (lower endcap) | | pAlp2 | Angle with respect to the y axis from the centre of the side (upper endcap) |
|  | | Sphere or Spherical Shell Section | | G4Sphere( | | | | | const G4String& | pName, | | | G4double | pRmin, | | | G4double | pRmax, | | | G4double | pSPhi, | | | G4double | pDPhi, | | | G4double | pSTheta, | | | G4double | pDTheta ) |
| pRmin | Inner radius | | pRmax | Outer radius | | pSPhi | Starting Phi angle of the segment in radians | | pDPhi | Delta Phi angle of the segment in radians | | pSTheta | Starting Theta angle of the segment in radians | | pDTheta | Delta Theta angle of the segment in radians |
|  | | Full Solid Sphere | | G4Orb( | | | | | const G4String& | pName, | | | G4double | pRmax) |
|  | | Torus | | G4Torus( | | | | | const G4String& | pName, | | | G4double | pRmin, | | | G4double | pRmax, | | | G4double | pRtor, | | | G4double | pSPhi, | | | G4double | pDPhi) |
| pRmin | Inside radius | | pRmax | Outside radius | | pRtor | Swept radius of torus | | pSPhi | Starting Phi angle in radians (fSPhi+fDPhi<=2PI, fSPhi>-2PI) | | pDPhi | Delta angle of the segment in radians |
|  | | Polycons | | G4Polycone( | | | | | const G4String& | pName, | | | G4double | phiStart, | | | G4double | phiTotal, | | | G4int | numZPlanes, | | | const G4double | zPlane[], | | | const G4double | rInner[], | | | const G4double | rOuter[]) |
| G4Polycone( | | | | | const G4String& | pName, | | | G4double | phiStart, | | | G4double | phiTotal, | | | G4int | numRZ, | | | const G4double | r[], | | | const G4double | z[]) |
| phiStart | Initial Phi starting angle | | phiTotal | Total Phi angle | | numZPlanes | Number of z planes | | numRZ | Number of corners in r,z space | | zPlane | Position of z planes | | rInner | Tangent distance to inner surface | | rOuter | Tangent distance to outer surface | | r | r coordinate of corners | | z | z coordinate of corners |
|  | | Polyhedra | | G4Polyhedra( | | | | | const G4String& | pName, | | | G4double | phiStart, | | | G4double | phiTotal, | | | G4int | numSide, | | | G4int | numZPlanes, | | | const G4double | zPlane[], | | | const G4double | rInner[], | | | const G4double | rOuter[] ) |
| G4Polyhedra( | | | | | const G4String& | pName, | | | G4double | phiStart, | | | G4double | phiTotal, | | | G4int | numSide, | | | G4int | numRZ, | | | const G4double | r[], | | | const G4double | z[] ) |
| phiStart | Initial Phi starting angle | | phiTotal | Total Phi angle | | numSide | Number of sides | | numZPlanes | Number of z planes | | numRZ | Number of corners in r,z space | | zPlane | Position of z planes | | rInner | Tangent distance to inner surface | | rOuter | Tangent distance to outer surface | | r | r coordinate of corners | | z | z coordinate of corners |
|  | | Tube with an elliptical cross section | | G4EllipticalTube( | | | | | const G4String& | pName, | | | G4double | Dx, | | | G4double | Dy, | | | G4double | Dz) |
| Dx | Half length X | | Dy | Half length Y | | Dz | Half length Z |
|  | | General Ellipsoid | | G4Ellipsoid( | | | | | const G4String& | pName, | | | G4double | pxSemiAxis, | | | G4double | pySemiAxis, | | | G4double | pzSemiAxis, | | | G4double | pzBottomCut=0, | | | G4double | pzTopCut=0) |
| pxSemiAxis | Semiaxis in X | | pySemiAxis | Semiaxis in Y | | pzSemiAxis | Semiaxis in Z | | pzBottomCut | lower cut plane level, z | | pzTopCut | upper cut plane level, z |
|  | | Cone with Elliptical Cross Section | | G4EllipticalCone( | | | | | const G4String& | pName, | | | G4double | pxSemiAxis, | | | G4double | pySemiAxis, | | | G4double | zMax, | | | G4double | pzTopCut) |
| pxSemiAxis | Semiaxis in X | | pySemiAxis | Semiaxis in Y | | zMax | Height of elliptical cone | | pzTopCut | upper cut plane level |
|  | | Paraboloid, a solid with parabolic profile | | G4Paraboloid( | | | | | const G4String& | pName, | | | G4double | Dz, | | | G4double | R1, | | | G4double | R2) |
| Dz | Half length Z | | R1 | Radius at -Dz | | R2 | Radius at +Dz greater than R1 |
|  | | Tube with a hyperbolic profile | | G4Hype( | | | | | const G4String& | pName, | | | G4double | innerRadius, | | | G4double | outerRadius, | | | G4double | innerStereo, | | | G4double | outerStereo, | | | G4double | halfLenZ) |
| innerRadius | Inner radius | | outerRadius | Outer radius | | innerStereo | Inner stereo angle in radians | | outerStereo | Outer stereo angle in radians | | halfLenZ | Half length in Z |
|  | | Tetrahedra | | G4Tet( | | | | | const G4String& | pName, | | | G4ThreeVector | anchor, | | | G4ThreeVector | p2, | | | G4ThreeVector | p3, | | | G4ThreeVector | p4, | | | G4bool | *degeneracyFlag=0) |
| anchor | Anchor point | | p2 | Point 2 | | p3 | Point 3 | | p4 | Point 4 | | degeneracyFlag | Flag indicating degeneracy of points |
|  | | Extruded Polygon | | G4ExtrudedSolid( | | | | | const G4String& | pName, | | | std::vector | polygon, | | | std::vector | zsections) |
| G4ExtrudedSolid( | | | | | const G4String& | pName, | | | std::vector | polygon, | | | G4double | hz, | | | G4TwoVector | off1, | | | G4double | scale1, | | | G4TwoVector | off2, | | | G4double | scale2) |
| polygon | the vertices of the outlined polygon defined in clock-wise order | | zsections | the z-sections defined by z position in increasing order | | hz | Half length in Z | | off1, off2 | Offset of the side in -hz and +hz respectively | | scale1, scale2 | Scale of the side in -hz and +hz respectively |
|  | | Box Twisted | | G4TwistedBox( | | | | | const G4String& | pName, | | | G4double | twistedangle, | | | G4double | pDx, | | | G4double | pDy, | | | G4double | pDz) |
| twistedangle | Twist angle | | pDx | Half x length | | pDy | Half y length | | pDz | Half z length |
|  | | Trapezoid Twisted along One Axis | | G4TwistedTrap( | | | | | const G4String& | pName, | | | G4double | twistedangle, | | | G4double | pDxx1, | | | G4double | pDxx2, | | | G4double | pDy, | | | G4double | pDz) |
| G4TwistedTrap( | | | | | const G4String& | pName, | | | G4double | twistedangle, | | | G4double | pDz, | | | G4double | pTheta, | | | G4double | pPhi, | | | G4double | pDy1, | | | G4double | pDx1, | | | G4double | pDx2, | | | G4double | pDy2, | | | G4double | pDx3, | | | G4double | pDx4, | | | G4double | pAlph) |
| twistedangle | Twisted angle | | pDx1 | Half x length at y=-pDy | | pDx2 | Half x length at y=+pDy | | pDy | Half y length | | pDz | Half z length | | pTheta | Polar angle of the line joining the centres of the faces at -/+pDz | | pDy1 | Half y length at -pDz | | pDx1 | Half x length at -pDz, y=-pDy1 | | pDx2 | Half x length at -pDz, y=+pDy1 | | pDy2 | Half y length at +pDz | | pDx3 | Half x length at +pDz, y=-pDy2 | | pDx4 | Half x length at +pDz, y=+pDy2 | | pAlph | Angle with respect to the y axis from the centre of the side |
|  | | Twisted Trapezoid with x and y dimensions varying along z | | G4TwistedTrd( | | | | | const G4String& | pName, | | | G4double | pDx1, | | | G4double | pDx2, | | | G4double | pDy1, | | | G4double | pDy2, | | | G4double | pDz, | | | G4double | twistedangle) |
| pDx1 | Half x length at the surface positioned at -dz | | pDx2 | Half x length at the surface positioned at +dz | | pDy1 | Half y length at the surface positioned at -dz | | pDy2 | Half y length at the surface positioned at +dz | | pDz | Half z length | | twistedangle | Twisted angle |
|  | | Tube Section Twisted along Its Axis | | G4TwistedTubs( | | | | | const G4String& | pName, | | | G4double | twistedangle, | | | G4double | endinnerrad, | | | G4double | endouterrad, | | | G4double | halfzlen, | | | G4double | dphi) |
| twistedangle | Twisted angle | | endinnerrad | Inner radius at endcap | | endouterrad | Outer radius at endcap | | halfzlen | Half z length | | dphi | Phi angle of a segment |
|  |
|
|
Last Updated ( Sunday, 22 February 2009 12:01 )
|
Copyright © 2010 gPhysics. All Rights Reserved.
|